[mod_gnutls-devel] clang static analysis for mod_gnutls version 0.7

Ramkumar Chinchani ramkumar.chinchani at gmail.com
Sun Aug 2 08:09:56 CEST 2015


FWIW ...


gnutls_io.c:58:13: warning: Access to field 'module_config' results in
a dereference of a null pointer (loaded from field 'base_server')
            ap_get_module_config(f->c->base_server->module_config,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/apache2/http_config.h:508:16: note: expanded from macro
'ap_get_module_config'
    (((void **)(v))[(m)->module_index])
               ^~~
1 warning generated.




gnutls_hooks.c:241:17: warning: Access to field 'server_hostname'
results in a dereference of a null pointer (loaded from variable 's')
                s->server_hostname, s->port);
                ^~~~~~~~~~~~~~~~~~
/usr/include/apache2/http_log.h:363:42: note: expanded from macro 'ap_log_error'
#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
                                         ^
/usr/include/apache2/http_log.h:367:65: note: expanded from macro
'ap_log_error__'
             ap_log_error_(file, line, mi, level, status, sr__,
__VA_ARGS__);    \
                                                                ^
gnutls_hooks.c:290:17: warning: Access to field 'server_hostname'
results in a dereference of a null pointer (loaded from variable 's')
                s->server_hostname, s->port);
                ^~~~~~~~~~~~~~~~~~
/usr/include/apache2/http_log.h:363:42: note: expanded from macro 'ap_log_error'
#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
                                         ^
/usr/include/apache2/http_log.h:367:65: note: expanded from macro
'ap_log_error__'
             ap_log_error_(file, line, mi, level, status, sr__,
__VA_ARGS__);    \
                                                                ^
gnutls_hooks.c:1389:16: warning: The left operand of '&' is a garbage value
    if (status & GNUTLS_CERT_SIGNER_NOT_FOUND) {
        ~~~~~~ ^
3 warnings generated.



More information about the mod_gnutls-devel mailing list