Snippets for 3proxy 1.0.1 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/3proxy/1.0.1/1.fc46/data/logs/x86_64/build.log.
-
proxy.c:509:66: warning: value computed is not used [-Wunused-value] 509 | (se = (unsigned char *)strchr((char *)sb, '\r')) || (se = (unsigned char *)strchr((char *)sb, '\n')); | ^~ -
/usr/include/bits/stdio2.h:30:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized] 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
datatypes.c:107:31: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 3 [-Wformat-overflow=] 107 | return sprintf(buf, "/%d", i); | ^~ -
ssllib.c:82:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 82 | if(!(ext = X509_get_ext(src_cert, idx))) return 0; | ^ -
conf.c:1313:41: warning: unused variable ‘pattern’ [-Wunused-variable] 1313 | unsigned char *pattern; | ^~~~~~~ -
webadmin.c:506:15: warning: variable ‘buf’ set but not used [-Wunused-but-set-variable=] 506 | char *buf; | ^~~ -
httpsrv.c:1223:17: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1223 | strncpy(r->lasthost, r->host, 255); | ^ -
proxy.c:163:12: warning: ‘growbuf’ defined but not used [-Wunused-function] 163 | static int growbuf(unsigned char **buf, int *bufsize, int need){ | ^~~~~~~