if ((b & 0x80) == 0) => if ((s->p[i-1] & 0x80) == 0) the error: while (i != count) { int b = s->p[i] & 0x7F; n |= (uint64_t)b << (7*i); ++i; if ((b & 0x80) == 0) { *pv = n; s->p += i; return i; } }
if ((b & 0x80) == 0)
=>
if ((s->p[i-1] & 0x80) == 0)
the error:
while (i != count) {
int b = s->p[i] & 0x7F;
n |= (uint64_t)b << (7*i);
++i;
if ((b & 0x80) == 0) {
*pv = n;
s->p += i;
return i;
}
}