X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fwsr88ddec.c;h=12adaa1256f663eb849d60a5b2c9656d49bc641d;hp=107f279265e5e95e0793c0332393f3c698283774;hb=dc6bbd8a388179d64fdc20bdf18056b0bd9267c4;hpb=5ffc3c31ece77d1debfc619a1e5817b7398209e8 diff --git a/src/wsr88ddec.c b/src/wsr88ddec.c index 107f279..12adaa1 100644 --- a/src/wsr88ddec.c +++ b/src/wsr88ddec.c @@ -89,13 +89,14 @@ int main(int argc, char **argv) //debug("reading body\n"); while ((st = fread(&size, 1, 4, input))) { + //debug("size=%08x\n", size); //debug("read %u bytes\n", st); //fwrite(&size, 1, 4, output); // DEBUG size = abs(ntohl(size)); if (size < 0) return 0; //debug("size = %x\n", size); - if (size > 10*1024*1024) + if (size > 20*1024*1024) err(1, "sanity check failed, buf is to big: %d", size); buf = realloc(buf, size); fread (buf, 1, size, input);