nuttx-apps/examples/xmlrpc
Old-Ding 54905cd0ff examples: xmlrpc: bound header value copy
xmlrpc_handler() stores HTTP header values in a CONFIG_XMLRPC_STRINGSIZE + 1 byte buffer, but it passed CONFIG_EXAMPLES_XMLRPC_BUFFERSIZE to xmlrpc_getheader(). With the defaults, that allows a 1024 byte copy into a 65 byte destination.

Make xmlrpc_getheader() treat size as the destination capacity, reserve one byte for the terminator, and pass sizeof(value) from the caller.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:27:44 +08:00
..
calls.c examples/xmlrpc: Fix calls buffers size. 2025-03-21 14:21:31 +08:00
CMakeLists.txt examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig apps.: Remove the inappropriate NSH_BUILTIN_APPS coupling 2019-10-07 02:37:56 -06:00
Make.defs examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
xmlrpc_main.c examples: xmlrpc: bound header value copy 2026-07-09 09:27:44 +08:00