Defend against function calls with more than 8 arguments (code
Tom Lane <tgl@sss.pgh.pa.us>
Defend against function calls with more than 8 arguments (code used to overrun its fixed-size arrays before detecting error; not cool). Also, replace uses of magic constant '8' with 'MAXFARGS'.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_coerce.c | modified | +4 −3 |
| src/backend/parser/parse_func.c | modified | +20 −14 |
| src/backend/parser/parse_target.c | modified | +3 −3 |
| src/include/parser/parse_func.h | modified | +6 −3 |