bugPSPP - Bugs: bug #28883, Potential null pointer dereference...

 
 

bug #28883: Potential null pointer dereference in psql-reader.c

Submitter:  Ben Pfaff <blp>
Submitted:  Sat 13 Feb 2010 04:47:09 AM UTC
   
 
Category:  System/Portable File I/O Severity:  3 - Ordinary
Priority:  5 - Normal Status:  None
Assigned to:  jmd Open/Closed:  Open
Release:  Future Effort:  0.00
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sat 13 Feb 2010 04:47:09 AM UTC, original submission:  

The "clang" static analyzer reported a number of related potential null pointer dereferences in psql-reader.c.  I'm attaching one of the reports.

According to John Darrington:


One thing is for sure: that code could use some more comments.

The analyser is correct.  A null pointer dereference could potentially
occur if the PSQL library server started behaving oddly.  However, this
feature has some quite comprehensive tests, and there's been no problem
so far.

I suggest that we raise a bug about this, so that I can fix it when I
get time.


Ben Pfaff <blp>
Group administrator

 

Attached Files

Attached Files
file #19691:  report-5PvYYA.html added by blp (109KiB - text/html)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by jmd (Updated the item)
  • -email is unavailable- added by blp (Submitted the item)
  •  

    Votes

    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.

     

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-12 jmd Severity5 - Average 3 - Ordinary
    2011-05-14 blp ReleaseNone Future
    2010-02-13 blp Attached File- Added report-5PvYYA.html, #19691

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code