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:  None Severity:  3 - Normal
Item Group:  None Status:  Ready For Test
Privacy:  Public Assigned to:  Carsten Kunze <carstenkunze>
Open/Closed:  Open Planned 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 Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-28 carstenkunze StatusNone => Ready For Test
        Assigned toNone => carstenkunze

    Back to the top

    Powered by Savane 3.3