zstd cli : control maximum compression level
This commit is contained in:
1 parent
31dd08cad5
commit
6aa896adc6
1 file changed
+2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user