osmo-gbproxy/src
Oliver Smith c44b50c147 gbprox_rx_ptp_from_bss: fix dangling pointer
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
2023-07-17 07:06:44 +00:00
..
Makefile.am Move vty node into gbproxy_vty.c 2021-02-12 16:26:22 +01:00
debug.h Remove unused log categories 2021-02-12 15:47:22 +01:00
gb_proxy.c gbprox_rx_ptp_from_bss: fix dangling pointer 2023-07-17 07:06:44 +00:00
gb_proxy_ctrl.c gbproxy_ctrl: Ignore SIG-BVCI in ctrl commands 2021-07-19 16:10:36 +02:00
gb_proxy_main.c osmo-gbproxy: Transition to use of 'telnet_init_default' 2022-12-23 11:13:38 +00:00
gb_proxy_peer.c Fix obsolete documentation of function 2022-10-20 15:50:12 +02:00
gb_proxy_vty.c gbproxy_vty: Add commands to list Cell/BVC of an NSE 2022-10-20 15:50:12 +02:00