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