listusb: Out of bounds array access. CID 1162781

This commit is contained in:
Stephan Aßmus 2014-01-22 17:41:00 +01:00
parent 840aeab5b9
commit 48810d1b3a

View File

@ -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);