Fix buffer overflow.
References: http://lists.gnupg.org/pipermail/gnupg-announce/2006q4/000241.html
This commit is contained in:
parent
196be3803f
commit
36515a4465
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178142
4 changed files with 26 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= gnupg
|
||||
PORTVERSION= 1.4.5
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
||||
MASTER_SITE_SUBDIR= gnupg
|
||||
|
|
12
security/gnupg/files/patch-openfile.c
Normal file
12
security/gnupg/files/patch-openfile.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- g10/openfile.c.orig Tue Nov 28 07:13:53 2006
|
||||
+++ g10/openfile.c Tue Nov 28 07:18:30 2006
|
||||
@@ -144,8 +144,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 );
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= gnupg
|
||||
PORTVERSION= 1.4.5
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
||||
MASTER_SITE_SUBDIR= gnupg
|
||||
|
|
12
security/gnupg1/files/patch-openfile.c
Normal file
12
security/gnupg1/files/patch-openfile.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- g10/openfile.c.orig Tue Nov 28 07:13:53 2006
|
||||
+++ g10/openfile.c Tue Nov 28 07:18:30 2006
|
||||
@@ -144,8 +144,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 );
|
Loading…
Reference in a new issue