pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/mpfr



Module Name:    pkgsrc
Committed By:   asau
Date:           Sun May  8 21:06:51 UTC 2011

Modified Files:
        pkgsrc/math/mpfr: Makefile distinfo

Log Message:
Update MPFR to version 3.0.1 patch level 3.

Patch 3 fixes the following bug:

  The mpfr_atan function calls mpfr_check_range on the unrounded
  result (no longer allocated) instead of the rounded result.
  Consequence of this bug: possible incorrect or invalid result and/or
  incorrect flags if the unrounded result or rounded result is not in
  the current exponent range. Or possibly worse if the memory used by
  the unrounded result is modified before the return of the function.
  This bug has been present since MPFR 2.1.0 (exceptions were not
  supported before).

Patch 2 fixes the following bug:

  The mpfr_rec_sqrt function can have undefined behavior due to the
  call of mpn_add_1 or mpn_sub_1 (from GMP) with a null size, which is
  not allowed. The fourth argument of mpn_add_1 or mpn_sub_1 (i.e. the
  value that should have been added or subtracted) is here also 0, so
  that the consequences are limited. In practice, with the current GMP
  version, this yields a small buffer overflow (1 limb, i.e. 32 bits
  or 64 bits), as shown by valgrind, with the possible consequences:
  a crash, or memory corruption (very unlikely) if another process or
  thread modifies the limb at the same time (as in this context, the
  value is first read then written back by GMP). This bug has always
  been present since the introduction of the mpfr_rec_sqrt function
  in MPFR 2.4.0.

Patch 1 fixes the following bug:

  If the exponent range has been reduced such that emax = 1 or 2,
  mpfr_asin may give an incorrect result on +1 and -1.

which should probably never occur in practical codes.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/math/mpfr/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/math/mpfr/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index