re PR classpath/23863 (mprec buffer overwrite bug)
authorTom Tromey <tromey@redhat.com>
Fri, 9 Jun 2006 16:18:51 +0000 (16:18 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 9 Jun 2006 16:18:51 +0000 (16:18 +0000)
commit80f798b41ed01f18930de85751a4653359387399
treef374e71fb1e5c8b4fa2d9292b8b24097a564e434
parent02440ca432f1aa4de7aeda563d2493a20148554b
re PR classpath/23863 (mprec buffer overwrite bug)

PR classpath/23863:
* native/fdlibm/dtoa.c (_dtoa): Free contents of _Jv_reent when
finished.
* native/fdlibm/mprec.c: New version from newlib.  Commented out
some includes.  Added <assert.h>.
(_reent, _Bigint): New defines.
(_REENT_CHECK_MP, _REENT_MP_FREELIST, _REENT_MP_P5S): Likewise.
(__ULong, __Long): New types.
(_calloc_r): New function.
(Balloc): Dynamically add new _freelist entries as needed.
* native/fdlibm/mprec.h (struct _Jv_Bigint): Don't use
MAX_BIGNUMS to size _x[].
(struct _Jv_reent): _freelist now a _Jv_Bigint**.  Removed
_allocation_map, num.  Added _max_k.

From-SVN: r114511
libjava/classpath/ChangeLog.gcj
libjava/classpath/native/fdlibm/dtoa.c
libjava/classpath/native/fdlibm/mprec.c
libjava/classpath/native/fdlibm/mprec.h