zephyr/subsys/logging
Johann Fischer ce4be3af86 logging: fix out of bounds write in log_strdup
log_strdup writes out of bounds of a strdup slab.
e.g: CONFIG_LOG_STRDUP_MAX_STRING=46 and
     LOG_STRBUF_STR_SIZE=47 then in the line L:529
sdupl[LOG_STRBUF_STR_SIZE - 1] = '\0';
writes out of bounds because the available buffer space
is only 44 bytes (rounded up to 48 bytes and minus 4 bytes
for the allocated flag).

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-24 16:41:21 +01:00
..
CMakeLists.txt
Kconfig logging: Add optional function name prefix 2018-10-24 11:14:26 +01:00
Kconfig.template.log_config
log_backend_native_posix.c
log_backend_uart.c
log_cmds.c
log_core.c logging: fix out of bounds write in log_strdup 2018-10-24 16:41:21 +01:00
log_list.c
log_list.h
log_msg.c
log_output.c logging: Add optional function name prefix 2018-10-24 11:14:26 +01:00
sys_log_net.c
sys_log.c