Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion upb/test/fuzz_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ void Builder::BuildExtensions(upb_ExtensionRegistry** exts) {
status.ptr());
if (!ptr) break;
if (!LinkExtension(ext)) continue;
if (upb_ExtensionRegistry_Lookup(*exts, ext->UPB_PRIVATE(extendee),
if (upb_MiniTable_FindFieldByNumber(ext->UPB_PRIVATE(extendee),
upb_MiniTableExtension_Number(ext)) ||
upb_ExtensionRegistry_Lookup(*exts, ext->UPB_PRIVATE(extendee),
upb_MiniTableExtension_Number(ext)))
continue;
upb_ExtensionRegistry_AddArray(
Expand Down
3 changes: 3 additions & 0 deletions upb/wire/decode_fast/field_unknown.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ UPB_FORCEINLINE bool _upb_FastDecoder_DoDecodeUnknown(
// message is marked by an EndGroup tag. Since EndGroup tags are not in
// the MiniTable, they are routed to the unknown field handler. We must
// intercept them here to properly terminate the message.
_upb_Decoder_Trace(d, '<');
*ptr = start;
return UPB_DECODEFAST_EXIT(kUpb_DecodeFastNext_FallbackToMiniTable, ret);
}

Expand Down Expand Up @@ -110,6 +112,7 @@ UPB_FORCEINLINE bool _upb_FastDecoder_DoDecodeUnknown(
return UPB_DECODEFAST_ERROR(d, kUpb_DecodeStatus_OutOfMemory, ret);
}

_upb_Decoder_Trace(d, 'F');
data = 0;
return true;
}
Expand Down
Loading