Use StrNCpy not strncpy to fill hash key, to ensure the resulting key
Tom Lane <tgl@sss.pgh.pa.us>
Use StrNCpy not strncpy to fill hash key, to ensure the resulting key is null-terminated. I think this is not a real bug because the parser would always have truncated the identifier to NAMEDATALEN-1 already, but let's be safe. Per report from Klocwork.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/prepare.c | modified | +3 −5 |