SHA512_Transform will blow out the stack on register-poor architectures
with a small minimum stack size due to large locals and plentiful temporaries
pushed on to the stack. Increase the stack size to 32K for this test.

closes #3711
---
 testsuites/libtests/crypt01/init.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testsuites/libtests/crypt01/init.c 
b/testsuites/libtests/crypt01/init.c
index c48fe1171d..3c1dce8d9e 100644
--- a/testsuites/libtests/crypt01/init.c
+++ b/testsuites/libtests/crypt01/init.c
@@ -251,7 +251,9 @@ static void Init(rtems_task_argument arg)
 
 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
 
-#define CONFIGURE_INIT_TASK_STACK_SIZE (2 * RTEMS_MINIMUM_STACK_SIZE)
+/* SHA512_Transform requires large amounts of stack space due to
+ * large locals and many temporaries on register-poor systems. */
+#define CONFIGURE_INIT_TASK_STACK_SIZE (32 * 1024)
 
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
-- 
2.11.0

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to