Add tests for json{b}_populate_recordset() crash case.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/jsonb.out | modified | +13 −0 |
| src/test/regress/expected/json.out | modified | +13 −0 |
| src/test/regress/sql/jsonb.sql | modified | +6 −0 |
| src/test/regress/sql/json.sql | modified | +6 −0 |