mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-09 04:05:12 -04:00
gzip, gunzip: forbid empty suffix
This matches the behavior of GNU gzip.
This commit is contained in:
parent
ed923c45d4
commit
e7152b4866
@ -491,6 +491,10 @@ tmain(int argc, tchar *argv[])
|
||||
break;
|
||||
case 'S':
|
||||
options.suffix = toptarg;
|
||||
if (options.suffix[0] == T('\0')) {
|
||||
msg("invalid suffix");
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
case 'V':
|
||||
show_version();
|
||||
|
Loading…
x
Reference in New Issue
Block a user