Oliver Smith
c44b50c147
Building with gcc (Debian 12.2.0-14) 12.2.0 and --enable-werror fails without this during "make distcheck": ../../../src/gb_proxy.c:450:24: error: storing the address of local variable 'tp' in '((struct libgb_msgb_cb *)msg)[2].bssgp_cell_id' [-Werror=dangling-pointer=] 450 | msgb_bcid(msg) = (void *)&tp; This means that gcc now warns (and we turn that into an error) if one assigns the address of a local (stack) variable to something allocated on the heap, and doesn't remove that reference before ending the function (invalidating the stack). Related: OS#6057 Change-Id: Ie51e37572993cb5dc24ecf13bc300225f09cb744 |
||
---|---|---|
.. | ||
Makefile.am | ||
debug.h | ||
gb_proxy.c | ||
gb_proxy_ctrl.c | ||
gb_proxy_main.c | ||
gb_proxy_peer.c | ||
gb_proxy_vty.c |