[PATCH] FIx explicit null dereference pointer (nbtree.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] FIx explicit null dereference pointer (nbtree.c)
Date: 2020-04-22 22:54:59
Message-ID: CAEudQArX3tPh3mUs33a9t4L+5v=_wC-Bct2DRuJNd3qrW09JHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
fix_explicit_null_dereference_nbtree.patch application/octet-stream 412 bytes

Responses

Browse pgsql-hackers by date

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