Changeset 9dd4bd3 in rtems


Ignore:
Timestamp:
06/28/22 15:40:49 (6 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
03e4d1e9
Parents:
da8b2342
git-author:
Sebastian Huber <sebastian.huber@…> (06/28/22 15:40:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/04/22 06:30:42)
Message:

libtests/crypt01: Avoid stack overflows

The SHA512 functions may use huge amounts of stack space if compiled without
optimization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/crypt01/init.c

    rda8b2342 r9dd4bd3  
    3737#include <string.h>
    3838
     39#include <rtems/stackchk.h>
     40
    3941#include "tmacros.h"
    4042
     
    235237  test_generic();
    236238
     239  rtems_test_assert(!rtems_stack_checker_is_blown());
    237240  TEST_END();
    238241  rtems_test_exit(0);
     
    241244#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    242245#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
     246#define CONFIGURE_STACK_CHECKER_ENABLED
    243247
    244248#define CONFIGURE_MAXIMUM_TASKS 1
     
    246250#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    247251
    248 #define CONFIGURE_INIT_TASK_STACK_SIZE (2 * RTEMS_MINIMUM_STACK_SIZE)
     252#define CONFIGURE_INIT_TASK_STACK_SIZE (8 * RTEMS_MINIMUM_STACK_SIZE)
    249253
    250254#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
Note: See TracChangeset for help on using the changeset viewer.