summaryrefslogtreecommitdiff
path: root/upb/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/decode.c')
-rw-r--r--upb/decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/upb/decode.c b/upb/decode.c
index 4340a90..8d685a2 100644
--- a/upb/decode.c
+++ b/upb/decode.c
@@ -477,6 +477,7 @@ static bool upb_decode_delimitedfield(upb_decstate *d, upb_decframe *frame,
}
case UPB_DESCRIPTOR_TYPE_MESSAGE:
CHK(val.size <= (size_t)(frame->limit - val.data));
+ d->ptr -= val.size;
CHK(upb_decode_submsg(d, frame, val.data + val.size, field, 0));
break;
default:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback