mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-23 20:08:04 +01:00
* openfile.c (ask_outfile_name): Fixed buffer overflow occurring
if make_printable_string returns a longer string. Fixes bug 728.
This commit is contained in:
parent
55df654ea8
commit
e1829a3d52
@ -1,3 +1,8 @@
|
|||||||
|
2006-11-27 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* openfile.c (ask_outfile_name): Fixed buffer overflow occurring
|
||||||
|
if make_printable_string returns a longer string. Fixes bug 728.
|
||||||
|
|
||||||
2006-10-23 Werner Koch <wk@g10code.com>
|
2006-10-23 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* gpg.c (main): New command --gpgconf-list.
|
* gpg.c (main): New command --gpgconf-list.
|
||||||
|
@ -144,8 +144,8 @@ ask_outfile_name( const char *name, size_t namelen )
|
|||||||
|
|
||||||
s = _("Enter new filename");
|
s = _("Enter new filename");
|
||||||
|
|
||||||
n = strlen(s) + namelen + 10;
|
|
||||||
defname = name && namelen? make_printable_string( name, namelen, 0): NULL;
|
defname = name && namelen? make_printable_string( name, namelen, 0): NULL;
|
||||||
|
n = strlen(s) + (defname?strlen (defname):0) + 10;
|
||||||
prompt = xmalloc(n);
|
prompt = xmalloc(n);
|
||||||
if( defname )
|
if( defname )
|
||||||
sprintf(prompt, "%s [%s]: ", s, defname );
|
sprintf(prompt, "%s [%s]: ", s, defname );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user