Minor formatting changes.

pull/13171/head
Joshua Haberman 4 years ago
parent 37a577c0e7
commit 53ce4354cf
  1. 3
      upb/decode.c

@ -636,8 +636,7 @@ static const char *decode_wireval(upb_decstate *d, const char *ptr,
uint64_t size;
if (_upb_getmode(field) == _UPB_MODE_ARRAY) ndx += 18;
ptr = decode_varint64(d, ptr, &size);
if (size >= INT32_MAX ||
ptr - d->end + (int32_t)size > d->limit) {
if (size >= INT32_MAX || ptr - d->end + (int32_t)size > d->limit) {
decode_err(d); /* Length overflow. */
}
*op = delim_ops[ndx];

Loading…
Cancel
Save