summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 18:07:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 18:07:20 +0200
commitc3a71742e5092b012921ad80d3375b231a75f8c2 (patch)
tree851f5bfc382d784a5bfd58aed610fd9b8aca41b2 /sal/rtl
parent1c989f8eff440fc47588b77cc73969a8c789a5ae (diff)
-fsanitize=nonnull-attribute in memcpy call
Change-Id: If1f852ce4ef3419d663d4e2f4bdb4a57cc61e799
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/byteseq.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/byteseq.cxx b/sal/rtl/byteseq.cxx
index a3744863bd8d..024719adaff0 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 );
}