sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.17k stars 208 forks source link

When sudo_mmap_strdup fails, copy[x] may be leaked? #202

Closed BornThisWay closed 1 year ago

BornThisWay commented 1 year ago

https://github.com/sudo-project/sudo/blob/ad220d72d425f5f13f9c299289d7edd2ad58ce78/src/sudo_intercept.c#L99

I don't think the resource rollback is complete.

millert commented 1 year ago

Fixed by 9c694e9