1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Fix buffer overflow.

Security: https://bugs.g10code.com/gnupg/issue728
This commit is contained in:
Michael Nottebrock 2006-11-28 12:39:38 +00:00
parent 3afde34a66
commit 93f5c5d165
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178170
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= gnupg
PORTVERSION= 1.9.22
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= alpha/gnupg

View File

@ -0,0 +1,12 @@
--- g10/openfile.c.orig Tue Nov 28 13:31:12 2006
+++ g10/openfile.c Tue Nov 28 13:32:20 2006
@@ -145,8 +145,8 @@
s = _("Enter new filename");
- n = strlen(s) + namelen + 10;
defname = name && namelen? make_printable_string( name, namelen, 0): NULL;
+ n = strlen(s) + (defname?strlen (defname):0) + 10;
prompt = xmalloc(n);
if( defname )
sprintf(prompt, "%s [%s]: ", s, defname );