pageinspect: Fix unaligned struct access in GIN functions
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/ginfuncs.c | modified | +24 −22 |