[sr-dev] [kamailio/kamailio] db_redis: warning: 'table_name.len' may be used uninitialized (#2169)
sergey-safarov
notifications at github.com
Fri Dec 6 16:04:40 CET 2019
**ims_registrar_scscf**
```
make[3]: 'libkamailio_ims.so.0.1' is up to date.
LD (gcc) [M ims_registrar_scscf.so] ims_registrar_scscf.so
CC (gcc) [M ims_usrloc_pcscf.so] hslot.o
CC (gcc) [M ims_usrloc_pcscf.so] ul_callback.o
CC (gcc) [M ims_usrloc_pcscf.so] reginfo.o
CC (gcc) [M ims_usrloc_pcscf.so] usrloc_db.o
CC (gcc) [M ims_usrloc_pcscf.so] ul_rpc.o
CC (gcc) [M ims_usrloc_pcscf.so] utime.o
CC (gcc) [M ims_usrloc_pcscf.so] ims_usrloc_pcscf_mod.o
In file included from ../../lib/srdb1/db.h:45,
from usrloc_db.c:10:
usrloc_db.c: In function 'db_delete_pcontact':
../../lib/srdb1/db_val.h:106:29: warning: array subscript 1 is above array bounds of 'db_val_t[1]' {aka 'struct <anonymous>[1]'} [-Warray-bounds]
106 | #define VAL_TYPE(dv) ((dv)->type)
| ~~~~~^~~~~~~
usrloc_db.c:223:2: note: in expansion of macro 'VAL_TYPE'
223 | VAL_TYPE(values + 1) = DB1_INT;
| ^~~~~~~~
usrloc_db.c:216:11: note: while referencing 'values'
216 | db_val_t values[1];
| ^~~~~~
In file included from ../../lib/srdb1/db.h:45,
from usrloc_db.c:10:
../../lib/srdb1/db_val.h:114:29: warning: array subscript 1 is above array bounds of 'db_val_t[1]' {aka 'struct <anonymous>[1]'} [-Warray-bounds]
114 | #define VAL_NULL(dv) ((dv)->nul)
| ~~~~~^~~~~~
usrloc_db.c:224:2: note: in expansion of macro 'VAL_NULL'
224 | VAL_NULL(values + 1) = 0;
| ^~~~~~~~
usrloc_db.c:216:11: note: while referencing 'values'
216 | db_val_t values[1];
| ^~~~~~
In file included from ../../lib/srdb1/db.h:45,
from usrloc_db.c:10:
../../lib/srdb1/db_val.h:128:34: warning: array subscript 1 is above array bounds of 'db_val_t[1]' {aka 'struct <anonymous>[1]'} [-Warray-bounds]
128 | #define VAL_INT(dv) ((dv)->val.int_val)
| ~~~~~~~~~~^~~~~~~~~
usrloc_db.c:225:2: note: in expansion of macro 'VAL_INT'
225 | VAL_INT(values + 1) = _c->received_port;
| ^~~~~~~
usrloc_db.c:216:11: note: while referencing 'values'
216 | db_val_t values[1];
| ^~~~~~
CC (gcc) [M ims_usrloc_pcscf.so] dlist.o
CC (gcc) [M ims_usrloc_pcscf.so] pcontact.o
CC (gcc) [M ims_usrloc_pcscf.so] usrloc.o
pcontact.c: In function 'free_security':
pcontact.c:122:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
122 | if (!_p)
| ^~
pcontact.c:125:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
125 | if(_p->sec_header.s)
| ^~
CC (gcc) [M ims_usrloc_pcscf.so] udomain.o
make[3]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M ims_usrloc_pcscf.so] ims_usrloc_pcscf.so
CC (gcc) [M ims_usrloc_scscf.so] contact_hslot.o
CC (gcc) [M ims_usrloc_scscf.so] ul_callback.o
CC (gcc) [M ims_usrloc_scscf.so] ims_usrloc_scscf_mod.o
CC (gcc) [M ims_usrloc_scscf.so] ul_scscf_stats.o
CC (gcc) [M ims_usrloc_scscf.so] contact_dlg_handlers.o
CC (gcc) [M ims_usrloc_scscf.so] usrloc_db.o
CC (gcc) [M ims_usrloc_scscf.so] subscribe.o
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2169#issuecomment-562607007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191206/694dc515/attachment.html>
More information about the sr-dev
mailing list