Blame SOURCES/gnupg-2.0.22-cve-2018-12020.patch
|
|
e40fb7 |
diff -up gnupg-2.0.22/g10/mainproc.c.sanitize-filename gnupg-2.0.22/g10/mainproc.c
|
|
|
e40fb7 |
--- gnupg-2.0.22/g10/mainproc.c.sanitize-filename 2016-03-24 12:57:29.280170800 +0100
|
|
|
e40fb7 |
+++ gnupg-2.0.22/g10/mainproc.c 2018-06-21 13:42:53.448177540 +0200
|
|
|
e40fb7 |
@@ -631,7 +631,11 @@ proc_plaintext( CTX c, PACKET *pkt )
|
|
|
e40fb7 |
if( pt->namelen == 8 && !memcmp( pt->name, "_CONSOLE", 8 ) )
|
|
|
e40fb7 |
log_info(_("NOTE: sender requested \"for-your-eyes-only\"\n"));
|
|
|
e40fb7 |
else if( opt.verbose )
|
|
|
e40fb7 |
- log_info(_("original file name='%.*s'\n"), pt->namelen, pt->name);
|
|
|
e40fb7 |
+ {
|
|
|
e40fb7 |
+ char *tmp = make_printable_string (pt->name, pt->namelen, 0);
|
|
|
e40fb7 |
+ log_info (_("original file name='%.*s'\n"), (int)strlen (tmp), tmp);
|
|
|
e40fb7 |
+ xfree (tmp);
|
|
|
e40fb7 |
+ }
|
|
|
e40fb7 |
free_md_filter_context( &c->mfx );
|
|
|
e40fb7 |
if (gcry_md_open (&c->mfx.md, 0, 0))
|
|
|
e40fb7 |
BUG ();
|