pgsql: Don't reference out-of-bounds array elements in brin_minmax_mult

2022-09-12 Thread David Rowley
Don't reference out-of-bounds array elements in brin_minmax_multi.c The primary fix here is to fix has_matching_range() so it does not reference ranges->values[-1] when nranges == 0. Similar problems existed in AssertCheckRanges() too. It does not look like any of these problems could lead to a

pgsql: Don't reference out-of-bounds array elements in brin_minmax_mult

2022-09-12 Thread David Rowley
Don't reference out-of-bounds array elements in brin_minmax_multi.c The primary fix here is to fix has_matching_range() so it does not reference ranges->values[-1] when nranges == 0. Similar problems existed in AssertCheckRanges() too. It does not look like any of these problems could lead to a

pgsql: Don't reference out-of-bounds array elements in brin_minmax_mult

2022-09-12 Thread David Rowley
Don't reference out-of-bounds array elements in brin_minmax_multi.c The primary fix here is to fix has_matching_range() so it does not reference ranges->values[-1] when nranges == 0. Similar problems existed in AssertCheckRanges() too. It does not look like any of these problems could lead to a