summaryrefslogtreecommitdiff
path: root/src/input/inputstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/inputstream.c')
-rw-r--r--src/input/inputstream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/inputstream.c b/src/input/inputstream.c
index a4859be..5b2bd49 100644
--- a/src/input/inputstream.c
+++ b/src/input/inputstream.c
@@ -246,6 +246,9 @@ uintptr_t parserutils_inputstream_peek_slow(parserutils_inputstream *stream,
/* Refill utf8 buffer from raw buffer */
error = parserutils_inputstream_refill_buffer(s);
+ /* We're currently converting all errors to OOD. Is this what we want?
+ * For example, the first time we fill the utf8 buffer, we could
+ * discover that we don't support the encoding of the raw data. */
if (error != PARSERUTILS_OK ||
s->public.cursor + offset == s->public.utf8->length)
return PARSERUTILS_INPUTSTREAM_OOD;