Blame SOURCES/memstomp-man.patch
|
|
aac10c |
--- a/Makefile.am 2013-03-11 21:53:40.934186094 -0600
|
|
|
aac10c |
+++ b/Makefile.am 2013-03-11 21:57:44.795212526 -0600
|
|
|
aac10c |
@@ -34,6 +34,8 @@ lib_LTLIBRARIES = \
|
|
|
aac10c |
bin_SCRIPTS = \
|
|
|
aac10c |
memstomp
|
|
|
aac10c |
|
|
|
aac10c |
+man1_MANS = memstomp.man
|
|
|
aac10c |
+
|
|
|
aac10c |
CLEANFILES = \
|
|
|
aac10c |
memstomp
|
|
|
aac10c |
|
|
|
aac10c |
diff -Nrup a/memstomp.man b/memstomp.man
|
|
|
aac10c |
--- a/memstomp.man 1969-12-31 17:00:00.000000000 -0700
|
|
|
aac10c |
+++ b/memstomp.man 2013-05-10 17:53:37.767722170 -0600
|
|
|
aac10c |
@@ -0,0 +1,69 @@
|
|
|
aac10c |
+.\" This is a comment
|
|
|
aac10c |
+.\" Contact Owen@thelinuxblog.com
|
|
|
aac10c |
+.TH MEMSTOMP 1 "09 April 2013" "0.1.4"
|
|
|
aac10c |
+.SH NAME
|
|
|
aac10c |
+memstomp \- detect function calls with overlapping memory regions
|
|
|
aac10c |
+.SH SYNOPSIS
|
|
|
aac10c |
+.B memstomp
|
|
|
aac10c |
+.RB [ \-dk ]
|
|
|
aac10c |
+.I application
|
|
|
aac10c |
+.RI [ argument ...]
|
|
|
aac10c |
+.PP
|
|
|
aac10c |
+.B memstomp
|
|
|
aac10c |
+.B \-h
|
|
|
aac10c |
+.SH DESCRIPTION
|
|
|
aac10c |
+The
|
|
|
aac10c |
+.B memstomp
|
|
|
aac10c |
+utility identifies function calls that use overlapping memory regions in situations when such an overlap is not allowed by various standards. When a problem is detected, memstomp displays a backtrace to help you debug the problem, and if executed with the
|
|
|
aac10c |
+.B \-\-debug\-info
|
|
|
aac10c |
+command line option, it even uses the available debugging information. Since the backtrace code is not thread safe, memstomp also allows you to use the
|
|
|
aac10c |
+.B \-\-kill
|
|
|
aac10c |
+option to immediately terminate the analyzed program when an invalid function call is detected.
|
|
|
aac10c |
+.PP
|
|
|
aac10c |
+This version of memstomp inspects the following function calls:
|
|
|
aac10c |
+.BR memcpy (),
|
|
|
aac10c |
+.BR memccpy (),
|
|
|
aac10c |
+.BR mempcpy (),
|
|
|
aac10c |
+.BR strcpy (),
|
|
|
aac10c |
+.BR stpcpy (),
|
|
|
aac10c |
+.BR strncpy (),
|
|
|
aac10c |
+.BR stpncpy (),
|
|
|
aac10c |
+.BR strcat (),
|
|
|
aac10c |
+.BR strncat (),
|
|
|
aac10c |
+.BR wmemcpy (),
|
|
|
aac10c |
+.BR wmempcpy (),
|
|
|
aac10c |
+.BR wcscpy (),
|
|
|
aac10c |
+.BR wcsncpy (),
|
|
|
aac10c |
+.BR wcscat (),
|
|
|
aac10c |
+and
|
|
|
aac10c |
+.BR wcsncat ().
|
|
|
aac10c |
+.SH OPTIONS
|
|
|
aac10c |
+.TP
|
|
|
aac10c |
+.BR \-d ", " \-\-debug\-info
|
|
|
aac10c |
+Make use of debugging information to produce more detailed stack traces.
|
|
|
aac10c |
+.TP
|
|
|
aac10c |
+.BR \-k ", " \-\-kill
|
|
|
aac10c |
+Kill the analyzed application when a problem is detected.
|
|
|
aac10c |
+.TP
|
|
|
aac10c |
+.BR \-h ", " \-\-help
|
|
|
aac10c |
+Display usage information and exit.
|
|
|
aac10c |
+.SH SEE ALSO
|
|
|
aac10c |
+.BR memcpy (3),
|
|
|
aac10c |
+.BR memccpy (3),
|
|
|
aac10c |
+.BR mempcpy (3),
|
|
|
aac10c |
+.BR strcpy (3),
|
|
|
aac10c |
+.BR stpcpy (3),
|
|
|
aac10c |
+.BR strncpy (3),
|
|
|
aac10c |
+.BR stpncpy (3),
|
|
|
aac10c |
+.BR strcat (3),
|
|
|
aac10c |
+.BR strncat (3),
|
|
|
aac10c |
+.BR wmemcpy (3),
|
|
|
aac10c |
+.BR wmempcpy (3),
|
|
|
aac10c |
+.BR wcscpy (3),
|
|
|
aac10c |
+.BR wcsncpy (3),
|
|
|
aac10c |
+.BR wcscat (3),
|
|
|
aac10c |
+.BR wcsncat (3)
|
|
|
aac10c |
+.SH AUTHORS
|
|
|
aac10c |
+Lennart Poettering <lennart@poettering.net>
|
|
|
aac10c |
+.br
|
|
|
aac10c |
+William Cohen <wcohen@redhat.com>
|