Unified · Split
| @@ -587,6 +587,8 @@ ST_FUNC uint8_t *parse_comment(uint8_t *p) · 586 unmodified lines | ||
| 587 | 587 | file->buf_ptr = p; |
| 588 | 588 | c = handle_eob(); |
| 589 | 589 | p = file->buf_ptr; |
| 590 | + if (c == CH_EOF) | |
| 591 | + tcc_error("unexpected end of file in comment"); | |
| 590 | 592 | if (c == '\\') { |
| 591 | 593 | /* skip '\[\r]\n', otherwise just skip the stray */ |
| 592 | 594 | while (c == '\\') { |