LibBSD | Symbol expansion problem in strxxx function (#10)
Doreamon 66 (@doraemon)
gitlab at rtems.org
Tue Sep 24 03:12:32 UTC 2024
Doreamon 66 created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/10
## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->
When testing the rcconf01 example in aarch64 mode with cpu memory in the range 0x80000000-0x90000000, since rtems-bsd-rc-conf.c does not include string.h, This causes symbol extension problems when calling functions such as strdup and strchr, which can cause system crashes.
This problem also exists in rtemsbsd/ftpd/ftpd-service.c and rtemsbsd/rtems/rtems-routes.c.
![image](/uploads/2d3dc6594884532506b69f59d9bc8719/image.png)
## Steps to reproduce
Aarch64 mode, cpu memory in the range 0x80000000-0x90000000, run rtems-libbsd/testsuite/rcconf01/test_main.c example.
## Steps to resolve
Add `#include <string.h>` in these files.
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/10
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240924/21153c50/attachment-0001.htm>
More information about the bugs
mailing list