bugDenemo - Bugs: bug #46453, improper use of readlink causes...

 
 

bug #46453: improper use of readlink causes sigsegv in 2.0.0

Submitter:  Roy Rankin <rrankin>
Submitted:  Mon 16 Nov 2015 05:22:28 AM UTC
   
 
Category:  None
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 16 Nov 2015 09:50:08 PM UTC, comment #1: 

In 2.0.1 now
Thank you. The ctype.h inclusion was already in git.

Richard Shann <rshann>
Group administrator
Mon 16 Nov 2015 05:22:28 AM UTC, original submission:  

readlink does not 0 terminate returned buffer.
It is correctly used in src/core/binreloc.c but not src/core/utils.c.

This bug can causes sigsegv crashes.

Attached is a proposed patch which also includes ctype.h for tolower is declared.

Roy Rankin <rrankin>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35468:  readlink.patch added by rrankin (827B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rshann (Posted a comment)
  • -email is unavailable- added by rrankin (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-16 rshann StatusNone Fixed
        Open/ClosedOpen Closed
    2015-11-16 rrankin Attached File- Added readlink.patch, #35468

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code