[OpenSIPS-Devel] [OpenSIPS/opensips] 0f011e: Don't pass unsigned short * into a function that e...
Maksym Sobolyev
noreply at github.com
Thu Feb 16 22:40:02 UTC 2023
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 0f011eabf766340ecfd2610d020387918d5232c1
https://github.com/OpenSIPS/opensips/commit/0f011eabf766340ecfd2610d020387918d5232c1
Author: Maksym Sobolyev <sobomax at sippysoft.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)
Changed paths:
M modules/lua/sipmemcache.c
Log Message:
-----------
Don't pass unsigned short * into a function that expects
unsigned int *. This fixes the following error building with
gcc on ubuntu-22:
sipmemcache.c: In function `l_sipmemcache_server_add`:
../../ut.h:685:13: error: array subscript `unsigned int[0]` is partly outside array bounds of `in_port_t[1]` {aka `short unsigned int[1]`} [-Werror=array-bounds]
685 | *_r = 0;
| ~~~~^~~
sipmemcache.c:72:13: note: while referencing `iport`
72 | in_port_t iport = 0;
| ^~~~~
Commit: bc6aeb724905cf825e462ed72c2b0ba968e95780
https://github.com/OpenSIPS/opensips/commit/bc6aeb724905cf825e462ed72c2b0ba968e95780
Author: Maksym Sobolyev <sobomax at sippysoft.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)
Changed paths:
M modules/cachedb_redis/cachedb_redis_dbase.c
Log Message:
-----------
Initialize variable to avoid issue compiling with gcc on
ubuntu-22.
Compare: https://github.com/OpenSIPS/opensips/compare/6b9e140f6576...bc6aeb724905
More information about the Devel
mailing list