zstd cli : control maximum compression level
This commit is contained in:
parent
31dd08cad5
commit
6aa896adc6
@ -241,6 +241,8 @@ int main(int argCount, const char** argv)
|
|||||||
argument++;
|
argument++;
|
||||||
}
|
}
|
||||||
dictCLevel = cLevel;
|
dictCLevel = cLevel;
|
||||||
|
if (dictCLevel > ZSTD_maxCLevel())
|
||||||
|
return badusage(programName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user