commit | ba0d90313d75a7ffffa672cb141a5a74eb0ef356 | [log] [tgz] |
---|---|---|
author | Shruti Bihani <shrutibihani@google.com> | Thu Jul 06 08:41:56 2023 +0000 |
committer | Fairphone ODM <fairphone-odm@localhost> | Thu Aug 31 16:29:37 2023 +0800 |
tree | 2ee63bcfb653034f372f8444300b46adcfd01276 | |
parent | b8ac01f3e78cbb7d7de1c37028efc42173c84645 [diff] |
Fix Segv on unknown address error flagged by fuzzer test. The error is thrown when the destructor tries to free pointer memory. This is happening for cases where the pointer was not initialized. Initializing it to a default value fixes the error. Bug: 245135112 Test: Build mtp_host_property_fuzzer and run on the target device (cherry picked from commit 3afa6e80e8568fe63f893fa354bc79ef91d3dcc0) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c138d20635694857754f2b7de2342089de13d556) Merged-In: I255cd68b7641e96ac47ab81479b9b46b78c15580 Change-Id: I255cd68b7641e96ac47ab81479b9b46b78c15580 (cherry picked from commit e6b8c0ee3033faab3658e5fe0a0b131a7e94a166)