1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Fix format string vulnerability.

Security:	http://vuxml.FreeBSD.org/a4bd3039-9a48-11d9-a256-0001020eed82.html
Security:	CAN-2005-0665
Obtained from:	Gentoo Linux
Approved by:	portmgr (marcus), erwin (mentor), maintainer
This commit is contained in:
Simon L. B. Nielsen 2005-03-21 22:45:35 +00:00
parent 378a03b28e
commit 017f92e4e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131860
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= xv
PORTVERSION= 3.10a
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES+= graphics
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/ \
${MASTER_SITE_LOCAL} \

View File

@ -0,0 +1,11 @@
--- xv.c.orig Mon Mar 21 22:00:43 2005
+++ xv.c Mon Mar 21 22:21:53 2005
@@ -2197,7 +2197,7 @@
SetISTR(ISTR_INFO,formatStr);
SetInfoMode(INF_PART);
- SetISTR(ISTR_FILENAME,
+ SetISTR(ISTR_FILENAME, "%s",
(filenum==DFLTPIC || filenum==GRABBED || frompipe)
? "<none>" : basefname);