bugGNU roff - Bugs: bug #61012, [mom] om.tmac: an empty argument...

 
 

bug #61012: [mom] om.tmac: an empty argument to ".substring" produces a warning

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Thu 05 Aug 2021 12:06:56 AM UTC
   
 
Category:  Macro mom Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  Fixed
Privacy:  Public Assigned to:  PTPi
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 20 Oct 2021 09:34:28 AM UTC, comment #2: 

groff git updated to mom 2.5 in commit b84ed3b7

Dave <barx>
Group Member
Sat 07 Aug 2021 07:31:50 PM UTC, comment #1: 

The fix will be in the git repo when I upload the next full mom release, hence marking as In Progress.

Peter Schaffter <PTPi>
Group Member
Thu 05 Aug 2021 12:06:56 AM UTC, original submission:  



troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':7037: macro 'HEADER_VERSO'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':7345: macro 'PRINT_USERDEF_HDRFTR'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':7080: macro 'PRINT_HDRFTR'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':7434: trap-called macro 'HEADER'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':7858: macro 'DO_FOOTER'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':7841: trap-called macro 'FOOTER'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':260: macro 'NEWPAGE'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':5788: macro 'END_COVER'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':5766: macro 'DO_COVER'
troff: backtrace: '/home/bg/git/groff/build/s-tmac/om.tmac':5873: macro 'START'
troff: backtrace: file '../contrib/mom/examples/slide-demo.mom':83
troff: ../contrib/mom/examples/slide-demo.mom:83: warning: start and end index of substring out of range

  HEADER_VERSO is an alias of HDRFTR_VERSO.

  Code snippet:

.    ds $QUAD_TYPE \\$1
.    substring $QUAD_TYPE 0 0
.    if '\\*[$QUAD_TYPE]'L'     .nr #USERDEF_HDRFTR_VERSO_QUAD 1

  If the argument to "substring" is empty,
a test for that would be appropriate.


Bjarni Ingi Gislason <bjarniig>

 

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

Attach Files:
   
   
Comment:
   

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 barx (Posted a comment)
  • -email is unavailable- added by PTPi (Posted a comment)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-20 barx Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0
    2021-10-05 PTPi StatusIn Progress Fixed
    2021-08-07 PTPi StatusNone In Progress
    2021-08-07 barx Carbon-CopyRemoved 93119 -
    2021-08-07 barx Assigned toNone PTPi

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code