mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 02:58:01 +08:00
a7f5c37a63
Summary: In the x86 environment, memory does not necessarily start at 0, so when end is 0x0, start = end + 1, and then determine the contents of start, it will cause x86 to cause a crash when accessing an illegal address. This problem does not occur in the arm environment because arm starts at 0x0, so the content of the 0x1 address is “\0”. Signed-off-by: chenrun1 <chenrun1@xiaomi.com>