Fix big endian decoding of enum_packed

pull/13171/head
Stan Hu 3 years ago
parent c604ed9ae9
commit ad4d4076e1
No known key found for this signature in database
GPG Key ID: 8D3931AD39CC7A20
  1. 1
      upb/decode.c

@ -484,6 +484,7 @@ static const char *decode_enum_packed(upb_decstate *d, const char *ptr,
while (!decode_isdone(d, &ptr)) { while (!decode_isdone(d, &ptr)) {
wireval elem; wireval elem;
ptr = decode_varint64(d, ptr, &elem.uint64_val); ptr = decode_varint64(d, ptr, &elem.uint64_val);
decode_munge(field->descriptortype, &elem);
if (!decode_checkenum(d, ptr, msg, e, field, &elem)) { if (!decode_checkenum(d, ptr, msg, e, field, &elem)) {
continue; continue;
} }

Loading…
Cancel
Save