aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pg_lzcompress.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-01-17 12:38:52 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-01-17 12:38:52 -0500
commitbdd8ed973da9ab48aba2292b01f71d2f9968b82c (patch)
treea0465fcbc6e17f8826b176362e5c9fc142b705d3 /src/backend/utils/adt/pg_lzcompress.c
parent978445bece6ce3df55599ee971a4a5dc217bf34c (diff)
downloadpostgresql-bdd8ed973da9ab48aba2292b01f71d2f9968b82c.tar.gz
postgresql-bdd8ed973da9ab48aba2292b01f71d2f9968b82c.zip
Fix miscalculation of itemsafter in array_set_slice().
If the slice to be assigned to was before the existing array lower bound (requiring at least one null element to spring into existence to fill the gap), the code miscalculated how many entries needed to be copied from the old array's null bitmap. This could result in trashing the array's data area (as seen in bug #5840 from Karsten Loesing), or worse. This has been broken since we first allowed the behavior of assigning to non-adjacent slices, in 8.2. Back-patch to all affected versions.
Diffstat (limited to 'src/backend/utils/adt/pg_lzcompress.c')
0 files changed, 0 insertions, 0 deletions