commit | a84d6e77663dd83ca20e39777f3fb23936b62b70 | [log] [tgz] |
---|---|---|
author | Ashish Kumar Gupta <kumarashishg@google.com> | Wed Nov 08 09:20:30 2023 +0000 |
committer | Ashish Kumar Gupta <kumarashishg@google.com> | Wed Nov 08 09:20:36 2023 +0000 |
tree | bb3ef4a0eb8d523d4b2052e4afec928774fa8435 | |
parent | c2f42a7e658fcd560a48bf34f919cd0fbffc912d [diff] |
Add safe check for mtp_data_header header is initialized using mIobuf[0].bufs.data(). If mIobuf[0].bufs is NULL, dereferencing header could produce NPE. Bug: 244106060 Change-Id: I8ca9c4a8c433bb1935879148d918ba6e120d5aa9 Test: presubmit