commit | 80019eb5c114c0973d7609f30ec73c057c69866d | [log] [tgz] |
---|---|---|
author | Max Bires <jbires@google.com> | Mon Jul 19 02:39:23 2021 -0700 |
committer | Max Bires <jbires@google.com> | Sun Aug 22 22:56:33 2021 -0700 |
tree | ce07eb8edba6988e583b7f3a35e98f2d22e5503d | |
parent | 2865c2516a8741ea0ef89b731a8419880b09ea1d [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