summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-05-11 11:27:26 -0700
committerDerek Bailey <derekbailey@google.com>2023-05-11 12:22:05 -0700
commite97ff95970f006a953c7804ce8d707fde2473a86 (patch)
treef89d49dc3c3415855ce93c368824a7a6d93a8ef0
parent33212657ae25634edebd3c22a7a19e7e0d8ff3f9 (diff)
downloadflatbuffers-e97ff95970f006a953c7804ce8d707fde2473a86.tar.gz
flatbuffers-e97ff95970f006a953c7804ce8d707fde2473a86.tar.bz2
flatbuffers-e97ff95970f006a953c7804ce8d707fde2473a86.zip
Change SizedPrefixed verifier to be <= provided size
-rw-r--r--tests/monster_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/monster_test.cpp b/tests/monster_test.cpp
index d44f118e..38a33577 100644
--- a/tests/monster_test.cpp
+++ b/tests/monster_test.cpp
@@ -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);