filter/source/graphicfilter/ipbm/ipbm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed4a1a71f0bcbcaceba8929456ea4e7dd1d43a8f
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 16 17:06:34 2020 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Jan 16 20:30:25 2020 +0100

    ofz#20150 unknown read
    
    since...
    
    commit cf82475c785c47327cdc9d591d63d7a82dd1ac53
    Date:   Sun Dec 8 19:46:45 2019 +0530
    
        tdf#114441 Changing sal_uLong to appropriate integer type in filters 
module
    
    Change-Id: I22b56d9a0084e7d55a2299143eae3d806f976d5f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86936
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx 
b/filter/source/graphicfilter/ipbm/ipbm.cxx
index d9049f43d1d4..4c12c18523fd 100644
--- a/filter/source/graphicfilter/ipbm/ipbm.cxx
+++ b/filter/source/graphicfilter/ipbm/ipbm.cxx
@@ -393,7 +393,7 @@ bool PBMReader::ImplReadBody()
                     nCount--;
                     if ( nGrey <= mnMaxVal )
                         nGrey = 255 * nGrey / mnMaxVal;
-                    mpRawBmp->SetPixel( nHeight, nWidth++, mvPalette[nGrey] );
+                    mpRawBmp->SetPixel( nHeight, nWidth++, 
mvPalette[static_cast<sal_uInt8>(nGrey)] );
                     nGrey = 0;
                     if ( nWidth == mnWidth )
                     {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to