From e407c2eaebbd658220abcf9842a7e32cdcf2d16a Mon Sep 17 00:00:00 2001 From: dataCenter430 Date: Thu, 12 Mar 2026 16:03:44 +0100 Subject: [PATCH] fix: annotated output for size-prefixed binaries --- 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 1e1668cd9ac..98a86486627 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 {}; } }