From f2ddc15d765b87444faedd6e775dc27db4628d42 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 12 Oct 2020 09:31:39 -0700 Subject: [PATCH] Bugfix: initialize fastlimit and fastend. --- upb/decode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upb/decode.c b/upb/decode.c index 3b00f91193..da6586cb65 100644 --- a/upb/decode.c +++ b/upb/decode.c @@ -648,6 +648,8 @@ bool upb_decode(const char *buf, size_t size, void *msg, const upb_msglayout *l, if (size == 0) return true; state.limit = buf + size; + state.fastlimit = state.limit - 16; + state.fastend = state.fastlimit; state.depth = 64; state.end_group = 0; state.arena.head = arena->head;