[automerger skipped] Merge "Fail explicitly on length overflow." into qt-dev am: 30a74852b0 -s ours am: d9798c6c33 -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: I3ef3360f038a711af363d20ffa393dd66f5e7847