pgsql: Add tests for json{b}_populate_recordset() crash case.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add tests for json{b}_populate_recordset() crash case.
Date: 2017-11-06 15:29:58
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add tests for json{b}_populate_recordset() crash case.

The problem reported as CVE-2017-15098 was already resolved in HEAD by
commit 37a795a60, but let's add the relevant test cases anyway.

Michael Paquier and Tom Lane, per a report from David Rowley.

Security: CVE-2017-15098

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b574228715f0fd77ed1f4f084603cff9e757e992

Modified Files
--------------
src/test/regress/expected/json.out | 13 +++++++++++++
src/test/regress/expected/jsonb.out | 13 +++++++++++++
src/test/regress/sql/json.sql | 6 ++++++
src/test/regress/sql/jsonb.sql | 6 ++++++
4 files changed, 38 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-11-06 17:03:36 pgsql: Last-minute updates for release notes.
Previous Message Noah Misch 2017-11-06 15:12:49 pgsql: start-scripts: switch to $PGUSER before opening $PGLOG.