[automerger skipped] Merge "Fail explicitly on length overflow." into oc-dev am: ea8d38e77f am: cf91151364 am: 84dcff4c6b am: cf6c14c850 -s ours am: 6f734f4802 -s ours am: 2384ca2ae5 -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/+/11619803

Change-Id: I7dc5773941a3d7f3b560440b548271b43a14b833