RESTRICT AUTOMERGE: Fix integer underflow vulnerability in PduParser

Problem:
A negative value-length in PduParser.parseContentType bypasses the bounds check, leading to an integer underflow and a massive array allocation (new byte[2GiB]) which causes an OutOfMemoryError in com.android.phone.

Fix details:
Added a bounds check `if (length < 0 || length > startPos)` in `PduParser.parseContentType` to reject negative lengths.

Bug: 517378147
Flag: EXEMPT BUGFIX
Test: atest ApiDemosTests (on main)
TAG: agy
CONV: 1f19cac3-1d08-4bfc-aa80-f5c6f3aecbab
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:f70379eccd2c83baea3b75b4319253a7d68b6474
Merged-In: Ib9b6d2e399d759037b3196b7f2fdff1b3afcfffe
Change-Id: Ib9b6d2e399d759037b3196b7f2fdff1b3afcfffe
3 files changed