pgsql: Fix combo_decrypt() to throw an error for zero-length input when

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix combo_decrypt() to throw an error for zero-length input when
Дата
Msg-id 20070823161620.190147541FB@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix combo_decrypt() to throw an error for zero-length input when using a
padded encryption scheme.  Formerly it would try to access res[(unsigned) -1],
which resulted in core dumps on 64-bit machines, and was certainly trouble
waiting to happen on 32-bit machines (though in at least the known case
it was harmless because that byte would be overwritten after return).
Per report from Ken Colson; fix by Marko Kreen.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/contrib/pgcrypto:
        px.c (r1.7 -> r1.7.6.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgcrypto/px.c?r1=1.7&r2=1.7.6.1)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix combo_decrypt() to throw an error for zero-length input when
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix combo_decrypt() to throw an error for zero-length input when