News for hackers. Stuff that matters.
Re:Heap-based buffer overflow in Sudo by nsajko on Tuesday January 26, 2021 @05:43PM (#25921910)
I think the design of the relevant code is worse than the lack of relevant test coverage. The problem solved insecurely by the code instead seems like an obvious target for lexical and syntactic analysis (and this has been so since the sixties, I think).
Re:Heap-based buffer overflow in Sudo by megous on Tuesday January 26, 2021 @08:16PM (#25923078)
Yes, please at least use re2c when parsing anything more complicated in C. The result is much more readable, and integration costs are pretty low, and you still keep a lot of flexibility in how you structure your code.