Apache OpenOffice (AOO) Bugzilla – Issue 111747
svl: invalid use of memset
Last modified: 2017-05-20 10:23:52 UTC
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3 rightfully complains about broken usage of memset: In function 'void* memset(void*, int, size_t)', inlined from 'SfxULongRanges& SfxULongRanges::operator/=(const SfxULongRanges&)' at ..../svl/source/items/nranges.cxx:693: /usr/include/bits/string3.h:82: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters In function 'void* memset(void*, int, size_t)', inlined from 'SfxULongRanges& SfxULongRanges::operator-=(const SfxULongRanges&)' at ..../svl/source/items/nranges.cxx:483: /usr/include/bits/string3.h:82: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters In both cases the memset is directly followed by a memcpy, so it is superfluous anyway and should simply be removed. Assigned to mst because he has a fitting cws at hand.
fixed in cws sw33bf04 http://hg.services.openoffice.org/hg/cws/sw33bf04/rev/ba6375961ba4
please verify
verified