bugGPSD - Bugs: bug #46495, gpsd_poll may crash due to...

 
 

bug #46495: gpsd_poll may crash due to unitiialized pointer

Submitted by:  Fred Wright <fhgwright>
Submitted on:  Sun 22 Nov 2015 03:22:42 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eric S. Raymond <esr>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 22 Nov 2015 03:24:19 AM UTC, comment #1:

Sorry for the typo in the summary. :-)

Fred Wright <fhgwright>
Project Member
Sun 22 Nov 2015 03:22:42 AM UTC, original submission:

While updating the MacPorts port for 3.15, I ran across an intermittent crash in the aivdm-regress test, where gpsdecode was segfaulting. As Murphy would have it, it never failed in a debuggable build, but I finally managed to track it down to the combination of the unitialized session structure in gpsdecode.c:decode, and the failure of libgpsd_core.c:gpsd_init to initialize session->last_controller.

Attaching a patch here.

Fred Wright <fhgwright>
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 #35517:  patch-libgpsd_core.c.diff added by fhgwright (566B - application/octet-stream - gpsd_init fix for 3.15)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by esr (Updated the item)
  • -unavailable- added by fhgwright (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 07 Sep 2017 04:35:54 AM UTCesrOpen/ClosedOpen=>Closed
    Mon 04 Jan 2016 08:54:12 PM UTCesrStatusNone=>Fixed
      Assigned toNone=>esr
    Sun 22 Nov 2015 03:22:42 AM UTCfhgwrightAttached File-=>Added patch-libgpsd_core.c.diff, #35517

    Back to the top


    Powered by Savane 3.1-cleanup1