pgsql: Avoid potential buffer overflow crash

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Avoid potential buffer overflow crash
Дата
Msg-id E1VkESN-0000fA-KE@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Avoid potential buffer overflow crash

A pointer to a C string was treated as a pointer to a "name" datum and
passed to SPI_execute_plan().  This pointer would then end up being
passed through datumCopy(), which would try to copy the entire 64 bytes
of name data, thus running past the end of the C string.  Fix by
converting the string to a proper name structure.

Found by LLVM AddressSanitizer.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/654e006bbaa00610055273e1e08723b1f63ea6ce

Modified Files
--------------
src/backend/utils/adt/ruleutils.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Avoid potential buffer overflow crash
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Avoid potential buffer overflow crash