Обсуждение: pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it

Поиск
Список
Период
Сортировка

pgsql: Fix potential access-off-the-end-of-memory in varbit_out(): it

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Fix potential access-off-the-end-of-memory in varbit_out(): it fetched the
byte after the last full byte of the bit array, regardless of whether that
byte was part of the valid data or not.  Found by buildfarm testing.
Thanks to Stefan Kaltenbrunner for nailing down the cause.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varbit.c (r1.37 -> r1.37.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varbit.c?r1=1.37&r2=1.37.2.1)