pgsql: Avoid reading past datum end when parsing JSON.

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Avoid reading past datum end when parsing JSON.
Дата
Msg-id E1Umuui-0007kp-SV@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Avoid reading past datum end when parsing JSON.

Several loops in the JSON parser examined a byte in memory just before
checking whether its address was in-bounds, so they could read one byte
beyond the datum's allocation.  A SIGSEGV is possible.  New in 9.3, so
no back-patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/66008564f8ce570f7ad6368fbde2138e946d328b

Modified Files
--------------
src/backend/utils/adt/json.c |   21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve updatability checking for views and foreign tables.
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Don't use ordinary NULL-terminated strings as Name datums.