Blame SOURCES/gnupg-2.0.22-cve-2018-12020.patch

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