bugGNU troff - Bugs: bug #42190, /usr/bin/grops -c a core dumps


bug #42190: /usr/bin/grops -c a core dumps

Submitted by:  Rich Burridge <richburridge>
Submitted on:  Thu 24 Apr 2014 09:16:27 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Ready For Test
Privacy: PublicAssigned to: Carsten Kunze <carstenkunze>
Open/Closed: OpenPlanned Release: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 24 Apr 2014 09:16:27 PM UTC, original submission:

Steps to reproduce:

$ /usr/bin/grops -c a

This will dump core.

Fix is:

--- 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 @@
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;

(this is a patch against groff 1.22).


Rich Burridge <richburridge>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by carstenkunze (Updated the item)
  • -unavailable- added by richburridge (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Apr 2017 07:51:03 PM UTCcarstenkunzeStatusNone=>Ready For Test
      Assigned toNone=>carstenkunze

    Back to the top

    Powered by Savane 3.1-cleanup1