mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-10 04:41:45 -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;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
options.suffix = toptarg;
|
options.suffix = toptarg;
|
||||||
|
if (options.suffix[0] == T('\0')) {
|
||||||
|
msg("invalid suffix");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
show_version();
|
show_version();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user