bugGPSD - Bugs: bug #44990, Incorrect code for detecing...

 
 

bug #44990: Incorrect code for detecing shmat() errors

Submitter:  Zbigniew Chyla <zchyla_nokia>
Submitted:  Sat 02 May 2015 12:22:05 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
   

Sat 02 May 2015 12:22:05 AM UTC, original submission:  

Code in gps_shm_open() uses incorrect pointer when checking for shmat() failure. Additionally, it will leak memory on shmat() errors (once the check is corrected).

The attached patches fix these issues.

Zbigniew Chyla <zchyla_nokia>

 

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

Attach Files:
   
   
Comment:
   

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-03 esr Open/ClosedOpen Closed
    2015-06-01 esr StatusNone Fixed
        Assigned toNone esr
    2015-05-02 zchyla_nokia Attached File- Added 0001-Fix-checking-the-result-of-shmat-call.patch, #33868
        Attached File- Added 0002-Fix-memory-leak-in-case-of-shmat-failure.patch, #33869

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code