pgsql: Fix NULL pointer dereference in tuplesort.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix NULL pointer dereference in tuplesort.c.
Date: 2017-01-16 18:53:46
Message-ID: E1cTCPa-00014j-7v@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix NULL pointer dereference in tuplesort.c.

Oversight in commit e94568ecc. This could cause a crash when an external
datum tuplesort of a pass-by-value type required multiple passes.
Per report from Mithun Cy.

Peter Geoghegan

Discussion: https://postgr.es/m/CAD__OujuhfWFULGFSt1fyHqUb8N-XafjJhudwt88V0Qs2o84qg@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4e46c97fde42fa8ca57d29b9b47f2ebd11ab8105

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-01-16 20:23:20 pgsql: Fix check_srf_call_placement() to handle VALUES cases correctly.
Previous Message Magnus Hagander 2017-01-16 17:21:52 pgsql: Fix incorrect comparison due to bad merge