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
1 file changed