Fix remotely exploitable format string vulnerability.

This commit is contained in:
Jacques Vidrine 2002-06-10 15:18:06 +00:00
parent 56a60773a6
commit bf87843cd9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61055
2 changed files with 11 additions and 4 deletions

View file

@ -6,15 +6,13 @@
#
PORTNAME= nn
PORTVERSION= 6.6.2
PORTVERSION= 6.6.2_1
CATEGORIES= news
MASTER_SITES= ftp://ftp.nndev.org/pub/nn-6.6/
EXTRACT_SUFX= .tar.Z
MAINTAINER= jooji@nickelkid.com
FORBIDDEN= "Remotely exploitable format string vulnerability."
MAN1= nn.1 nncheck.1 nngoback.1 nngrab.1 nngrep.1 nnpost.1 \
nntidy.1 nnview.1 nnacct.1m nnadmin.1m nnstats.1m nnusage.1m
MAN8= nnmaster.8 nnspew.8

View file

@ -1,5 +1,5 @@
--- nntp.c.orig Tue Oct 9 11:39:11 2001
+++ nntp.c Fri Dec 7 07:10:29 2001
+++ nntp.c Mon Jun 10 10:15:02 2002
@@ -37,6 +37,7 @@
#include <errno.h>
#include <pwd.h>
@ -66,6 +66,15 @@
* get_server_line: get a line from the server.
*
* Expects to be connected to the server.
@@ -634,7 +679,7 @@
can_post = 0;
break;
default:
- nn_exitmsg(1, line);
+ nn_exitmsg(1, "%s", line);
/* NOTREACHED */
}
}
@@ -1726,7 +1771,7 @@
* Phil Lapsley <phil@ucbvax.berkeley.edu>
*/