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


https://sourceware.org/bugzilla/show_bug.cgi?id=17746

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  0dacd7a3b9401f7eb7160cf79231a4573773c5da (commit)
      from  929011700ce09f2bb4f6f650ae95b6eb68145deb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0dacd7a3b9401f7eb7160cf79231a4573773c5da

commit 0dacd7a3b9401f7eb7160cf79231a4573773c5da
Author: Chris Metcalf <cmetcalf@ezchip.com>
Date:   Mon Dec 22 14:50:26 2014 -0500

    tilegx: remove implicit boolean conversion in strstr.

    [BZ #17746]
    The __builtin_expect() truncated a uint64_t to a 32-bit long
    in ILP32 mode, discarding the high 32 bits, and potentially
    missing the NUL terminator that we were searching for with SIMD
    operations.  Explicitly compare to zero to fix the problem.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                    |    6 ++++++
 NEWS                         |    2 +-
 sysdeps/tile/tilegx/strstr.c |    2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

-- 
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]