vcl/source/bitmap/BitmapTools.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit af95ef2dc3d71628092121f6604f3a43b3369c3a
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Aug 8 14:37:01 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Aug 8 15:55:05 2025 +0200

    make the windows analyser happy
    
    after
        commit 09298d001e98ed494ecb1df5cb563b081da050e8
        Author: Noel Grandin <noelgran...@gmail.com>
        Date:   Tue Jul 29 19:59:53 2025 +0200
        BitmapEx->Bitmap in bitmapExFromXBitmap
    
    Change-Id: I8eed328cfea75f2ecd350e9e95c12497fafd4e00
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189190
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/vcl/source/bitmap/BitmapTools.cxx 
b/vcl/source/bitmap/BitmapTools.cxx
index e176b48152e6..7148cf68f712 100644
--- a/vcl/source/bitmap/BitmapTools.cxx
+++ b/vcl/source/bitmap/BitmapTools.cxx
@@ -1001,6 +1001,8 @@ void CanvasCairoExtractBitmapData( const Bitmap & 
aBitmap, unsigned char*& data,
     bool bIsAlpha = false;
 
     data = static_cast<unsigned char*>(malloc( nWidth*nHeight*4 ));
+    if (!data)
+        std::abort();
 
     tools::Long nOff = 0;
     ::Color aColor;

Reply via email to