From 30fee38b25e71f0bd57d8c1d03d01e5b53719309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 7 Jan 2025 09:32:30 +0100 Subject: [PATCH] Empty messages are valid --- src/data.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data.cpp b/src/data.cpp index 2f22549..e4d9f98 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -325,6 +325,9 @@ static bool layer(CTX &ctx, Data::Layer &l) bool Data::load(const QByteArray &ba) { + if (ba.isEmpty()) + return true; + CTX ctx(ba); while (ctx.bp < ctx.be) {