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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3a06a79) | patch
Detect format-string mistakes in the libpq_pipeline test module.
2022年9月15日 21:17:53 +0000 (17:17 -0400)
2022年9月15日 21:17:53 +0000 (17:17 -0400)
commit cf2c7a736e4939ff0d6cf2acd29b17eea3bca7c2
Detect format-string mistakes in the libpq_pipeline test module.

I happened to notice that libpq_pipeline's private implementation
of pg_fatal lacked any pg_attribute_printf decoration. Indeed,
adding that turned up a mistake! We'd likely never have noticed
because the error exits in this code are unlikely to get hit,
but still, it's a bug.

We're so used to having the compiler check this stuff for us that
a printf-like function without pg_attribute_printf is a land mine.
I wonder if there is a way to detect such omissions.

Back-patch to v14 where this code came in.
src/test/modules/libpq_pipeline/libpq_pipeline.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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