components/groff/patches/grops-ps.cpp.patch
author Ivo Raisr <ivo.raisr@oracle.com>
Mon, 01 Jun 2015 08:19:05 -0700
changeset 4424 a844132a7d4b
parent 1885 2572673471ef
permissions -rw-r--r--
21179246 passing incompatible argument in crypto/evp/e_aes.c:861

Prevent /usr/bin/grops from dumping core with given an invalid argument value
with something such as

 $ /usr/bin/grops -c a

Fix has been submitted upstream:
http://savannah.gnu.org/bugs/?42190

--- groff-1.22.2/src/devices/grops/ps.cpp.orig	2014-04-24 06:01:32.421674773 -0700
+++ groff-1.22.2/src/devices/grops/ps.cpp	2014-04-24 09:27:56.445423217 -0700
@@ -1803,7 +1803,7 @@
       break;
     case 'c':
       if (sscanf(optarg, "%d", &ncopies) != 1 || ncopies <= 0) {
-	error("bad number of copies `%s'", optarg);
+	error("bad number of copies `%1'", optarg);
 	ncopies = 1;
       }
       break;