pike.git / src / modules / Gz / zlibmod.c

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:629:    break;       default:    Pike_error("Argument 2 to gz_deflate->deflate() out of range.\n");    }    }else{    flush=Z_FINISH;    }       this->gz.next_in=(Bytef *)data.ptr; -  this->gz.avail_in = DO_NOT_WARN((unsigned INT32)(data.len)); +  this->gz.avail_in = (unsigned INT32)(data.len);       initialize_buf(&buf);       SET_ONERROR(err,toss_buffer,&buf);    fail=do_deflate(&buf,this,flush);    UNSET_ONERROR(err);       if(fail != Z_OK && fail != Z_STREAM_END)    {    toss_buffer(&buf);
pike.git/src/modules/Gz/zlibmod.c:892:   void low_zlibmod_unpack(struct memobj data, dynamic_buffer *buf, int raw)   {    struct zipper z;    int ret;       memset(&z, 0, sizeof(z));    z.gz.zalloc = Z_NULL;    z.gz.zfree = Z_NULL;       z.gz.next_in=(Bytef *)data.ptr; -  z.gz.avail_in = DO_NOT_WARN((unsigned INT32)(data.len)); +  z.gz.avail_in = (unsigned INT32)(data.len);       if( raw )    ret = inflateInit2(&z.gz, -15);    else    ret = inflateInit( &z.gz );       switch(ret)    {    case Z_OK:    break;
pike.git/src/modules/Gz/zlibmod.c:1064:    // fall through    }    default:    Pike_error("Bad argument 1 to gz_inflate->inflate()\n");    }       if (data.shift)    Pike_error("Cannot input wide string to gz_inflate->inflate()\n");       this->gz.next_in=(Bytef *)data.ptr; -  this->gz.avail_in = DO_NOT_WARN((unsigned INT32)(data.len)); +  this->gz.avail_in = (unsigned INT32)(data.len);       initialize_buf(&buf);       SET_ONERROR(err,toss_buffer,&buf);    fail=do_inflate(&buf,this,Z_SYNC_FLUSH);    UNSET_ONERROR(err);       if(fail != Z_OK && fail != Z_STREAM_END)    {    toss_buffer(&buf);
pike.git/src/modules/Gz/zlibmod.c:1169:    if (args>1) {    if (TYPEOF(sp[1-args]) != T_INT)    Pike_error("Gz.crc32: illegal argument 2 (expected integer)\n");    else    crc=(unsigned INT32)sp[1-args].u.integer;    } else    crc=0;       crc=crc32(crc,    (unsigned char*)sp[-args].u.string->str, -  DO_NOT_WARN((unsigned INT32)(sp[-args].u.string->len))); +  (unsigned INT32)(sp[-args].u.string->len));       pop_n_elems(args);    push_int((INT32)crc);   }      static void gz_deflate_size( INT32 args )   {   #define L_CODES (256 + 29 + 1)   #define HEAP_SIZE (2*L_CODES+1)