diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | libio/wfileops.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS index 3e7d071557..c0d9993372 100644 --- a/NEWS +++ b/NEWS @@ -55,6 +55,7 @@ The following bugs are resolved with this release: [30745] Slight bug in cache info codes for x86 [30842] Stack read overflow in getaddrinfo in no-aaaa mode (CVE-2023-4527) [30843] potential use-after-free in getcanonname (CVE-2023-4806) + [31183] Wide stream buffer size reduced MB_LEN_MAX bytes after bug 17522 fix [31184] FAIL: elf/tst-tlsgap [31185] Incorrect thread point access in _dl_tlsdesc_undefweak and _dl_tlsdesc_dynamic diff --git a/libio/wfileops.c b/libio/wfileops.c index cecea21c1c..e81924529e 100644 --- a/libio/wfileops.c +++ b/libio/wfileops.c @@ -55,7 +55,7 @@ _IO_wdo_write (FILE *fp, const wchar_t *data, size_t to_do) char mb_buf[MB_LEN_MAX]; char *write_base, *write_ptr, *buf_end; - if (fp->_IO_write_ptr - fp->_IO_write_base < sizeof (mb_buf)) + if (fp->_IO_buf_end - fp->_IO_write_ptr < sizeof (mb_buf)) { /* Make sure we have room for at least one multibyte character. */ |