OSDN Git Service

The attached patch changes most of the usages of sprintf() to
authorBruce Momjian <bruce@momjian.us>
Thu, 15 Aug 2002 02:58:29 +0000 (02:58 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 15 Aug 2002 02:58:29 +0000 (02:58 +0000)
commit66eb8df6a4a04922e34dcb2dc543fe231b94903d
tree784f595e15219b79a7f4d609b174c155a5c310f7
parent7f4981f4af1700456f98ac3f2b2d84959919ec81
The attached patch changes most of the usages of sprintf() to
snprintf() in contrib/. I didn't touch the places where pointer
arithmatic was being used, or other areas where the fix wasn't
trivial. I would think that few, if any, of the usages of sprintf()
were actually exploitable, but it's probably better to be paranoid...

Neil Conway
15 files changed:
contrib/dbase/dbf.c
contrib/dbase/dbf2pg.c
contrib/findoidjoins/findoidjoins.c
contrib/lo/lo.c
contrib/mSQL-interface/mpgsql.c
contrib/oid2name/oid2name.c
contrib/pg_dumplo/lo_export.c
contrib/pg_dumplo/lo_import.c
contrib/pg_dumplo/utils.c
contrib/pg_resetxlog/pg_resetxlog.c
contrib/pgbench/pgbench.c
contrib/rserv/rserv.c
contrib/spi/refint.c
contrib/spi/timetravel.c
contrib/vacuumlo/vacuumlo.c