diff options
author | cy <cy@FreeBSD.org> | 2004-06-07 19:55:18 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2004-06-07 19:55:18 +0800 |
commit | 259ba4f395a22c1e66c5b5826fe3e21a5fecb48e (patch) | |
tree | 0ecc7b7f90a65779b16c862c4db7085b38a302c1 /security | |
parent | f71b7d01215435f81145f80390685cac57dae3d8 (diff) | |
download | freebsd-ports-gnome-259ba4f395a22c1e66c5b5826fe3e21a5fecb48e.tar.gz freebsd-ports-gnome-259ba4f395a22c1e66c5b5826fe3e21a5fecb48e.tar.zst freebsd-ports-gnome-259ba4f395a22c1e66c5b5826fe3e21a5fecb48e.zip |
Fix format string vulnerability.
Obtained from: Paul Herman <pherman@frenchfries.net> on BUGTRAQ
Diffstat (limited to 'security')
-rw-r--r-- | security/tripwire/Makefile | 2 | ||||
-rw-r--r-- | security/tripwire/files/patch-src::tripwire::pipedmailmessage.cpp | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/security/tripwire/Makefile b/security/tripwire/Makefile index eb19a96ecc56..431e3dd808e8 100644 --- a/security/tripwire/Makefile +++ b/security/tripwire/Makefile @@ -7,7 +7,7 @@ PORTNAME= tripwire PORTVERSION= 2.3.1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= http://download.sourceforge.net/tripwire/ DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.[0-9]*$/-&/:C/-\./-/} diff --git a/security/tripwire/files/patch-src::tripwire::pipedmailmessage.cpp b/security/tripwire/files/patch-src::tripwire::pipedmailmessage.cpp new file mode 100644 index 000000000000..f88afd69aea0 --- /dev/null +++ b/security/tripwire/files/patch-src::tripwire::pipedmailmessage.cpp @@ -0,0 +1,16 @@ +Index: src/tripwire/pipedmailmessage.cpp +=================================================================== +retrieving revision 1.1 +retrieving revision 1.2 +diff -u -r1.1 -r1.2 +--- src/tripwire/pipedmailmessage.cpp 21 Jan 2001 00:46:48 -0000 1.1 ++++ src/tripwire/pipedmailmessage.cpp 26 May 2004 20:59:15 -0000 1.2 +@@ -180,7 +180,7 @@ + + void cPipedMailMessage::SendString( const TSTRING& s ) + { +- if( _ftprintf( mpFile, s.c_str() ) < 0 ) ++ if( _ftprintf( mpFile, "%s", s.c_str() ) < 0 ) + { + TOSTRINGSTREAM estr; + estr << TSS_GetString( cTripwire, tripwire::STR_ERR2_MAIL_MESSAGE_COMMAND ) |