MAINTAINERS: bug-gnu-utils@prep.ai.mit.edu SUBJECT: Bug in GNU indent 1.9.1 (with patch) Fuzz testing showed indent could enter an infinite loop. The simplest input file I could construct that would cause this behavior was this admittedly nonsensical one-liner: ''# (There must *not* be a newline at the end of the line.) The problem is a loop in indent.c which appears to be checking for #if/#endif/etc. constructs: it can get confused if it finds EOF before end-of-line. I was able to solve the problem by rearranging the terms of the while-loop's test expression to do what I think the original author meant. FWIW, this change didn't affect indent's output on any of the hundreds of .c and .h files I tested it on on my system. Still, I didn't fully understand the code, so it's possible the patch is wrong.