mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 12:07:58 +00:00
Merge "Out of bounds read in hal_core_initialized" into rvc-qpr-dev am: 14162741e7 am: 57fc648599
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14204915 Change-Id: I6d2c0b11106e4d6f461edcf7b11a08889af7bfcc
This commit is contained in:
committed by
Automerger Merge Worker
commit
8716375c32
@@ -38,7 +38,7 @@ Nfc::Nfc(nfc_nci_device_t* device) : mDevice(device) {}
|
||||
::android::hardware::Return<NfcStatus> Nfc::coreInitialized(const hidl_vec<uint8_t>& data) {
|
||||
hidl_vec<uint8_t> copy = data;
|
||||
|
||||
if (mDevice == nullptr) {
|
||||
if (mDevice == nullptr || copy.size() == 0) {
|
||||
return NfcStatus::FAILED;
|
||||
}
|
||||
int ret = mDevice->core_initialized(mDevice, ©[0]);
|
||||
|
||||
Reference in New Issue
Block a user