diff options
author | David Robillard <d@drobilla.net> | 2021-07-11 11:39:01 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:05:18 -0500 |
commit | a414bf5a02a9894219d7945416916a3ce8ab903b (patch) | |
tree | 72bbf14c89ec796cb9d0a07dc0868621df02225f /src | |
parent | 932da1fc5335003d70caaeeae80f7ec2afb77b8e (diff) | |
download | serd-a414bf5a02a9894219d7945416916a3ce8ab903b.tar.gz serd-a414bf5a02a9894219d7945416916a3ce8ab903b.tar.bz2 serd-a414bf5a02a9894219d7945416916a3ce8ab903b.zip |
Fix hang when skipping an error at EOF when lax parsing
Diffstat (limited to 'src')
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1670,7 +1670,7 @@ read_n3_statement(SerdReader* const reader) static void skip_until(SerdReader* const reader, const uint8_t byte) { - for (int c = 0; (c = peek_byte(reader)) && c != byte;) { + for (int c = 0; (c = peek_byte(reader)) && c != EOF && c != byte;) { eat_byte_safe(reader, c); } } |