[PATCH] Explicit null dereferenced (src/backend/access/heap/heaptoast.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] Explicit null dereferenced (src/backend/access/heap/heaptoast.c)
Date: 2020-08-28 00:22:47
Message-ID: CAEudQArJCzV6o-Nh-X0Y3cih-ot3XojK19UrT7xmJ=pW-S8kfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Per Coverity.

When "Prepare for toasting", it is necessary to turn off the flag
TOAST_NEEDS_DELETE_OLD,
if there is no need to delete external values from the old tuple, otherwise,
there are dereference NULL at toast_helper.c (on toast_tuple_cleanup
function).

regards,
Ranier Vilela

Attachment Content-Type Size
fix_null_dereference_heaptoast.patch application/octet-stream 433 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2020-08-28 00:28:20 Disk-based hash aggregate's cost model
Previous Message Peter Geoghegan 2020-08-28 00:18:04 Re: XMAX_LOCK_ONLY and XMAX_COMMITTED (fk/multixact code)