-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
I stumbled across this issue with a static analyzer. If src is NULL, but srclen is not, there is no continue statement like in a preceding block:
Lines 1931 to 1936 in 8ac2e0b
| else if (src == NULL) | |
| { | |
| ereport(DEBUG3, | |
| (errmsg("tds_fdw: %s: Column value pointer is NULL, but probably shouldn't be", column->name) | |
| )); | |
| } |
This may create a possibility of executing memcpy with a NULL-pointer:
Line 1967 in 8ac2e0b
| memcpy(VARDATA(bytes), src, srclen); |
Metadata
Metadata
Assignees
Labels
No labels