kit/Kit.cpp | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 2ec5023dbf4e8fd8d59a82f9040ad88933a10aa2
Author: Ashod Nakashian <[email protected]>
AuthorDate: Mon Apr 22 12:02:58 2019 -0400
Commit: Ashod Nakashian <[email protected]>
CommitDate: Tue Apr 23 03:02:09 2019 +0200
wsd: assert on 0-sized tiles
Change-Id: I10a20bb5a3ad31e368f554bdc5e1701a7ff6a22d
Reviewed-on: https://gerrit.libreoffice.org/71072
Reviewed-by: Ashod Nakashian <[email protected]>
Tested-by: Ashod Nakashian <[email protected]>
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index d098cd773..759e78e24 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -1080,6 +1080,11 @@ public:
LOG_TRC("Encoded tile #" << tileIndex << " at (" << positionX <<
"," << positionY << ") with oldWireId=" <<
tiles[tileIndex].getOldWireId() << ", hash=" << hash << "
wireId: " << wireId << " in " << imgSize << " bytes.");
+ if (imgSize == 0)
+ {
+ LOG_ERR("Encoded 0-sized tile!");
+ assert(!"0-sized tile enocded!");
+ }
tiles[tileIndex].setWireId(wireId);
tiles[tileIndex].setImgSize(imgSize);
tileIndex++;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits