Hacker News new | ask | show | jobs
by gpderetta 3585 days ago
why are you bringing up malloc?
1 comments

Because you do not necessarily know which call will allocate memory in Rust and even in C it can be tricky. You literally can only go with the whitelisted functions.
Yes, that's way you should, as I suggested, only call functions explicitly documented as asyc-signal-safe.