This is the mail archive of the glibc-bugs@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]

[Bug libc/13540] Bug in ssse3 strcpy, strncpy, stpncpy, stpcpy, strcat, strncat


http://sourceware.org/bugzilla/show_bug.cgi?id=13540

--- Comment #4 from Liubov Dmitrieva <liubov.dmitrieva at gmail dot com> 2011-12-22 16:26:03 UTC ---
I developed better stress test case (test1.tar)which covers more routines.

Compile string:

gcc test.c $GLIBC/strcpy-ssse3.S $GLIBC/strcat-ssse3.S $GLIBC/strncpy-ssse3.S
$GLIBC/strncat-ssse3.S $GLIBC/wcs*-ssse3.S  -odo -m32 -lpthread -g -std=c99 -I.

Run: ./do

After applying the patch I've sent to libc-alpha today I see that issues still
remains in wcscpy.

Output:

-bash-4.2$ ./do
strlen: 248
main thread(tid:776 pid:776 ppid:18191)!
Strncpy is ok
Strncat is ok
Strcpy is ok
Strcat is ok
*** glibc detected *** ./do: corrupted double-linked list: 0xf6600618 ***


Before applying the patch I've sent today I have no any function from tets list
is ok.:

-bash-4.2$ ./do
strlen: 248
main thread(tid:819 pid:819 ppid:18191)!
*** glibc detected *** ./do: double free or corruption (out): 0xf65004f0 ***


If I switch in test.c file all string implementation to standart I have on
Fedora 15 machine, every test is ok.


I will submit remaining fix in wcscpy tomorrow.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]