Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IntelBluetoothFirmware/IntelBluetoothOpsGen1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ patching(OSData *fwData, const uint8_t **fw_ptr, bool *disablePatch)
* the firmware file is corrupted and it should stop the patching
* process.
*/
if (remain > HCI_COMMAND_HDR_SIZE && *fw_ptr[0] != 0x01) {
if (remain < HCI_COMMAND_HDR_SIZE || *fw_ptr[0] != 0x01) {
XYLog("Intel fw corrupted: invalid cmd read\n");
return false;
}
Expand Down