nuttx/libs/libc/stream
Old-Ding 9508e96f7a libc/stream: Check lowout bounds before access
Check the provided length before reading the current lowoutstream byte. This avoids reading past zero-length or fully consumed buffers before the loop condition stops.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-06 19:55:11 +08:00
..
CMakeLists.txt libc: Merge lib_vsprintf from lib_libsprintf.c into lib_libvsprintf.c 2025-06-18 09:24:38 +08:00
Kconfig
lib_base64outstream.c
lib_blkoutstream.c blk/mtdoutstream: should flush before free 2025-06-17 20:58:13 +08:00
lib_bufferedoutstream.c
lib_dtoa_data.c libc: Move stream printf/scanf from libc/stdio to libc/stream 2025-06-18 09:24:38 +08:00
lib_dtoa_engine.c libc: Move stream printf/scanf from libc/stdio to libc/stream 2025-06-18 09:24:38 +08:00
lib_dtoa_engine.h libc: Move stream printf/scanf from libc/stdio to libc/stream 2025-06-18 09:24:38 +08:00
lib_fileinstream.c stream: Add fileinstream support 2025-06-17 20:58:13 +08:00
lib_fileoutstream.c libc/stream: Fix the typo error 2025-06-17 20:58:13 +08:00
lib_hexdumpstream.c
lib_libbsprintf.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_libnoflush.c
lib_libsnoflush.c
lib_libvscanf.c !libc/stream: remove CONFIG_LIBC_LONG_LONG and always support long long 2026-05-19 16:21:28 +08:00
lib_libvsprintf.c !libc/stream: remove CONFIG_LIBC_LONG_LONG and always support long long 2026-05-19 16:21:28 +08:00
lib_lowoutstream.c libc/stream: Check lowout bounds before access 2026-07-06 19:55:11 +08:00
lib_lzfcompress.c
lib_meminstream.c
lib_memoutstream.c
lib_memsistream.c
lib_memsostream.c
lib_mtdoutstream.c blk/mtdoutstream: should flush before free 2025-06-17 20:58:13 +08:00
lib_mtdsostream.c blk/mtdoutstream: should flush before free 2025-06-17 20:58:13 +08:00
lib_nullinstream.c
lib_nulloutstream.c
lib_rawinstream.c
lib_rawoutstream.c
lib_rawsistream.c
lib_rawsostream.c
lib_stdinstream.c
lib_stdoutstream.c
lib_stdsistream.c
lib_stdsostream.c
lib_syslograwstream.c syslog: avoid an infinite loop if one channel fails 2026-06-24 09:46:34 +08:00
lib_syslogstream.c
lib_ultoa_invert.c !libc/stream: remove CONFIG_LIBC_LONG_LONG and always support long long 2026-05-19 16:21:28 +08:00
lib_ultoa_invert.h !libc/stream: remove CONFIG_LIBC_LONG_LONG and always support long long 2026-05-19 16:21:28 +08:00
lib_zeroinstream.c
Make.defs libc: Merge lib_vsprintf from lib_libsprintf.c into lib_libvsprintf.c 2025-06-18 09:24:38 +08:00