[pgpool-committers: 5049] pgpool: Fix too small buffer size in some configuration file process.
Tatsuo Ishii
ishii at sraoss.co.jp
Thu Aug 16 15:43:21 JST 2018
Fix too small buffer size in some configuration file process.
This was found by newer version of gcc warnings.
pool_config_variables.c: In function ‘BackendFlagsShowFunc’:
pool_config_variables.c:3809:57: warning: ‘__builtin_snprintf’ output truncated before the last format character [-Wformat-truncation=]
snprintf(buffer, sizeof(buffer), "DISALLOW_TO_FAILOVER");
^
In file included from /usr/include/stdio.h:862:0,
from pool_config_variables.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin_snprintf’ output 21 bytes into a destination of size 20
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=230557a3ea54ef0de48643379b3cdf7bba02705d
Modified Files
--------------
src/config/pool_config_variables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the pgpool-committers
mailing list