commit | 1dea9a052b7f214c10a77d5ed6ffd3602722a817 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Jul 28 21:41:54 2020 +0000 |
committer | Anis Assi <anisassi@google.com> | Thu Aug 13 09:17:15 2020 -0700 |
tree | 504524b0281e0969c5fc30cf190aa13e344f073a | |
parent | 78b334fe1d2dcc3ea211310b4f82ab0b2b6c801a [diff] |
libutils: check vsnprintf error For encoding errors, this function will return a negative value which causes problems down the line. Check for an error and return. Also, integer overflows are guarded. Bug: 161894517 Test: fuzzer test case Change-Id: Ia85067d4258bde4b875c832d6223db5dd26b8838 Merged-In: Ia85067d4258bde4b875c832d6223db5dd26b8838 (cherry picked from commit ee22384c54d42149491c8b9dbcda0d8c5e88eddc)