diff options
Diffstat (limited to 'src/charset/codecs/codec_utf16.c')
-rw-r--r-- | src/charset/codecs/codec_utf16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charset/codecs/codec_utf16.c b/src/charset/codecs/codec_utf16.c index 19d8bbb..4a2d7ee 100644 --- a/src/charset/codecs/codec_utf16.c +++ b/src/charset/codecs/codec_utf16.c @@ -449,7 +449,7 @@ parserutils_error charset_utf16_codec_read_char(charset_utf16_codec *c, return error; } else if (error == PARSERUTILS_NEEDDATA) { /* Incomplete input sequence */ - if (*sourcelen > INVAL_BUFSIZE) + if (*sourcelen >= INVAL_BUFSIZE) abort(); memmove(c->inval_buf, *source, *sourcelen); |