• Peter Eisentraut's avatar
    pageinspect: Fix unaligned struct access in GIN functions · 84ad68d6
    Peter Eisentraut authored
    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.
    84ad68d6
ginfuncs.c 7.84 KB