Add missed bms_copy() in perform_pruning_combine_step
Alvaro Herrera <alvherre@alvh.no-ip.org>
Add missed bms_copy() in perform_pruning_combine_step We were initializing a BMS to merely reference an existing one, which would cause a double-free (and a crash) when the recursive algorithm tried to intersect it with an empty one. Fix it by creating a copy at initialization time. Reported-by: sqlsmith (by way of Andreas Seltenreich) Author: Amit Langote Discussion: https://postgr.es/m/87in923lyw.fsf@ansel.ydns.eu
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/partitioning/partprune.c | modified | +2 −1 |
Discussion
- [sqlsmith] Failed assertion on pfree() via perform_pruning_combine_step 8 messages · 2018-04-07 → 2018-04-10