lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <m3r69ib8sz.fsf@gromit.moeb>
Date:	Fri, 25 Jul 2008 11:41:00 +0200
From:	Andreas Jaeger <aj@...ell.com>
To:	"Michael Kerrisk" <mtk.manpages@...il.com>
Cc:	"Fabian Kreutz" <kreutz@....uni-hannover.de>,
	"Andries Brouwer" <Andries.Brouwer@....nl>,
	lkml <linux-kernel@...r.kernel.org>
Subject: Re: math_error.7 draft 3, for review

"Michael Kerrisk" <mtk.manpages@...il.com> writes:

> [ooops -- sorry for the noise.  Wrong list CCed]
>
> On 7/21/08, Michael Kerrisk <mtk.manpages@...glemail.com> wrote:
>> Andreas,
>>
>>  The latest version of the page is below.
>>
>>  ===
>>
>>  Hi Andreas,
>>
>>  (Andries suggested that you probably have the background knowledge to
>>  help here.)
>>
>>  The math man pages in man-pages are in a somewhat sorry state, with
>>  respect to the following:
>>
>>  * Few of the pages properly describe the special cases for Inf, -Inf,
>>  NaN arguments (e.g., compare "man 3 log" with the POSIX.1 page "man 3p
>>  log").
>>
>>  * There isn't a clear discussion of error cases, and how to determine
>>  if an error occurrred using errno and/or fetestexcept(3).
>>
>>  I'm planning to fix each of the math man pages to address these
>>  issues, and use a new page, math_error.7, as an anchor page referenced
>>  by all of the math pages for discussion of how to handle errors.
>>
>>  Would you be willing to review this new page (below) to see whether it
>>  correctly describes the glibc details?  Might you also be willing to
>>  look at a sampling of the changed math page pages that I'll make later
>>  this week/early next week in order to let me know I'm on the right
>>  track in terms of the changes I'm making?

In general glibc should follow the ISO C99 and Posix Standards and if
there is any discrepancy between those and the glibc implementation,
it's a bug.  That should help you to verify the details as well.

I'll try to answer questions and should be able to look at them but I
cannot double check each and every case myself.


>>  .I math_errhandling
>>  identifier,
>>  which is supposed to indicate which of these two mechanisms is in use;
>>  the standards require that at least one be in use,
>>  but permit both to be available.
>>  Although glibc does not support this identifier,
>>  in practice it supports both mechanisms.

I just noticed something that's also in draft 4, so let me cite from the
CONFORMANCE file of glibc:

   Implementing MATH_ERRNO, MATH_ERREXCEPT and math_errhandling in
   <math.h> needs compiler support: see
   
   http://sources.redhat.com/ml/libc-hacker/2000-06/msg00008.html
   http://sources.redhat.com/ml/libc-hacker/2000-06/msg00014.html
   http://sources.redhat.com/ml/libc-hacker/2000-06/msg00015.html

I check gcc and glibc and this is still missing,

Andreas
-- 
 Andreas Jaeger, Director Platform/openSUSE, aj@...e.de
  SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
   Maxfeldstr. 5, 90409 Nürnberg, Germany
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ