zephyr/lib/os
Daniel Leung 627d3b2cb6 lib: cbprintf: do not blindly skip tags
When CONFIG_LOG_USE_TAGGED_ARGUMENTS is enabled, and
CONFIG_CBPRINTF_COMPLETE is also enabled, we should not be
blindly skipping tags when processing the tagged package
for output.  The issue is that if there is a "%%" in
the format string, the specifier is considered invalid but
the code blindly skips ahead in the argument list as if
it is a valid specifier (think "%s"), which resulting in
the next valid specifier using incorrect argument in
the list. So fix it by skipping ahead if and only if
the specifier is not invalid.

Fixes #68271

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-06 09:53:15 +01:00
..
CMakeLists.txt
Kconfig
Kconfig.cbprintf
assert.c
cbprintf.c
cbprintf_complete.c lib: cbprintf: do not blindly skip tags 2024-02-06 09:53:15 +01:00
cbprintf_nano.c
cbprintf_packaged.c lib: os: cbprintf: Fix size miscalculation in cbprintf_convert 2023-12-28 12:18:50 +00:00
fdtable.c
mpsc_pbuf.c
mutex.c
p4wq.c
poweroff.c
printk.c ztest: export ztest_test_* symbols to llexts 2024-01-26 12:36:23 +01:00
reboot.c
sem.c
spsc_pbuf.c spsc_pbuf: fix cache invalidation in spsc_pbuf_free 2024-02-01 13:10:28 -06:00
thread_entry.c
user_work.c