git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 606c012) | patch
Fix some bogus direct uses of realloc().
2014年11月18日 18:28:06 +0000 (13:28 -0500)
2014年11月18日 18:28:06 +0000 (13:28 -0500)
commit 8b13e5c6c0e8a6b797370fb91d207031df5e784a
Fix some bogus direct uses of realloc().

pg_dump/parallel.c was using realloc() directly with no error check.
While the odds of an actual failure here seem pretty low, Coverity
complains about it, so fix by using pg_realloc() instead.

While looking for other instances, I noticed a couple of places in
psql that hadn't gotten the memo about the availability of pg_realloc.
These aren't bugs, since they did have error checks, but verbosely
inconsistent code is not a good thing.

Back-patch as far as 9.3. 9.2 did not have pg_dump/parallel.c, nor
did it have pg_realloc available in all frontend code.
src/bin/pg_dump/parallel.c diff | blob | blame | history
src/bin/psql/command.c diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /