]> sourceware.org Git - newlib-cygwin.git/commit
libc/iconv: find_alias was mis-computing remaining alias table length
authorKeith Packard via Newlib <newlib@sourceware.org>
Thu, 9 Jul 2020 23:58:47 +0000 (16:58 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 10 Jul 2020 08:51:43 +0000 (10:51 +0200)
commit24f3c6195395b8836f51fbfaeca35062c60bb056
tree4224efdf2b3d04006c6699a2bfec3df1c1c4f711
parent2c33d31fa81d97addab774a2b460a3779990c132
libc/iconv: find_alias was mis-computing remaining alias table length

This caused the strnstr to walk off the end of the alias array and
fetch invalid data. Instead of attempting to update 'len', just
re-compute it based on the table end pointer that is already known.

Signed-off-by: Keith Packard <keithp@keithp.com>
newlib/libc/iconv/lib/aliasesi.c
This page took 0.032858 seconds and 5 git commands to generate.