libc6 2.11.1-0ubuntu5 strcmp-ssse3 may return incorrect result
Bug #563291 reported by
Yang Yu
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eglibc (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lucid |
Fix Released
|
High
|
Unassigned |
Bug Description
Description: Ubuntu lucid (development branch)
Release: 10.04
libc6: Installed: 2.11.1-0ubuntu5
Using strncmp in my program. Sometimes it returns non-zero for identical portion of two strings. A following memcmp does return zero. The strncmp has strcmp-ssse3 implementation.
The bug only happens with certain addresses where the strings are stored, so most likely it is some alignment issue within strcmp-ssse3. If copying the un-matched strings to other buffers, the comparison usually succeed.
See the attached test program strcmp-ssse3-err.c. It has two strings stored at specific addresses which make strncmp fail.
Related branches
Changed in eglibc (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in eglibc (Ubuntu): | |
milestone: | none → ubuntu-10.04 |
status: | Confirmed → In Progress |
Changed in eglibc (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Note in this test program, the failure starts from the 48th characters.