nuttx/libs/libc/stdio
Ville Juven c178fa3260 stdio/lib_libfread: Fix buffer overflow issue
If the gulp size in the stdio buffer the remaining user buffer size it will:
- Corrupt memory in dest (user memory) and
- Keep corrupting KERNEL memory via the stdio character buffer until the
  whole system crashes, as the 'remaining' count underflows

This patch fixes this behavior.
2023-09-13 21:52:57 +08:00
..
CMakeLists.txt libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
Kconfig
lib_asprintf.c
lib_clearerr.c
lib_dprintf.c
lib_dtoa_data.c
lib_dtoa_engine.c
lib_dtoa_engine.h
lib_fclose.c
lib_feof.c
lib_ferror.c
lib_fflush.c
lib_fgetc.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_fgetpos.c
lib_fgets.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_fileno.c
lib_fopen.c libc/fopen: support fopen with mode 'm' 2023-09-07 23:05:38 +08:00
lib_fprintf.c
lib_fputc.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_fputs.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_fread.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_freopen.c libs/libc: remove unnecessary flockfile to improve performance 2023-09-06 15:08:24 +03:00
lib_fscanf.c
lib_fseek.c
lib_fseeko.c libs/libc: remove unnecessary flockfile to improve performance 2023-09-06 15:08:24 +03:00
lib_fsetpos.c
lib_ftell.c
lib_ftello.c
lib_fwrite.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_getc.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_getchar.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_getdelim.c
lib_gets_s.c
lib_gets.c
lib_libdgets.c
lib_libdtoa.c
lib_libfflush.c libs/libc: remove unnecessary flockfile to improve performance 2023-09-06 15:08:24 +03:00
lib_libfgets.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_libfilelock.c
lib_libflushall.c
lib_libfread_unlocked.c stdio/lib_libfread: Fix buffer overflow issue 2023-09-13 21:52:57 +08:00
lib_libfwrite.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_libgetstreams.c
lib_libsprintf.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_libstream.c
lib_libvscanf.c
lib_libvsprintf.c
lib_perror.c
lib_printf.c
lib_putc.c
lib_putchar.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_puts.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_rdflush_unlocked.c libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00
lib_remove.c
lib_renameat.c
lib_rewind.c
lib_scanf.c
lib_setbuf.c
lib_setbuffer.c
lib_setvbuf.c
lib_snprintf.c
lib_sprintf.c
lib_sscanf.c
lib_tempnam.c
lib_tmpfile.c
lib_tmpnam.c
lib_ultoa_invert.c
lib_ultoa_invert.h
lib_ungetc.c
lib_vasprintf.c
lib_vdprintf.c
lib_vfprintf.c
lib_vfscanf.c
lib_vprintf.c
lib_vscanf.c
lib_vsnprintf.c
lib_vsprintf.c
lib_vsscanf.c
lib_wrflush_unlocked.c libs/libc: remove unnecessary flockfile to improve performance 2023-09-06 15:08:24 +03:00
Make.defs libs/libc: support unlock version for fread/fwrite/fputc/fgetc/... 2023-09-06 15:08:24 +03:00