commit | faf53f3ea16e58ea39ec1bf2670182820bba8b7b | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Jul 28 21:41:54 2020 +0000 |
committer | Steven Moreland <smoreland@google.com> | Thu Jul 30 17:29:34 2020 +0000 |
tree | e15e24cce5767511fd6273e70c0e17de72fd39e9 | |
parent | 3b0abc441bac16d0bfdee5e798a4fcf793b9ee70 [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