From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F893386F44A; Sat, 23 May 2020 10:39:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F893386F44A From: "mtk.manpages at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug math/6796] fdim() does not set errno on overflow Date: Sat, 23 May 2020 10:39:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mtk.manpages at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.24 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 10:39:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D6796 --- Comment #6 from Michael Kerrisk --- Fix documented for man-pages-5.07 commit b36801ebb7ab8e7f9dc6e7f028280ee24a42ab07 Author: Michael Kerrisk Date: Sat May 23 12:01:15 2020 +0200 fdim.3: BUGS: these functions did not set errno on some architectures The bug was fixed in glibc 2.24. https://www.sourceware.org/bugzilla/show_bug.cgi?id=3D6796 Signed-off-by: Michael Kerrisk diff --git a/man3/fdim.3 b/man3/fdim.3 index 4e70fee75..f15312978 100644 --- a/man3/fdim.3 +++ b/man3/fdim.3 @@ -61,17 +61,13 @@ when calling these functions. The following errors can occur: .TP Range error: result overflow -.\" .I errno -.\" is set to -.\" .BR ERANGE . +.I errno +is set to +.BR ERANGE . An overflow floating-point exception .RB ( FE_OVERFLOW ) is raised. .PP -These functions do not set -.IR errno . -.\" FIXME . Is it intentional that these functions do not set errno? -.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=3D6796 .SH VERSIONS These functions first appeared in glibc in version 2.1. .SH ATTRIBUTES @@ -90,5 +86,11 @@ T} Thread safety MT-Safe .TE .SH CONFORMING TO C99, POSIX.1-2001, POSIX.1-2008. +.SH BUGS +Before glibc version 2.24 +.\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=3D6796 +on certain architectures (e.g., x86, but not x86_64) +these functions did not set +.IR errno . .SH SEE ALSO .BR fmax (3) --=20 You are receiving this mail because: You are on the CC list for the bug.=