sal/rtl/byteseq.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c3a71742e5092b012921ad80d3375b231a75f8c2 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jun 2 18:07:20 2015 +0200 -fsanitize=nonnull-attribute in memcpy call Change-Id: If1f852ce4ef3419d663d4e2f4bdb4a57cc61e799 diff --git a/sal/rtl/byteseq.cxx b/sal/rtl/byteseq.cxx index a374486..024719a 100644 --- a/sal/rtl/byteseq.cxx +++ b/sal/rtl/byteseq.cxx @@ -192,7 +192,7 @@ void SAL_CALL rtl_byte_sequence_constructFromArray( SAL_THROW_EXTERN_C() { rtl_byte_sequence_constructNoDefault( ppSequence , nLength ); - if ( *ppSequence != 0 ) + if ( *ppSequence != 0 && nLength != 0 ) memcpy( (*ppSequence)->elements, pData, nLength ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits