From a42310d2c52366269e20a9e3c27d9fb705d7a703 Mon Sep 17 00:00:00 2001 From: Prokhorov Kirill Date: Tue, 7 Oct 2025 21:19:08 +0300 Subject: [PATCH] Fix bug 77398 --- DesktopEditor/raster/PICT/PICFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DesktopEditor/raster/PICT/PICFile.cpp b/DesktopEditor/raster/PICT/PICFile.cpp index 2b5e6f6c52..d6aac2a372 100644 --- a/DesktopEditor/raster/PICT/PICFile.cpp +++ b/DesktopEditor/raster/PICT/PICFile.cpp @@ -982,6 +982,7 @@ bool CPictFile::DecodeData() { if (!m_oImgData.m_pPixelData) m_oImgData.m_pPixelData = (BYTE*)malloc(4 * m_oImgData.m_nHeight * m_oImgData.m_nWidth); + if (m_oFrame.get_Data()) memcpy(m_oImgData.m_pPixelData, m_oFrame.get_Data(), 4 * m_oImgData.m_nHeight * m_oImgData.m_nWidth); }