From ad4d4076e1dc5aa5c07d5b450a423d0936f20645 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 2 Nov 2021 13:19:16 -0700 Subject: [PATCH] Fix big endian decoding of enum_packed --- upb/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/upb/decode.c b/upb/decode.c index 7092555077..a91a7770e7 100644 --- a/upb/decode.c +++ b/upb/decode.c @@ -484,6 +484,7 @@ static const char *decode_enum_packed(upb_decstate *d, const char *ptr, while (!decode_isdone(d, &ptr)) { wireval elem; ptr = decode_varint64(d, ptr, &elem.uint64_val); + decode_munge(field->descriptortype, &elem); if (!decode_checkenum(d, ptr, msg, e, field, &elem)) { continue; }