diff options
-rw-r--r-- | emfio/source/reader/wmfreader.cxx | 2 | ||||
-rw-r--r-- | vcl/qa/cppunit/graphicfilter/data/wmf/fail/ofz35150-1.wmf | bin | 0 -> 74 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index f506de102bfe..93908503d9bf 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -832,7 +832,7 @@ namespace emfio break; } const vcl::PixelFormat ePixelFormat = vcl::bitDepthToPixelFormat( nBitCount ); - bool bOk = nWidth && nHeight && nBytesPerScan > 0 && nPlanes == 1 && ePixelFormat != vcl::PixelFormat::INVALID; + bool bOk = nWidth > 0 && nHeight > 0 && nBytesPerScan > 0 && nPlanes == 1 && ePixelFormat != vcl::PixelFormat::INVALID; if (bOk) { // must be enough data to fulfil the request diff --git a/vcl/qa/cppunit/graphicfilter/data/wmf/fail/ofz35150-1.wmf b/vcl/qa/cppunit/graphicfilter/data/wmf/fail/ofz35150-1.wmf Binary files differnew file mode 100644 index 000000000000..2d156198194c --- /dev/null +++ b/vcl/qa/cppunit/graphicfilter/data/wmf/fail/ofz35150-1.wmf |