summaryrefslogtreecommitdiff
path: root/libvisio
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-15 18:15:59 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-15 18:17:01 +0200
commita0fbadaa4c2d2e19ff6763eed6c9a784f3478ddf (patch)
tree21f7508d895b06676efcdf1ccdf950668216d2e4 /libvisio
parent42e41ea6d6ec40977cc339af529b2306840d31cb (diff)
Fix another crash in exotic circumstances
Change-Id: If91c33dad811d5c9a34581773f7f6a7f86dd82bd
Diffstat (limited to 'libvisio')
-rw-r--r--libvisio/libvisio-0.0.17.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/libvisio/libvisio-0.0.17.patch b/libvisio/libvisio-0.0.17.patch
index e998634b410e..524b1e6cae8d 100644
--- a/libvisio/libvisio-0.0.17.patch
+++ b/libvisio/libvisio-0.0.17.patch
@@ -24,3 +24,12 @@
if (format == VSD_TEXT_ANSI)
{
while (!pStream->atEOS())
+@@ -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;