On Thu, Jan 24, 2013 at 01:29:36PM -0500, Bill Nottingham wrote: > Jaroslav Reznik (jreznik@xxxxxxxxxx) said: > > = Features/MEMSTOMP = > > https://fedoraproject.org/wiki/Features/MEMSTOMP > > > > Feature owner(s): Jeff Law <law@xxxxxxxxxx> > > > > Include the MEMSTOMP DSOs in Fedora 19 to enable developers to more quickly > > detect certain library calls which result in undefined behaviour due to > > overlapping memory arguments. > > > > == Detailed description == > > MEMSTOMP is a DSO which can be preloaded by an application to detect calls to > > library routines with overlapping memory arguments. Specifically MEMSTOMP will > > detect calls to the following routines with overalapping memory arguments: > > > > [w]memcpy, str[n]cat, wcs[n]cat, str[n]cpy, wcs[n]cpy, [w]mempcpy, memccpy, > > stp[n]cpy > > > > While valgrind can detect these cases, using a DSO such as MEMSTOMP can be > > significantly faster. > > > > The MEMSTOMP code utilizes GPLV2+ and LGPL3 code. The GPLV2+ code is limited > > to the backtrace code which is not thread safe and may need to be > > disabled/rewritten. > > I assume this could be done as a system-wide LD_PRELOAD if desired? If all multiarch versions are installed, yeah, you could put /usr/$LIB/memstomp.so into /etc/ld.so.preload Jakub -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel