2026-09-23 08:32 UTC
using glibusing strdupon an argv element, which will be available for the whole lifetime of the programyou cannot see it here without the full context, but it loops around n while path is defined outside of the loop, so it needs to free on every iteration or it just overwrites path and leaks
Replies (1)
-
@david_chisnall@infosec.exchange 2026-09-23 09:59
@ska@social.treehouse.systems The argv array is mutable, so there's an argument for defensive copies if something else in the program might mutate them. But that just raises even more questions.