[automerger skipped] Merge "Fail explicitly on length overflow." into qt-qpr1-dev am: 3e8e1e9011 -s ours am: d8d4e2fee7 -s ours am: 3942540f31 -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: Icde60bea5f594c2f15bcf7412965ae61316fd727