pgsql: port/snprintf(): fix overflow and do padding

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: port/snprintf(): fix overflow and do padding
Дата
Msg-id E1YIIVa-0008QN-VR@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
port/snprintf():  fix overflow and do padding

Prevent port/snprintf() from overflowing its local fixed-size
buffer and pad to the desired number of digits with zeros, even
if the precision is beyond the ability of the native sprintf().
port/snprintf() is only used on systems that lack a native
snprintf().

Reported by Bruce Momjian. Patch by Tom Lane.    Backpatch to all
supported versions.

Security: CVE-2015-0242

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9e05c5063eb01ce52618f29fe975696dc4495e6f

Modified Files
--------------
src/port/snprintf.c |   69 +++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 62 insertions(+), 7 deletions(-)


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

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: Cherry-pick security-relevant fixes from upstream imath library.
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Fix buffer overrun after incomplete read in pullf_read_max().