Skip to content

the bug in pb.h line 336 #11

Description

@gtwguo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions