Fix another crash in exotic circumstances
Change-Id: If91c33dad811d5c9a34581773f7f6a7f86dd82bd
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user