4 ms·
> If you call memcpy in a way that calls malloc uh... How exactly? memcpy copies memory from one place in memory to another. That's all it does. There is no "
by mort96 4y ago
> If you call memcpy in a way that calls malloc
uh... How exactly?
memcpy copies memory from one place in memory to another. That's all it does. There is no "calling memcpy in a way that calls malloc".
- newobj 4y agoif dst and src in memcpy overlap, the result is UB. so there's your window of opportunity. well, you asked...