| From: | Ranier Vilela <ranier_gyn(at)hotmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | [PATCH][BUG_FIX] Potential null pointer dereferencing. |
| Date: | 2019-11-12 13:07:04 |
| Message-ID: | MN2PR18MB2927E2212B324756CC6452D0E3770@MN2PR18MB2927.namprd18.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
ExecClearTuple don't check por NULL pointer arg and according
TupIsNull slot can be NULL.
Can anyone check this buf fix?
--- \dll\postgresql-12.0\a\backend\executor\nodeUnique.c Mon Sep 30 17:06:55 2019
+++ nodeUnique.c Tue Nov 12 09:54:34 2019
@@ -74,7 +74,8 @@
if (TupIsNull(slot))
{
/* end of subplan, so we're done */
- ExecClearTuple(resultTupleSlot);
+ if (!TupIsNull(resultTupleSlot))
+ ExecClearTuple(resultTupleSlot);
return NULL;
}
| Attachment | Content-Type | Size |
|---|---|---|
| nodeUnique.c.patch | application/octet-stream | 365 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Antonin Houska | 2019-11-12 13:27:16 | Re: MarkBufferDirtyHint() and LSN update |
| Previous Message | Kyotaro Horiguchi | 2019-11-12 12:31:34 | Re: MarkBufferDirtyHint() and LSN update |