commit | b7a8ee1632301bc4f67bb8f1ff67e33b377abe8f | [log] [tgz] |
---|---|---|
author | Max Bires <jbires@google.com> | Mon Jul 19 02:39:23 2021 -0700 |
committer | Max Bires <jbires@google.com> | Mon Jul 19 02:43:08 2021 -0700 |
tree | 17e9c6d5b3b2946ae16456a34f7f294a266a0967 | |
parent | f640f5c65a6d73eebdb07af8b4a9ca945d4d3c13 [diff] |
Initialize array pointer to nullptr In cases where deserialization fails, it's possible for delete[] to be called on an uninitialized pointer for a GenerateCsrRequest struct. This change default initializes the pointer to a nullptr so that delete[] will be a no-op instead of undefined behavior. Ignore-AOSP-First: Will be cherry-picked to AOSP Bug: 193574699 Test: Malformed requests to KM don't cause a data fault Change-Id: I41423a6474821918f3181b92efa9f54ad1e52d32