fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / libvisio / ubsan.patch
blob16b0ec4bf71a8080ef000f795747f2b4f76e2678
1 --- src/lib/VSDParser.cpp
2 +++ src/lib/VSDParser.cpp
3 @@ -1104,7 +1104,11 @@
4 input->seek(1, librevenge::RVNG_SEEK_CUR);
5 double scale = readDouble(input);
6 input->seek(1, librevenge::RVNG_SEEK_CUR);
7 - scale /= readDouble(input);
8 + double scaleDenom = readDouble(input);
9 + if (scaleDenom != 0)
10 + {
11 + scale /= scaleDenom;
12 + }
14 if (m_isStencilStarted && m_currentStencil)