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

 
 

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

Submitted by:  Roy Rankin <rrankin>
Submitted on:  Mon 16 Nov 2015 05:22:28 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
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 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by rshann (Posted a comment)
  • -unavailable- added by rrankin (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

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

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Nov 2015 09:50:08 PM UTCrshannStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 16 Nov 2015 05:22:28 AM UTCrrankinAttached File-=>Added readlink.patch, #35468

    Back to the top


    Powered by Savane 3.1-cleanup1