MAINTAINERS: bug-gnu-utils@prep.ai.mit.edu SUBJECT: Bug in bison 1.25 (with patch) Two unrelated problems are fixed in this patch -- one a hang, the other a crash. The hang could be triggered by input as simple as this one-liner: %2 Several functions would fail to notice they'd reached EOF while reading this input. The patch explicitly checks for the unexpected EOF, exiting fatally if found. The other change introduced by this patch eliminates a buffer overrun that can occur between "$<" and the corresponding ">"; the code wasn't checking to ensure that token_buffer was large enough to hold the intervening text. The patch inserts calls to grow_token_buffer() to expand the buffer as needed. Note that this also requires making grow_token_buffer() non-static; that's not in this patch but is included in another one sent separately. (Sorry for not supplying a sample input to demonstrate the crash; I accidentally deleted it.)