Bugfix: initialize fastlimit and fastend.

pull/13171/head
Joshua Haberman 4 years ago
parent 65e49b694b
commit f2ddc15d76
  1. 2
      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; if (size == 0) return true;
state.limit = buf + size; state.limit = buf + size;
state.fastlimit = state.limit - 16;
state.fastend = state.fastlimit;
state.depth = 64; state.depth = 64;
state.end_group = 0; state.end_group = 0;
state.arena.head = arena->head; state.arena.head = arena->head;

Loading…
Cancel
Save