| От | Daniel Gustafsson |
|---|---|
| Тема | pgsql: Add missing string terminator |
| Дата | |
| Msg-id | E1uA3rI-000Ibx-19@gemulon.postgresql.org обсуждение |
| Ответы |
Re: pgsql: Add missing string terminator
|
| Список | pgsql-committers |
Add missing string terminator When copying the string strncpy won't add nul termination since the string length is equal to the length specified. Explicitly set a nul terminator after copying to properly terminate. Found via post-commit review. Author: Rahila Syed <rahilasyed90@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAH2L28vt16C9xTuK+K7QZvtA3kCNWXOEiT=gEekUw3Xxp9LVQw@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d2a1ed1727a8ef45eab1a8ddb3d375c1ce839aac Modified Files -------------- src/backend/utils/mmgr/mcxt.c | 1 + 1 file changed, 1 insertion(+)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера