bugGNU indent - Bugs: bug #46627, Out of bounds read in function...


bug #46627: Out of bounds read in function read_file()

Submitted by:  None
Submitted on:  Mon 07 Dec 2015 06:10:33 PM UTC  
Category:  C Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  Andrej Shadura <andrewsh>
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

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


Mon 07 Dec 2015 06:10:33 PM UTC, original submission:

Attached is a patch to fix an out of bounds read when using indent on a zero-byte file. This would cause an access to -1 in fileptr.data.

This has previously been reported to the mailing list:

Please apply patch.



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

Attach Files:

Attached Files
file #35657:  indent-fix-underflow-read_file.diff added by None (418B - text/x-patch - patch to fix invalid memory access)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by andrewsh (Updated the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-06 andrewsh StatusIn Progress => Fixed
        Open/ClosedOpen => Closed
    2018-09-02 andrewsh CategoryNone => C
        Item GroupNone => Crash
        StatusNone => In Progress
        Assigned toNone => andrewsh
    2015-12-07 None Attached File- => Added indent-fix-underflow-read_file.diff, #35657

    Back to the top

    Powered by Savane 3.4