mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Fix indent endless on garbage input (i.e., if it encountered EOF while
waiting for a '}' nesting terminator) Obtained from: OpenBSD rev 1.8
This commit is contained in:
parent
7538a9a0f8
commit
52608c9fbf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73175
@ -997,7 +997,7 @@ check_type:
|
||||
if (buf_ptr >= buf_end)
|
||||
fill_buffer();
|
||||
}
|
||||
while (*buf_ptr != '\n' || in_comment) {
|
||||
while (*buf_ptr != '\n' || (in_comment && !had_eof)) {
|
||||
CHECK_SIZE_LAB;
|
||||
*e_lab = *buf_ptr++;
|
||||
if (buf_ptr >= buf_end)
|
||||
|
Loading…
Reference in New Issue
Block a user