Have LookupFuncName accept NULL argtypes for 0 args
Alvaro Herrera <alvherre@alvh.no-ip.org>
Have LookupFuncName accept NULL argtypes for 0 args Prior to this change, it requires to be passed a valid pointer just to be able to pass it to a zero-byte memcmp, per 0a52d378b03b. Given the strange resulting code in callsites, it seems better to test for the case specifically and remove the requirement. Reported-by: Ranier Vilela Discussion: https://postgr.es/m/MN2PR18MB2927F24692485D754794F01BE3740@MN2PR18MB2927.namprd18.prod.outlook.com Discussion: https://postgr.es/m/MN2PR18MB2927F6873DF2774A505AC298E3740@MN2PR18MB2927.namprd18.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/event_trigger.c | modified | +1 −2 |
| src/backend/commands/foreigncmds.c | modified | +1 −2 |
| src/backend/commands/proclang.c | modified | +2 −2 |
| src/backend/commands/trigger.c | modified | +1 −2 |
| src/backend/parser/parse_func.c | modified | +5 −3 |
| src/pl/tcl/pltcl.c | modified | +1 −2 |
Discussion
- [BUG FIX] Uninitialized var fargtypes used. 5 messages · 2019-11-11 → 2019-11-12
- [BUG FIX] Uninitialized var fargtypes used. 8 messages · 2019-11-11 → 2019-11-13