]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Fix wrong copying processing for last bytes in x86-32 wcscpy
authorLiubov Dmitrieva <liubov.dmitrieva@gmail.com>
Fri, 23 Dec 2011 13:50:39 +0000 (08:50 -0500)
committerUlrich Drepper <drepper@gmail.com>
Fri, 23 Dec 2011 13:50:39 +0000 (08:50 -0500)
commitc044cf14b0238b6e866f4ef5f8907d6680230212
tree174941df1d04f8fd18b0cc93401b50a4a97d7a88
parentd455f537be05dac05b8fc67e58f13fd85d553c74
Fix wrong copying processing for last bytes in x86-32 wcscpy

Wrong copy algorithm for last bytes, not thread safety.
In some particular cases it uses the destination
memory beyond the string end for
16-byte load, puts changes into that part that is relevant
to destination string and writes whole 16-byte chunk into memory.
I have a test case where the memory beyond the string end contains
malloc/free data, that appear corrupted in case free() updates
it in between the 16-byte read and 16-byte write.
ChangeLog
sysdeps/i386/i686/multiarch/wcscpy-ssse3.S