[automerger skipped] Merge "Fail explicitly on length overflow." into qt-qpr1-dev am: 3e8e1e9011 -s ours

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

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

Change-Id: Ibd2724c9a8b0285d208d55b5dc71f50f657a0564