This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17746] New: tilegx32: strstr can miss the end of the string
- From: "cmetcalf at ezchip dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 22 Dec 2014 19:49:29 +0000
- Subject: [Bug libc/17746] New: tilegx32: strstr can miss the end of the string
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17746
Bug ID: 17746
Summary: tilegx32: strstr can miss the end of the string
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: cmetcalf at ezchip dot com
CC: drepper.fsp at gmail dot com
The code uses a __builtin_expect() test on a raw uint64_t value to see if it is
zero. Unfortunately __builtin_expect() takes a long, so we lose the high 32
bits in ILP32 mode. This can mean we don't see the final NUL on the string.
--
You are receiving this mail because:
You are on the CC list for the bug.