diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-15 18:12:46 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-15 18:12:46 +0200 |
commit | ab3b76103ab33a282f02778a9c7588bfc067ad7b (patch) | |
tree | e5ecc43ffd7397013661bed4f3e6de178cd88279 | |
parent | 1a27c17d4c758ee672360aba0b5a05d54b3d9c41 (diff) |
Fix another crash in exotic circumstances
-rw-r--r-- | src/lib/VSDXContentCollector.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp index e221dec..cacf51d 100644 --- a/src/lib/VSDXContentCollector.cpp +++ b/src/lib/VSDXContentCollector.cpp @@ -2312,6 +2312,8 @@ void libvisio::VSDXContentCollector::endPages(const std::vector<unsigned> &pageO void libvisio::VSDXContentCollector::_appendUTF16LE(WPXString &text, WPXInputStream *input) { + if (!input) + return; while (!input->atEOS()) { uint16_t high_surrogate = 0; |