commit | c25ae073bb5b0cc272bfb8fb63f838c356fa7d81 | [log] [tgz] |
---|---|---|
author | Shruti Bihani <shrutibihani@google.com> | Mon Jul 10 08:53:42 2023 +0000 |
committer | Prashantsinh Parmar <prashantsinh.parmar@fairphone.partners> | Wed Dec 13 19:35:12 2023 +0530 |
tree | 002059e1723c721f0747c64cb437833bbee34024 | |
parent | 27256f9b20212dab3c1d44ea0a7a7accad3b4f12 [diff] |
Fix for heap buffer overflow issue flagged by fuzzer test. OOB write occurs when a value is assigned to a buffer index which is greater than the buffer size. Adding a check on buffer bounds fixes the issue. Similar checks have been added wherever applicable on other such methods of the class. Bug: 243463593 Test: Build mtp_packet_fuzzer and run on the target device (cherry picked from commit a669e34bb8e6f0f7b5d7a35144bd342271a24712) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1401a723899766632363129265b30d433ac69c44) Merged-In: Icd0f2307803a1a35e655bc08d9d4cca5e2b58a9b Change-Id: Icd0f2307803a1a35e655bc08d9d4cca5e2b58a9b