Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ext/mini_racer_extension/serde.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ static int des1(char (*err)[64], const uint8_t **p, const uint8_t *pe,

if (depth < 0)
return bail(err, "too much recursion");
again:
if (*p >= pe)
goto too_short;
switch ((c = *(*p)++)) {
Expand All @@ -380,7 +381,9 @@ static int des1(char (*err)[64], const uint8_t **p, const uint8_t *pe,
snprintf(*err, sizeof(*err), "bad tag: %02x", c);
}
return -1;
case '\0': // padding
case '\0': // skip alignment padding for two-byte strings
if (*p < pe)
goto again;
break;
case '^':
if (r_varint(p, pe, &u))
Expand Down
Loading