diff options
author | Christopher Ferris <cferris@google.com> | 2020-08-27 11:46:36 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2020-08-27 12:00:43 -0700 |
commit | afbed690f091956a85484ac1409c9f1b53dd1df0 (patch) | |
tree | 06f3474897dc472956c05da1e80e2972056c462a /libutils/String8_fuzz.cpp | |
parent | e27781db4c88f1e79348cf2d38cbf01010c85145 (diff) |
Fix nullptr dereference.
A previous cl missed adding a return in the new path which could result
in a crash if the map info is null. Add the return back.
Added a new test to catch this case.
Bug: 166188440
Test: Unit tests pass. Verified the new test crashes on the old code.
Change-Id: I9420b47dae0f880493c0e6a60d97bb3468ff2906
Diffstat (limited to 'libutils/String8_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions