aboutsummaryrefslogtreecommitdiff
path: root/src/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/message.cpp b/src/message.cpp
index ffb9f6c..f98dfe5 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -213,6 +213,7 @@ void olm::decode_message(
reader.ciphertext_length = 0;
if (pos == end) return;
+ if (input_length < mac_length) return;
reader.version = *(pos++);
while (pos != end) {