| От | David Rowley |
|---|---|
| Тема | pgsql: Fix list_copy_head() with empty Lists |
| Дата | |
| Msg-id | E1ppGOE-003u13-4o@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Fix list_copy_head() with empty Lists
|
| Список | pgsql-committers |
Fix list_copy_head() with empty Lists list_copy_head() given an empty List would crash from trying to dereference the List to obtain its length. Since NIL is how we represent an empty List, we should just be returning another empty List in this case. list_copy_head() is new to v16, so let's fix it now before too many people start coding around the buggy NIL behavior. Reported-by: Miroslav Bendik Discussion: https://postgr.es/m/CAPoEpV02WhawuWnmnKet6BqU63bEu7oec0pJc=nKMtPsHMzTXQ@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e35ded29566f679e52888a8d34468bb51bc78bed Modified Files -------------- src/backend/nodes/list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера