[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 5 07:48:57 UTC 2019


 sw/source/filter/ww8/docxattributeoutput.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8c536c6d8ddad1d7f2fc9875450a16f47fcd6b89
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Mar 4 22:30:28 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Mar 5 08:48:30 2019 +0100

    Change type of buffer to unsigned char
    
    This change has no actual effect on the results, but silences benign Clang
    -fsanitize=implicit-signed-integer-truncation warnings.
    
    Change-Id: I0e96d998f9030c5bb4431dc0ccd689c8f2f3aeea
    Reviewed-on: https://gerrit.libreoffice.org/68711
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 504fa6033b36..a7c69319243f 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -6541,7 +6541,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, FontFam
         fontKey[ 0 ] = fontKey[ 15 ] = m_nextFontId % 256;
         fontKeyStr[ 1 ] = fontKeyStr[ 35 ] = toHexChar(( m_nextFontId % 256 ) / 16 );
         fontKeyStr[ 2 ] = fontKeyStr[ 36 ] = toHexChar(( m_nextFontId % 256 ) % 16 );
-        char buffer[ 4096 ];
+        unsigned char buffer[ 4096 ];
         sal_uInt64 readSize;
         file.read( buffer, 32, readSize );
         if( readSize < 32 )


More information about the Libreoffice-commits mailing list