News for hackers. Stuff that matters.
Re:Show HN: Neco – Coroutine Library for C by Karellen on Wednesday April 10, 2024 @04:45AM (#39988409)
In "Example 4", I don't understand where the "arg2" in `free(arg2)` is coming from?
Re:Show HN: Neco – Coroutine Library for C by dividuum on Wednesday April 10, 2024 @05:15AM (#39988619)
I assume it meant to be arg1 to showcase that the malloc for arg1 can be free'd without resulting in a use-after-free after having copied the value out of argv[1] within the coroutine.