Willy,
Am 29.09.2018 um 20:41 schrieb Willy Tarreau:
> Ah, a small change is that we now build with -Wextra after having addressed
> all warnings reported up to gcc 7.3 and filtered a few useless ones. If you
> get some build warnings, please report them along with your gcc version and
> your build options. I personally build with -Werror in addition to this one,
> and would like to keep this principle to catch certain bugs or new compiler
> jokes earlier in the future.
>
make -j4 all TARGET=linux2628 USE_SYSTEMD=1 USE_OPENSSL=1 USE_LUA=1
in a debian:sid Docker Container:
> root@df1d20d1da29:/pwd# dpkg -l 'gcc*' |grep '^ii'
> ii gcc 4:8.2.0-1 amd64 GNU C compiler
> ii gcc-8 8.2.0-7 amd64 GNU C compiler
> ii gcc-8-base:amd64 8.2.0-7 amd64 GCC, the GNU Compiler
> Collection (base package)
> root@df1d20d1da29:/pwd# gcc --version
> gcc (Debian 8.2.0-7) 8.2.0
> Copyright (C) 2018 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
-
> src/ssl_sock.c: In function 'smp_fetch_ssl_fc_cl_str':
> src/ssl_sock.c:7030:32: error: potential null pointer dereference
> [-Werror=null-dereference]
> cipher = SSL_CIPHER_find(conn->xprt_ctx, bin);
> ~~~~^~~~~~~~~~
> src/hlua.c: In function 'hlua_socket_connect_yield':
> src/hlua.c:2365:31: error: potential null pointer dereference
> [-Werror=null-dereference]
> if (appctx->ctx.hlua_cosocket.connected) {
> ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
> src/hlua.c: In function 'hlua_socket_connect':
> src/hlua.c:2442:15: error: potential null pointer dereference
> [-Werror=null-dereference]
> conn->target = s->target;
> ~~~~~~~~~~~~~^~~~~~~~~~~
> src/hlua.c:2481:2: error: potential null pointer dereference
> [-Werror=null-dereference]
> appctx_wakeup(appctx);
> ^~~~~~~~~~~~~~~~~~~~~
> src/ssl_sock.c: In function 'ssl_sock_switchctx_cbk':
> src/ssl_sock.c:2114:4: error: potential null pointer dereference
> [-Werror=null-dereference]
> s = objt_listener(conn->target)->bind_conf;
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make: *** [Makefile:929: src/hlua.o] Error 1
> make: *** Waiting for unfinished jobs....
> cc1: all warnings being treated as errors
> make: *** [Makefile:929: src/ssl_sock.o] Error 1
Best regards
Tim Düsterhus