mainGnuTLS - Support: sr #108224, Segmentation fault when...

 
 

sr #108224: Segmentation fault when /dev/urandom is unavailable.

Submitter:  Joshua Phillips <xlq>
Submitted:  Mon 07 Jan 2013 04:21:12 PM UTC
   
 
Category:  Core library Priority:  5 - Normal
Severity:  2 - Minor Status:  Done
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Jan 2013 04:48:00 PM UTC, comment #1: 

Thank you. I've applied it. Nevertheless there is not much you can do without a /dev/urandom and an egd device.

Nikos Mavrogiannopoulos <nmav>
Group administrator
Mon 07 Jan 2013 04:21:12 PM UTC, original submission:  

In lib/nettle/egd.c, find_egd_name returns NULL on failure. This is passed directly to strlen in _rndegd_connect_socket, causing a segmentation fault if neither /dev/urandom nor EGD are available.

The attached untested patch checks the pointer returned from find_egd_name.

Joshua Phillips <xlq>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #27217:  egd-crash.diff added by xlq (432B - 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 nmav (Posted a comment)
  • -email is unavailable- added by xlq (Submitted the item)
  • -email is unavailable- added by xlq
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-07 nmav StatusNone Done
        Assigned toNone nmav
        Open/ClosedOpen Closed
    2013-01-07 xlq Attached File- Added egd-crash.diff, #27217
        Carbon-Copy- Added xlq

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code