bugGNU roff - Bugs: bug #64183, [PATCH] [pdfroff]: sanitize.tmac...

 
 

bug #64183: [PATCH] [pdfroff]: sanitize.tmac throws warning when -ww specified

Submitter:  Keith Marshall <keithmarshall>
Submitted:  Thu 11 May 2023 09:14:45 PM UTC
   
 
Category:  Macro - others/general Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 May 2023 09:14:45 PM UTC, original submission:  

After patching test-groff, per attached, to allow me to run pdfroff within the groff build tree, and formatting pdfroff.1 as PDF, using my own as yet unpublished anpdf.tmac, I see:

$ CMD=pdfroff ./test-groff -ww -manpdf -dpaper=a4 -P-pa4 -rFT='(-0.75i)' ../groff-pdfmark/build/pdfroff.1 > pdfroff.1.pdf
troff:../groff-pdfmark/build/pdfroff.1:2: warning: end index of substring out of range, set to string length
...

(the same warning is repeated a further eight times, originating from differing line numbers within pdfroff.1).

The warning originates from contrib/pdfmark/sanitize.tmac, after inspection of the last character in the pdfhref address string, when attempting to discard this character from the residual string.

I've already fixed this in groff-pdfmark, at OSDN; a patch, relative to your contrib/pdfmark version, (which also adds some additional filters from my version of sanitize.tmac, which are not in yours), is attached.

Keith Marshall <keithmarshall>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Updated the item)
  • -email is unavailable- added by barx (Updated the item)
  • -email is unavailable- added by keithmarshall (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-14 gbranden CategoryGeneral Macro - others/general
    2023-05-12 barx Summary[pdfroff]: sanitize.tmac throws warning when -ww specified [PATCH] [pdfroff]: sanitize.tmac throws warning when -ww specified
    2023-05-11 keithmarshall Attached File- Added test-groff-command.patch, #54728
        Attached File- Added reference-sanitizer.patch, #54729

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code