backend where a statically sized buffer is written to. Most of these
Bruce Momjian <bruce@momjian.us>
backend where a statically sized buffer is written to. Most of these should be pretty safe in practice, but it's probably better to be safe than sorry. I was actually looking for cases where NAMEDATALEN is assumed to be 32, but only found one. That's fixed too, as well as a few bits of code cleanup. Neil Conway
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execMain.c | modified | +2 −2 |
| src/backend/optimizer/plan/planner.c | modified | +2 −2 |
| src/backend/parser/analyze.c | modified | +2 −2 |
| src/backend/parser/gram.y | modified | +2 −2 |
| src/backend/utils/adt/mac.c | modified | +2 −2 |
| src/backend/utils/adt/tid.c | modified | +2 −2 |
| src/backend/utils/adt/varlena.c | modified | +5 −7 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +2 −4 |
| src/bin/pg_dump/pg_backup_tar.h | modified | +5 −5 |
| src/bin/psql/print.c | modified | +3 −3 |
| src/interfaces/cli/example2.c | modified | +1 −1 |
| src/pl/plpgsql/src/gram.y | modified | +3 −3 |
| src/pl/plpgsql/src/pl_comp.c | modified | +2 −2 |