From: Ken Raeburn Date: Sun, 3 Apr 2011 22:10:03 +0000 (+0000) Subject: Don't allocate over 2MB on the stack; sparc-netbsd3.0 default stack X-Git-Tag: krb5-1.10-alpha1~494 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3180503a6ac6c3e45dda39bfecc1e2c497ec7cff;p=krb5.git Don't allocate over 2MB on the stack; sparc-netbsd3.0 default stack limit is 2MB. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24829 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/t_fortuna.c b/src/lib/crypto/krb/t_fortuna.c index 561e99009..5931eb7e6 100644 --- a/src/lib/crypto/krb/t_fortuna.c +++ b/src/lib/crypto/krb/t_fortuna.c @@ -116,7 +116,7 @@ main(int argc, char **argv) { struct fortuna_state test_state; struct fortuna_state *st = &test_state; - unsigned char buf[2 * 1024 * 1024]; + static unsigned char buf[2 * 1024 * 1024]; unsigned int i; /* Seed the generator with a known state. */