X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=compress_filter.c;h=a0b53bde61a093b7c9a07595df6af51a8cc1cb65;hb=b47dff48fac126f844f6497189b190a5a00957ec;hp=14df8d966128556e32957749b91bdd225730b1c1;hpb=b7243e074d583c5977bf89b0a2d8ac4635aebbb6;p=paraslash.git diff --git a/compress_filter.c b/compress_filter.c index 14df8d96..a0b53bde 100644 --- a/compress_filter.c +++ b/compress_filter.c @@ -110,6 +110,10 @@ next_buffer: return; btr_merge(btrn, fn->min_iqs); length = btr_next_buffer(btrn, &inbuf) & ~(size_t)1; + if (length == 0) { /* eof and 1 byte available */ + ret = -E_COMPRESS_EOF; + goto err; + } ip = (int16_t *)inbuf; if (inplace) op = ip;