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).
[ Parent
| on HN ]
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.