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 math/21309] signed integer overflow in sysdeps/ieee754/dbl-64/e_pow.c


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

--- Comment #2 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  648615e13f8d7b638cb911926b8bb70804217f15 (commit)
      from  f1e005022ebd246e1541386cd2f3286f008d2d98 (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=648615e13f8d7b638cb911926b8bb70804217f15

commit 648615e13f8d7b638cb911926b8bb70804217f15
Author: Bernd Edlinger <bernd.edlinger@hotmail.de>
Date:   Tue Dec 19 18:41:01 2017 +0000

    Avoid signed shift overflow in pow (bug 21309).

    As noted in bug 21309, dbl-64/e_pow.c contains signed int shifts that,
    although the shift count is in the range [0, 31], shift bits into and
    beyond the sign bit and so are undefined in ISO C.  Although this is
    defined in GNU C, this patch from the bug cleans up the code to avoid
    those shifts.

    Tested for x86_64.

        [BZ #21309]
        * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
        unsigned.

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

Summary of changes:
 ChangeLog                      |    6 ++++++
 sysdeps/ieee754/dbl-64/e_pow.c |    3 ++-
 2 files changed, 8 insertions(+), 1 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]