Module Name: src Committed By: rillig Date: Sun May 21 10:05:20 UTC 2023
Modified Files: src/usr.bin/indent: indent.c Log Message: indent: don't read out-of-bounds memory in preprocessing lines (Since a few minutes.) If a line '#if 0' was followed by an unlikely line '#', the second line was interpreted as '#if' as well. To detect this bug automatically, a dynamic analysis tool would need to know that only the memory between lab.mem and lab.mem + lab.len has defined content. This constraint, in turn, would throw up at the bottom of copy_comment_wrap, which for a brief moment intentionally violates this constraint. To generate a diff of this commit: cvs rdiff -u -r1.301 -r1.302 src/usr.bin/indent/indent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.