mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 02:58:53 +08:00
nghttp2_hd: Fix integer decoding bug
This commit is contained in:
@@ -531,10 +531,10 @@ static uint8_t* decode_length(ssize_t *res, int *final, ssize_t initial,
|
|||||||
*final = 1;
|
*final = 1;
|
||||||
return in + 1;
|
return in + 1;
|
||||||
}
|
}
|
||||||
}
|
if(++in == last) {
|
||||||
if(++in == last) {
|
*res = n;
|
||||||
*res = n;
|
return in;
|
||||||
return in;
|
}
|
||||||
}
|
}
|
||||||
for(r = 0; in != last; ++in, r += 7) {
|
for(r = 0; in != last; ++in, r += 7) {
|
||||||
n += (*in & 0x7f) << r;
|
n += (*in & 0x7f) << r;
|
||||||
|
|||||||
Reference in New Issue
Block a user