fix bug in parsing reverse block length fields.

This commit is contained in:
gardners 2013-05-16 07:06:10 +09:30
parent a66f5eb701
commit 29d23e7dd4

View File

@ -125,7 +125,7 @@ int decode_length_backwards(unsigned char *buffer,int offset,
*length=0;
switch(buffer[offset]) {
case 0xff:
offset-=4;
offset-=2;
int i;
for(i=0;i<16;i+=8) (*length)|=buffer[offset++]<<i;
return 0;