[PATCH] FIx explicit null dereference pointer (nbtree.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject [PATCH] FIx explicit null dereference pointer (nbtree.c)
Date
Msg-id CAEudQArX3tPh3mUs33a9t4L+5v=_wC-Bct2DRuJNd3qrW09JHw@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] FIx explicit null dereference pointer (nbtree.c)  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
Hi,
per Coverity.

1. assign_zero: Assigning: opaque = NULL.
2. Condition buf < 0, taking true branch.
3. Condition !(((PageHeader)page)->pd_upper == 0), taking false branch.
4. Condition blkno != orig_blkno, taking true branch.
5. Condition _bt_page_recyclable(page), taking false branch.
CID 1314742 (#2 of 2): Explicit null dereferenced (FORWARD_NULL)
6. var_deref_op: Dereferencing null pointer opaque.

regards,
Ranier Vilela
Attachment

pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: [PATCH] Fix buffer not null terminated on (ecpg lib)
Next
From: David Rowley
Date:
Subject: Re: Parallel Append can break run-time partition pruning