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

 
 

bug #46495: gpsd_poll may crash due to unitiialized pointer

Submitter:  Fred Wright <fhgwright>
Submitted:  Sun 22 Nov 2015 03:22:42 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Sorry for the typo in the summary. :-)

Fred Wright <fhgwright>
Group 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>
Group Member

 

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

Attach Files:
   
   
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
  • -email is unavailable- added by esr (Updated the item)
  • -email is unavailable- added by fhgwright (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-07 esr Open/ClosedOpen Closed
    2016-01-04 esr StatusNone Fixed
        Assigned toNone esr
    2015-11-22 fhgwright Attached File- Added patch-libgpsd_core.c.diff, #35517

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code