mirror of
https://github.com/lz4/lz4.git
synced 2024-11-26 19:34:53 +08:00
fix read when requesting out-of-range codec
This commit is contained in:
parent
ded75e76ea
commit
f239a17a6b
@ -678,7 +678,7 @@ int fullSpeedBench(const char** fileNamesTable, int nbFiles)
|
||||
DISPLAY("Compression functions : \n");
|
||||
continue;
|
||||
}
|
||||
if (cAlgNb > (int)NB_COMPRESSION_ALGORITHMS) {
|
||||
if (cAlgNb >= (int)NB_COMPRESSION_ALGORITHMS) {
|
||||
continue;
|
||||
}
|
||||
compressorName = compDescArray[cAlgNb].name;
|
||||
|
Loading…
Reference in New Issue
Block a user