bugGNU roff - Bugs: bug #54469, common.roff: Changed string causes...

 
 

bug #54469: common.roff: Changed string causes warning in ".substring ..."

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Wed 08 Aug 2018 07:23:16 PM UTC
   
 
Category:  Macro - others/general Severity:  2 - Minor
Item Group:  Build/Installation Status:  Fixed
Privacy:  Public Assigned to:  schwarze
Open/Closed:  Closed Planned Release:  1.22.4
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 09 Aug 2018 09:38:25 PM UTC, comment #1: 

Fixed in commit a519a612 Aug 9 23:34:10 2018 +0200.

Ingo Schwarze <schwarze>
Group Member
Wed 08 Aug 2018 07:23:16 PM UTC, original submission:  


Subject: common.roff: Changed string causes warning in ".substring ..."

troff: ../contrib/hdtbl/examples/common.roff:201: warning: end index of substring out of range, set to string length

  The culprit is a change, whose influence on "substring" was not
checked.

.\" Since this just generates example output, we don't need good randomness;
.\" basing this purely on the time and not on the process ID allows better
.\" integration with reproducible builds.
.\" .ds random-s1 \n[minutes]\n[seconds]\n[$$]\n[hours]\"
.ds random-s1 \n[minutes]\n[seconds]\n[hours]\"
.\" prevent overflow
.substring random-s1 0 8


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 schwarze (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
    2018-08-09 schwarze CategoryNone Macro - others/general
        Severity3 - Normal 2 - Minor
        StatusNone Fixed
        Assigned toNone schwarze
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.22.4

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code