components/groff/patches/grolbp-lbp.cpp.patch
author Ivo Raisr <ivo.raisr@oracle.com>
Wed, 12 Oct 2016 00:33:37 -0700
branchs11u3-sru
changeset 7127 0d23504d93cf
parent 3706 bd45826ad92c
permissions -rw-r--r--
PSARC/2016/221 PC/SC Lite smartcard middleware 24657567 pcsclite needs to deliver 32-bit libraries

Fix for grolbp segfaulting when given unexpected arguments (CR #18122012).

This fix is already integrated into the groff git repository upstream.

--- groff-1.19.2/src/devices/grolbp/lbp.cpp.orig	2014-01-23 10:59:06.859623493 -0800
+++ groff-1.19.2/src/devices/grolbp/lbp.cpp	2014-01-23 10:59:47.816730501 -0800
@@ -719,6 +719,7 @@
     do_file("-");
   while (optind < argc)
     do_file(argv[optind++]);
-  lbpputs("\033c\033<");
+  if (lbpoutput)
+    lbpputs("\033c\033<");
   return 0;
 }