diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 5fe1869a..abe13013 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -241,6 +241,8 @@ int main(int argCount, const char** argv) argument++; } dictCLevel = cLevel; + if (dictCLevel > ZSTD_maxCLevel()) + return badusage(programName); continue; }