[PATCH] Fix buffer not null terminated on (ecpg lib)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH] Fix buffer not null terminated on (ecpg lib)
Дата
Msg-id CAEudQApFOzniNRqCMLYDACU6G=TLuGoL_kH6XtJLgqSSdRwrTw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Fix buffer not null terminated on (ecpg lib)
Список pgsql-hackers
Hi,
strncpy, it is not a safe function and has the risk of corrupting memory.
On ecpg lib, two sources, make use of strncpy risk, this patch tries to fix.

1. Make room for the last null-characte;
2. Copies Maximum number of characters - 1.

per Coverity.

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: More efficient RI checks - take 2
Следующее
От: Ranier Vilela
Дата:
Сообщение: [PATCH] FIx explicit null dereference pointer (nbtree.c)