bugunrtf - Bugs: bug #54008, parser.c#my_skip skips wrong...

 
 

bug #54008: parser.c#my_skip skips wrong number of bytes

Submitter:  None
Submitted:  Wed 30 May 2018 04:12:15 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 06 Nov 2025 05:00:48 PM UTC, comment #1: 

Wow, almost ten years after... Applied your fix in http://hg.savanna ... /rev/fe2ec2162cb8

Jean-Francois Dockes <medoc>
Group administrator
Wed 30 May 2018 04:12:15 AM UTC, original submission:  

There is a simple but painful bug in parser.c#my_skip - if a longer than the current buffer is requested, `read_buf_end` is cleared before the seek, causing the parser to seek past the end of the binary data. This is very likely to corrupt further parsing (see attached sample file).

I've attached a patch with a trivial fix.

Anonymous

 

Attached Files

Attached Files
file #44240:  unrtf.patch added by None (347B - text/x-patch)
file #44241:  sample.rtf added by None (16KiB - application/rtf)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by medoc (Posted a comment)
  •  

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-11-06 medoc StatusNone Fixed
        Open/ClosedOpen Closed
    2018-05-30 None Attached File- Added unrtf.patch, #44240
        Attached File- Added sample.rtf, #44241

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code