From a414bf5a02a9894219d7945416916a3ce8ab903b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jul 2021 11:39:01 -0400 Subject: Fix hang when skipping an error at EOF when lax parsing --- src/n3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/n3.c b/src/n3.c index 47ae2d32..373edbe2 100644 --- a/src/n3.c +++ b/src/n3.c @@ -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); } } -- cgit v1.2.1