mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 09:51:12 +00:00
Change SizedPrefixed verifier to be <= provided size
This commit is contained in:
parent
33212657ae
commit
e97ff95970
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ flatbuffers::DetachedBuffer CreateFlatBufferTest(std::string &buffer) {
|
|||
|
||||
FinishMonsterBuffer(builder, mloc);
|
||||
|
||||
// clang-format off
|
||||
// clang-format off
|
||||
#ifdef FLATBUFFERS_TEST_VERBOSE
|
||||
// print byte data for debugging:
|
||||
auto p = builder.GetBufferPointer();
|
||||
|
|
@ -198,7 +198,7 @@ void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length, bool pooled) {
|
|||
verifier.SetFlexReuseTracker(&flex_reuse_tracker);
|
||||
TEST_EQ(VerifyMonsterBuffer(verifier), true);
|
||||
|
||||
// clang-format off
|
||||
// clang-format off
|
||||
#ifdef FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE
|
||||
std::vector<uint8_t> test_buff;
|
||||
test_buff.resize(length * 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue