X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fhufts;h=5660ec3626abe30fe432d2c6303f6f2ce06505d1;hb=refs%2Ftags%2Fupstream%2F1.10;hp=1076c833cbe0c7bfc8ed6d23dc61a6c39b5ee867;hpb=a8a88eddaa90432e6ec1b8d9d5c9842bc91afd1d;p=debian%2Fgzip diff --git a/tests/hufts b/tests/hufts index 1076c83..5660ec3 100755 --- a/tests/hufts +++ b/tests/hufts @@ -1,5 +1,5 @@ #!/bin/sh -# Exercise a bug whereby an invalid input could make gzip -d misbehave. +# Exercise bugs whereby invalid input could make gzip -d misbehave. # Copyright (C) 2009-2018 Free Software Foundation, Inc. @@ -30,4 +30,11 @@ compare /dev/null out || fail=1 sed 's/.*hufts-segv.gz: /...: /' err > k; mv k err || fail=1 compare exp err || fail=1 +printf '\037\213\010\000\060\060\060\060\060\060\144\000\000\000' > bug33501 \ + || framework_failure_ +printf '\ngzip: stdin: invalid compressed data--format violated\n' >exp33501 \ + || framework_failure_ +returns_ 1 gzip -d out33501 2> err33501 || fail=1 +compare exp33501 err33501 || fail=1 + Exit $fail