Commit 18357512 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttp2_hd: Fix integer decoding bug

parent 52cec359
......@@ -528,10 +528,10 @@ static uint8_t* decode_length(ssize_t *res, int *final, ssize_t initial,
*final = 1;
return in + 1;
}
}
if(++in == last) {
*res = n;
return in;
if(++in == last) {
*res = n;
return in;
}
}
for(r = 0; in != last; ++in, r += 7) {
n += (*in & 0x7f) << r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment