protobuf-lua icon indicating copy to clipboard operation
protobuf-lua copied to clipboard

the bug in pb.h line 336

Open gtwguo opened this issue 7 years ago • 0 comments

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; } }

gtwguo avatar Jun 15 '17 09:06 gtwguo