about summary refs log tree commit diff
path: root/sysdeps/ia64/strcpy.S
diff options
context:
space:
mode:
authorMartin Sebor <msebor@gmail.com>2021-03-01 10:35:39 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-03-01 19:34:49 +0530
commit764e9a0334350f52ab6953bef1db97f9b2e89ca5 (patch)
treec23ec97333d00aa40e7eb680845d645981d1fc40 /sysdeps/ia64/strcpy.S
parent9fb07fd4e1d6cafecd1807b7a92405bad8e39530 (diff)
downloadglibc-764e9a0334350f52ab6953bef1db97f9b2e89ca5.tar.gz
glibc-764e9a0334350f52ab6953bef1db97f9b2e89ca5.tar.xz
glibc-764e9a0334350f52ab6953bef1db97f9b2e89ca5.zip
Correct buffer end pointer in IO_wdefault_doallocate (BZ #26874)
An experimental build of GCC 11 with an enhanced -Warray-bounds
reports a bug in IO_wdefault_doallocate where the function forms
an invalid past-the-end pointer to an allocated wchar_t buffer
by failingf to consider the scaling by sizeof (wchar_t).

The fix path below corrects this problem.  It keeps the buffer
size the same as opposed to increasing it according to what other
code like it does.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps/ia64/strcpy.S')
0 files changed, 0 insertions, 0 deletions