From 93f587a6d30cdecaa71454de74015ec08ec3c6ae Mon Sep 17 00:00:00 2001 From: dataCenter430 <161712630+dataCenter430@users.noreply.github.com> Date: Thu, 19 Mar 2026 03:54:46 +0100 Subject: [PATCH] fix: annotated output for size-prefixed binaries (#8976) --- src/binary_annotator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/binary_annotator.cpp b/src/binary_annotator.cpp index 1e1668cd9..98a864866 100644 --- a/src/binary_annotator.cpp +++ b/src/binary_annotator.cpp @@ -126,9 +126,7 @@ static BinarySection GenerateMissingSection(const uint64_t offset, std::map BinaryAnnotator::Annotate() { if (bfbs_ != nullptr && bfbs_length_ != 0) { flatbuffers::Verifier verifier(bfbs_, static_cast(bfbs_length_)); - if ((is_size_prefixed_ && - !reflection::VerifySizePrefixedSchemaBuffer(verifier)) || - !reflection::VerifySchemaBuffer(verifier)) { + if (!reflection::VerifySchemaBuffer(verifier)) { return {}; } }