pgsql: pageinspect: Fix unaligned struct access in GIN functions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: pageinspect: Fix unaligned struct access in GIN functions
Дата
Msg-id E1c2f89-0008TX-84@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pageinspect: Fix unaligned struct access in GIN functions

The raw page data that is passed into the functions will not be aligned
at 8-byte boundaries.  Casting that to a struct and accessing int64
fields will result in unaligned access.  On most platforms, you get away
with it, but it will result on a crash on pickier platforms such as ia64
and sparc64.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/84ad68d645222f534e4fe51fbba43a5c9cc382a5

Modified Files
--------------
contrib/pageinspect/ginfuncs.c | 46 ++++++++++++++++++++++--------------------
1 file changed, 24 insertions(+), 22 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Add API to check if an existing exclusive lock allows cleanup.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pg_xlogdump: Add NLS