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 Apr 24 21:16:27 2014  
Severity: 3 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Thu Apr 24 21:16:27 2014, 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 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):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1