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 lib: move utilities into own folder 2023-12-22 09:54:12 +01:00
Kconfig lib: move utilities into own folder 2023-12-22 09:54:12 +01:00
Kconfig.cbprintf libc/picolibc: Support 'long long' and 'minimal' printf variants 2023-11-20 06:07:58 -05:00
assert.c llext: export some symbols 2023-12-01 10:08:12 -05:00
cbprintf.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
cbprintf_complete.c lib: cbprintf: do not blindly skip tags 2024-02-06 09:53:15 +01:00
cbprintf_nano.c lib: os: cbprintf_nano: Fix Coverity issue 316025 2023-06-02 15:07:34 -04:00
cbprintf_packaged.c lib: os: cbprintf: Fix size miscalculation in cbprintf_convert 2023-12-28 12:18:50 +00:00
fdtable.c syscall: rename z_object_recycle -> k_object_recycle 2023-11-03 11:46:52 +01:00
mpsc_pbuf.c lib: os: mpsc_pbuf: Fix concurrency issues 2022-12-29 10:33:29 +01:00
mutex.c syscall: rename Z_SYSCALL_ to K_SYSCALL_ 2023-11-03 11:46:52 +01:00
p4wq.c kernel: move wait_q.h header to be internal 2023-09-12 12:55:36 -04:00
poweroff.c lib: os: add support for system power off 2023-08-04 16:59:36 +02:00
printk.c ztest: export ztest_test_* symbols to llexts 2024-01-26 12:36:23 +01:00
reboot.c lib: os: reboot: include zephyr/cache.h 2023-01-24 14:35:49 +00:00
sem.c kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
spsc_pbuf.c spsc_pbuf: fix cache invalidation in spsc_pbuf_free 2024-02-01 13:10:28 -06:00
thread_entry.c kernel: Option to not use tls to get current thread 2023-11-21 15:49:48 +01:00
user_work.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00