fixed a bug in skipping an incomplete sequence upon eof
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-08-02 15:05:32 +09:00
parent 17b0dfcee3
commit 1d2e8f7f34

View File

@ -361,8 +361,7 @@ done:
return nread; return nread;
} }
static HAWK_INLINE hawk_ooi_t tio_read_uchars ( static HAWK_INLINE hawk_ooi_t tio_read_uchars (hawk_tio_t* tio, hawk_uch_t* buf, hawk_oow_t bufsize)
hawk_tio_t* tio, hawk_uch_t* buf, hawk_oow_t bufsize)
{ {
hawk_oow_t mlen, wlen; hawk_oow_t mlen, wlen;
hawk_ooi_t n; hawk_ooi_t n;
@ -389,6 +388,7 @@ static HAWK_INLINE hawk_ooi_t tio_read_uchars (
* but some incomplete bytes in the buffer. */ * but some incomplete bytes in the buffer. */
if (tio->flags & HAWK_TIO_IGNOREECERR) if (tio->flags & HAWK_TIO_IGNOREECERR)
{ {
wlen = 0;
goto ignore_illseq; goto ignore_illseq;
} }
else else