| От | Jeff Davis |
|---|---|
| Тема | pgsql: Fix crash in json_to_record(). |
| Дата | |
| Msg-id | E1WIgid-00041b-Ge@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Fix crash in json_to_record().
|
| Список | pgsql-committers |
Fix crash in json_to_record(). json_to_record() depends on get_call_result_type() for the tuple descriptor of the record that should be returned, but in some cases that cannot be determined. Add a guard to check if the tuple descriptor has been properly resolved, similar to other callers of get_call_result_type(). Also add guard for two other callers of get_call_result_type() in jsonfuncs.c. Although json_to_record() is the only actual bug, it's a good idea to follow convention. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/486ea0b19e08c10ff53e36e46209a928df048281 Modified Files -------------- src/backend/utils/adt/jsonfuncs.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера