kit/Kit.cpp |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 2ec5023dbf4e8fd8d59a82f9040ad88933a10aa2
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Mon Apr 22 12:02:58 2019 -0400
Commit:     Ashod Nakashian <ashnak...@gmail.com>
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 <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@gmail.com>

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
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to