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:cca4fb311881b2da3f767380e1a9be6ade7b58c6
Merged-In: Ib9b6d2e399d759037b3196b7f2fdff1b3afcfffe
Change-Id: Ib9b6d2e399d759037b3196b7f2fdff1b3afcfffe
3 files changed