listusb: Out of bounds array access. CID 1162781
This commit is contained in:
parent
840aeab5b9
commit
48810d1b3a
@ -757,8 +757,8 @@ DumpAudioStreamCSEndpointDescriptor(
|
||||
"Unknown (%u)"
|
||||
};
|
||||
|
||||
const char* units = descriptor->lock_delay_units > 4
|
||||
? aUnits[4] : aUnits[descriptor->lock_delay_units];
|
||||
const char* units = descriptor->lock_delay_units >= 4
|
||||
? aUnits[3] : aUnits[descriptor->lock_delay_units];
|
||||
|
||||
printf(" Lock Delay Units .. %u (%s)\n",
|
||||
descriptor->lock_delay_units, units);
|
||||
|
Loading…
Reference in New Issue
Block a user