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
Status:  None Assigned to:  jmd
Open/Closed:  Open Release:  Future
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup

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


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

Attach Files:

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


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jmd (Updated the item)
  • -email is unavailable- added by blp (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 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.12.
    Corresponding source code