public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/17050] New: y1 missing errno setting on overflow
@ 2014-06-12 16:42 jsm28 at gcc dot gnu.org
  2014-06-12 19:03 ` [Bug math/17050] " fweimer at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-06-12 16:42 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 17050
           Summary: y1 missing errno setting on overflow
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org

y1 of a positive value sufficiently close to 0 (e.g. 0x1p-1074) overflows to
-Inf, but fails to set errno.  (The same applies to yn with first argument 1 or
-1.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/17050] y1 missing errno setting on overflow
  2014-06-12 16:42 [Bug math/17050] New: y1 missing errno setting on overflow jsm28 at gcc dot gnu.org
@ 2014-06-12 19:03 ` fweimer at redhat dot com
  2014-06-23 20:18 ` cvs-commit at gcc dot gnu.org
  2014-06-23 20:18 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:03 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/17050] y1 missing errno setting on overflow
  2014-06-12 16:42 [Bug math/17050] New: y1 missing errno setting on overflow jsm28 at gcc dot gnu.org
  2014-06-12 19:03 ` [Bug math/17050] " fweimer at redhat dot com
  2014-06-23 20:18 ` cvs-commit at gcc dot gnu.org
@ 2014-06-23 20:18 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-06-23 20:18 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.20.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/17050] y1 missing errno setting on overflow
  2014-06-12 16:42 [Bug math/17050] New: y1 missing errno setting on overflow jsm28 at gcc dot gnu.org
  2014-06-12 19:03 ` [Bug math/17050] " fweimer at redhat dot com
@ 2014-06-23 20:18 ` cvs-commit at gcc dot gnu.org
  2014-06-23 20:18 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-06-23 20:18 UTC (permalink / raw)
  To: glibc-bugs

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

--- 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  46a3d3c7d60db15ea65470800bcba695f55ce6f6 (commit)
      from  863893ec95f316a3d156d487b99242ee1b52f803 (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=46a3d3c7d60db15ea65470800bcba695f55ce6f6

commit 46a3d3c7d60db15ea65470800bcba695f55ce6f6
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Jun 23 20:17:13 2014 +0000

    Set errno for y1 overflow (bug 17050).

    This patch fixes bug 17050, missing errno setting for y1 overflow (for
    small positive arguments).  An appropriate check is added for overflow
    directly in the __ieee754_y1 implementation, similar to the check
    present for yn (doing it there rather than in the wrapper also avoids
    yn needing to repeat the check when called for order 1 or -1 and it
    uses __ieee754_y1).

    Tested x86_64 and x86; no ulps update needed.  Also tested for mips64
    to verify the ldbl-128 fix (the ldbl-128ibm code just #includes the
    ldbl-128 file).

        [BZ #17050]
        * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
        (__ieee754_y1): Set errno if return value overflows.
        * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
        (__ieee754_y1f): Set errno if return value overflows.
        * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
        (__ieee754_y1l): Set errno if return value overflows.
        * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
        (__ieee754_y1l): Set errno if return value overflows.
        * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                        |   12 +
 NEWS                             |    2 +-
 math/auto-libm-test-in           |   23 +
 math/auto-libm-test-out          | 1738 ++++++++++++++++++++++++++++++++++++++
 sysdeps/ieee754/dbl-64/e_j1.c    |    6 +-
 sysdeps/ieee754/flt-32/e_j1f.c   |    6 +-
 sysdeps/ieee754/ldbl-128/e_j1l.c |    8 +-
 sysdeps/ieee754/ldbl-96/e_j1l.c  |    6 +-
 8 files changed, 1796 insertions(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-23 20:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 16:42 [Bug math/17050] New: y1 missing errno setting on overflow jsm28 at gcc dot gnu.org
2014-06-12 19:03 ` [Bug math/17050] " fweimer at redhat dot com
2014-06-23 20:18 ` cvs-commit at gcc dot gnu.org
2014-06-23 20:18 ` jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).