OSDN Git Service

I checked all the previous string handling errors and most of them were
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Sep 2002 06:11:43 +0000 (06:11 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Sep 2002 06:11:43 +0000 (06:11 +0000)
commita12b4e279bc12a7cd7b7d679fcac4689ac4aba7b
treeff120ff0c156829d771bdc874fe8fbb2aa4fbf6e
parent48e1a39924d9e0674306156a6519cf5688c67c43
I checked all the previous string handling errors and most of them were
already fixed by You. However there were a few left and attached patch
should fix the rest of them.

I used StringInfo only in 2 places and both of them are inside debug
ifdefs. Only performance penalty will come from using strlen() like all
the other code does.

I also modified some of the already patched parts by changing
snprintf(buf, 2 * BUFSIZE, ... style lines to
snprintf(buf, sizeof(buf), ... where buf is an array.

Jukka Holappa
16 files changed:
contrib/cube/cubeparse.y
contrib/intarray/_int.c
contrib/seg/segparse.y
contrib/spi/refint.c
contrib/spi/timetravel.c
doc/src/sgml/spi.sgml
src/backend/parser/analyze.c
src/backend/storage/file/fd.c
src/backend/utils/adt/ri_triggers.c
src/bin/pg_dump/pg_dump.c
src/bin/psql/command.c
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/variable.c
src/interfaces/libpgtcl/pgtclCmds.c
src/interfaces/libpq/fe-auth.c