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/17746] New: tilegx32: strstr can miss the end of the string


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.


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