Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d8cc2062 authored by Shruti Bihani's avatar Shruti Bihani
Browse files

Fix heap buffer overflow issue flagged by fuzzer test.

OOB read occurs when the buffer index to be read 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: 243400841
Test: Build mtp_data_packet_fuzzer and run on the target device

Change-Id: Ic3c0030d60a0e068aa5ddec6aa544bed5ba0ef8e
parent 02f8dca8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment