mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +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>
|
||||
|
||||
* gpg.c (main): New command --gpgconf-list.
|
||||
|
@ -144,8 +144,8 @@ ask_outfile_name( const char *name, size_t namelen )
|
||||
|
||||
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 New Issue
Block a user