diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/domainadaptor.h | 2 | ||||
-rw-r--r-- | common/entitybuffer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index e0912e4..16fc8c2 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -78,7 +78,7 @@ static void createBufferPartBuffer(const Sink::ApplicationDomain::ApplicationDom | |||
78 | // FIXME: This means all buffers in here must have the AKFB identifier | 78 | // FIXME: This means all buffers in here must have the AKFB identifier |
79 | fbb.Finish(pos, "AKFB"); | 79 | fbb.Finish(pos, "AKFB"); |
80 | flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); | 80 | flatbuffers::Verifier verifier(fbb.GetBufferPointer(), fbb.GetSize()); |
81 | if (!verifier.VerifyBuffer<Buffer>()) { | 81 | if (!verifier.VerifyBuffer<Buffer>(nullptr)) { |
82 | SinkWarning_(0, "bufferadaptor") << "Created invalid uffer"; | 82 | SinkWarning_(0, "bufferadaptor") << "Created invalid uffer"; |
83 | } | 83 | } |
84 | } | 84 | } |
diff --git a/common/entitybuffer.h b/common/entitybuffer.h index 24f0b6b..866a7d0 100644 --- a/common/entitybuffer.h +++ b/common/entitybuffer.h | |||
@@ -33,7 +33,7 @@ public: | |||
33 | static const T *readBuffer(const uint8_t *data, int size) | 33 | static const T *readBuffer(const uint8_t *data, int size) |
34 | { | 34 | { |
35 | flatbuffers::Verifier verifier(data, size); | 35 | flatbuffers::Verifier verifier(data, size); |
36 | if (verifier.VerifyBuffer<T>()) { | 36 | if (verifier.VerifyBuffer<T>(nullptr)) { |
37 | return flatbuffers::GetRoot<T>(data); | 37 | return flatbuffers::GetRoot<T>(data); |
38 | } | 38 | } |
39 | return nullptr; | 39 | return nullptr; |