Don't allocate over 2MB on the stack; sparc-netbsd3.0 default stack
authorKen Raeburn <raeburn@mit.edu>
Sun, 3 Apr 2011 22:10:03 +0000 (22:10 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 3 Apr 2011 22:10:03 +0000 (22:10 +0000)
limit is 2MB.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24829 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/krb/t_fortuna.c

index 561e99009816d7c275f0d1585f104529dbf0ef45..5931eb7e6b7607657cbe1591d430a69cc8f466de 100644 (file)
@@ -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. */