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

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