1 From 54762245feee35ce6885f7443da8f8443fccd5b5 Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Wed, 26 May 2021 20:39:41 +0200
4 Subject: [PATCH] allow 0-size message
6 It likely means the input is broken, but there is no need to reject it.
7 Let's just produce a dummy, empty message.
9 Change-Id: I03a1e9827f21f6a0ce69d7e16dfcf2e9a0f2d44f
11 src/lib/IWAMessage.cpp | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
14 diff --git a/src/lib/IWAMessage.cpp b/src/lib/IWAMessage.cpp
15 index c01b1b6..9456444 100644
16 --- a/src/lib/IWAMessage.cpp
17 +++ b/src/lib/IWAMessage.cpp
18 @@ -42,7 +42,8 @@ IWAMessage::IWAMessage(const RVNGInputStreamPtr_t &input, unsigned long length)