zephyr/tests
Jan Tore Guggedal a7ce6055b7 zbus: Fix NULL pointer use in zbus_chan_rm_obs()
Fix a bug in zbus_chan_rm_obs() where removing the first observer in a
channel's observer list would cause undefined behavior due to accessing
a member of a NULL pointer.

The issue occurred when prev_obs_nd was NULL (indicating the first node
in the list) and the code attempted to pass &prev_obs_nd->node to
sys_slist_remove(). This resulted in accessing the 'node' member of a
NULL pointer, which is undefined behavior even when taking its address.

The sys_slist_remove() function is designed to handle a NULL prev_node
parameter correctly for removing the first element in a list. The fix
ensures we pass NULL directly instead of attempting to compute the
address of a member within a NULL pointer.

This was detected by Undefined Behavior Sanitizer as "member access
within null pointer".

Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
2025-07-04 15:49:32 -05:00
..
application_development tests: vector_table_relocation: fix a mis-use of SRAM_SIZE 2025-07-04 13:06:13 -05:00
arch tests/arch/rx: Remove unused variable 'events' 2025-06-26 14:07:03 +02:00
benchmarks arch: nios2: remove arch 2025-05-15 20:01:05 -04:00
bluetooth tests: Bluetooth: Tester: VCP BSIM test 2025-07-01 10:54:09 -10:00
boards tests: samples: Extend support for nRF54LM20A 2025-06-27 18:26:57 -05:00
boot tests: boot: add Espressif boards to MCUboot test case 2025-07-01 11:12:25 -10:00
bsim tests: bsim: add early disconnect tests for iso and l2cap 2025-07-03 11:59:02 -05:00
cmake cmake: yaml: improve escaping of strings with backslashes and quotes 2025-04-10 10:11:47 +02:00
crypto drivers; crypto: Remove TinyCrypt shim 2025-05-23 17:41:06 -04:00
ctest/base
drivers tests/drivers display_read_write: Enable for native_sim//64 2025-07-04 13:06:47 -05:00
integration/kernel tests: kernel: set timeslice size to 0 in tests that do not exercise it 2025-05-16 22:55:49 +02:00
kconfig tests: kconfig: functions: add tests for dt_compat_enabled_num 2025-06-27 10:07:01 -05:00
kernel tests: kernel: gen_isr_table: Don't use IRQ1 if already used 2025-07-02 17:58:08 -05:00
lib tests: lib: net_buf: add tests for net_buf_linearize() 2025-06-26 11:01:49 -05:00
misc tests: misc: Fixing expected output on check_init_priorities test 2025-06-27 14:13:58 +02:00
modules tests: do not use "sanity" word 2025-06-25 16:00:10 -10:00
net net: sockets: socket_dispatcher: Fix close function type 2025-07-04 13:16:32 -05:00
posix posix: fnmatch: fix bugs in fnmatch(), see issue #55186 2025-06-09 17:05:40 -05:00
robot tests: robot: renode: Use precise pause for UART keywords 2025-04-16 17:07:05 +02:00
subsys zbus: Fix NULL pointer use in zbus_chan_rm_obs() 2025-07-04 15:49:32 -05:00
unit tests: unit: util: increase coverage of utf-8 utils 2025-06-17 16:09:06 +02:00
ztest tests: error_hook: Workaround for RX architecture 2025-06-26 14:07:03 +02:00
test_config_ci.yaml
test_config.yaml
tests.dox tests: kernel/arch: various doxygen fixes 2025-04-22 14:03:29 +02:00