[riot-notifications] [RIOT-OS/RIOT] sys/oneway-malloc: export oneway_malloc() (#15474)

benpicco notifications at github.com
Thu Nov 19 21:22:30 CET 2020


> Does this interact with libc malloc as expected?

No :(
`malloc.h` shadows the libc `malloc.h`, so `syscalls.c` doesn't find `mallinfo()`.

But worse, it also shadows the libc functions, even though the one-way functions are declared `weak`, so `tests/malloc` can only do one round of allocations.

It looks like the `oneway_malloc` module is used by anything - there isn't even a test. So the build failure with libc was never noticed. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15474#issuecomment-730615336
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201119/43a173b8/attachment.htm>


More information about the notifications mailing list