Android 15 beta 1 release 0.4
Transaction: Add overflow protection to read_entries

Validates read_entries and read_buf_size to ensure
they don't exceed reasonable limits that could trigger overflow.

Adds explicit checks before the calculation to detect potential integer overflows.

Bug: 322327963
Test: CTS/PTS, GCA_SMOKE TEST
Change-Id: I1b2e99cc83cfd751d3a82e501dbd64ddfebd039f
Signed-off-by: Nick Chung <nickchung@google.com>
(cherry picked from commit e7a59eba1ba9c49d9500935907056fc69ce3a012)
1 file changed