packages: memstomp/memstomp.spec (NEW) - inital spec for validator memcpy's...

pluto pluto at pld-linux.org
Mon Jul 25 19:36:23 CEST 2011


Author: pluto                        Date: Mon Jul 25 17:36:23 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- inital spec for validator memcpy's UB.

---- Files affected:
packages/memstomp:
   memstomp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/memstomp/memstomp.spec
diff -u /dev/null packages/memstomp/memstomp.spec:1.1
--- /dev/null	Mon Jul 25 19:36:23 2011
+++ packages/memstomp/memstomp.spec	Mon Jul 25 19:36:17 2011
@@ -0,0 +1,58 @@
+# $Revision$, $Date$
+Summary:	specialized memcpy checker with low overhead
+Name:		memstomp
+Version:	0.1.5
+Release:	0.1
+License:	LGPL v3+ with exception (backtrace-symbols.c is GPL v2+)
+Group:		Development/Debug
+Source0:	%{name}.tar.bz2
+# Source0-md5:	d0c7c703f0e4a9a0409509f7fa8b1744
+Patch0:		%{name}-version.patch
+URL:		http://fedorapeople.org/gitweb?p=wcohen/public_git/memstomp/
+BuildRequires:	binutils-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Memstomp checks the operation of memcpy. In particular memstomp warns
+when memcpy is used to copy overlapping regions of memory (such as the
+problem encountered in
+https://bugzilla.redhat.com/show_bug.cgi?id=638477)
+
+Just use it as prefix for your usual command line and it will check
+memcpy used in all child processes. Note that valgrind can perform
+this type of check also. Memstomp merely lowers the overhead for this
+type of check.
+
+%prep
+%setup -qn %{name}.git
+%patch0 -p1
+sh bootstrap.sh
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/memstomp
+%attr(755,root,root) %{_libdir}/libmemstomp-backtrace-symbols.so
+%attr(755,root,root) %{_libdir}/libmemstomp.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/07/25 17:36:17  pluto
+- inital spec for validator memcpy's UB.
================================================================


More information about the pld-cvs-commit mailing list