diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-11-23 20:02:20 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-11-23 20:02:20 +0300 |
commit | e92d0abecfb11884e85a53f81966c66e5319942d (patch) | |
tree | b60bc08b2ed4b28621ede6b89fb6de2d24145665 /newlib/libc/reent | |
parent | 27bbefdefd339676bee4238e996df70e89fcdfa1 (diff) |
Use NetBSD fix for CVE-2009-0689 security vulnerability.
* libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
size_t, as in latest NetBSD.
* libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
value 15.
* libc/stdlib/mprec.c (_Kmax): Don't define here. Explain why.
Diffstat (limited to 'newlib/libc/reent')
-rw-r--r-- | newlib/libc/reent/reent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/reent/reent.c b/newlib/libc/reent/reent.c index 3c9de71f7..63812db83 100644 --- a/newlib/libc/reent/reent.c +++ b/newlib/libc/reent/reent.c @@ -55,7 +55,7 @@ _DEFUN (_reclaim_reent, (ptr), if (_REENT_MP_FREELIST(ptr)) { int i; - for (i = 0; i < 15 /* _Kmax */; i++) + for (i = 0; i < _Kmax; i++) { struct _Bigint *thisone, *nextone; |