mirror of
git://slackware.nl/current.git
synced 2025-01-16 15:41:42 +01:00
14 lines
533 B
Diff
14 lines
533 B
Diff
|
--- ncompress-4.2.4/compress42.c.bssUnderflow 2006-08-10 11:40:03.000000000 +0200
|
||
|
+++ ncompress-4.2.4/compress42.c 2006-08-10 11:40:31.000000000 +0200
|
||
|
@@ -1689,6 +1689,10 @@
|
||
|
|
||
|
if (oldcode == -1)
|
||
|
{
|
||
|
+ if (code >= 256) {
|
||
|
+ fprintf(stderr, "uncompress: corrupt input\n");
|
||
|
+ abort_compress();
|
||
|
+ }
|
||
|
outbuf[outpos++] = (char_type)(finchar = (int)(oldcode = code));
|
||
|
continue;
|
||
|
}
|