[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 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: I626c2a0a1c7b138450236061b90c0595d5e9c560