From 13cd316bc733fbe37db105dc705b9d172aec8809 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 12 Jan 2023 14:50:41 +0000 Subject: ofz#55034 Stack-buffer-overflow in vcl::bitmap::CreateFromData MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit since: commit 21734247d58a6e915b058d8fa55ece949d049613 Date: Tue Jan 10 12:56:58 2023 +0200 drop internal support for 1-bit images the input data is still 1 bit here, even if the output will be 8 bit Change-Id: Ib7eb301b2e62ebc61ee61ebb99e6de92c1f4931b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145410 Reviewed-by: Noel Grandin Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- lotuswordpro/source/filter/lwpbackgroundstuff.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx index 2c2fcf109504..dc3f9194e094 100644 --- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx +++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx @@ -114,7 +114,7 @@ std::unique_ptr LwpBackgroundStuff::GetFillPattern() GetPattern(m_nID, aPttnArray); // create bitmap object from the pattern array - BitmapEx aBmp = vcl::bitmap::CreateFromData(aPttnArray, 8, 8, 1, /*nBitsPerPixel*/ 8); + BitmapEx aBmp = vcl::bitmap::CreateFromData(aPttnArray, 8, 8, 1, /*nBitsPerPixel*/ 1); // create XOBitmap object from bitmap object XOBitmap aXOBitmap(aBmp); -- cgit