This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello This patch fixes the bug #13540 (sourceware.org/bugzilla). strncpy()/strncpy()/.../ algorithm 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 multi theading 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: 2011-12-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com> * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying processing for last bytes. -- Liubov Dmitrieva Intel Corporation
Attachment:
strcpy_fix.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |