diff options
author | nelsonb%netscape.com <devnull@localhost> | 2001-12-18 21:49:49 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2001-12-18 21:49:49 +0000 |
commit | cc838253832cb98c12f60749424887517466d591 (patch) | |
tree | 78c2b7258df2a05b1c279acb94686e7451650410 /security/nss/lib/freebl | |
parent | ccf8ba4a6a91cf928550d40887b9d29e8be40749 (diff) | |
download | nss-hg-cc838253832cb98c12f60749424887517466d591.tar.gz |
Don't allocate sieve from stack on machines with very-limited stacks.
Bug 115012. Patch from Michael Kaply mkaply@us.ibm.com
Diffstat (limited to 'security/nss/lib/freebl')
-rw-r--r-- | security/nss/lib/freebl/mpi/mpprime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/freebl/mpi/mpprime.c b/security/nss/lib/freebl/mpi/mpprime.c index 76a64a083..7317eeab1 100644 --- a/security/nss/lib/freebl/mpi/mpprime.c +++ b/security/nss/lib/freebl/mpi/mpprime.c @@ -427,7 +427,7 @@ mp_err mpp_make_prime(mp_int *start, mp_size nBits, mp_size strong, * Mac builds don't break by adding an extra variable * on the stack. -javi */ -#ifdef macintosh +#if defined(macintosh) || defined (XP_OS2) unsigned char *sieve; sieve = malloc(SIEVE_SIZE); @@ -569,7 +569,7 @@ CLEANUP: mp_clear(&q); if (nTries) *nTries += i; -#ifdef macintosh +#if defined(macintosh) || defined(XP_OS2) if (sieve != NULL) { memset(sieve, 0, SIEVE_SIZE); free (sieve); |