Files
rt-thread/src
yi chen 2835e956e8 mem: guard rt_smem_setname() against a NULL name
rt_smem_setname() dereferenced name[index] without checking for
NULL first. Some callers legitimately pass an unnamed allocation
through with a NULL name, which crashed instead of just leaving
the trace field blank.

Treat a NULL name the same as an empty string, so the existing
fill-with-spaces loop below handles it without duplicating that
logic.

Fixes #9793

Signed-off-by: yi chen <94xhn1@gmail.com>
2026-07-16 13:31:55 +08:00
..
2026-06-26 17:07:01 +08:00
2026-04-30 06:19:58 +08:00