[automerger skipped] Merge "Fail explicitly on length overflow." into qt-dev am: 30a74852b0 -s ours am: d9798c6c33 -s ours am: 437d4fbf3a -s ours

am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 40f657b9f4 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/11641094

Change-Id: I68fc8be4a3fe49887e53f8f8858fe7593d130b32