diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-01 07:04:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-05 08:49:56 +0200 |
commit | de9b7d712bf5da6593386fd4fbca0d5f8b8431d8 (patch) | |
tree | 0f5716349a3a50243bd24f2cb9eaed280d88e3e8 /testsuites/sptests/spinternalerror02/init.c | |
parent | Update rtems_fatal_source_text() (diff) | |
download | rtems-de9b7d712bf5da6593386fd4fbca0d5f8b8431d8.tar.bz2 |
Add RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE
An invalid heap usage such as a double free is usually a fatal error
since this indicates a use after free. Replace the use of printk() in
free() with a fatal error.
Update #3437.
Diffstat (limited to 'testsuites/sptests/spinternalerror02/init.c')
-rw-r--r-- | testsuites/sptests/spinternalerror02/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/sptests/spinternalerror02/init.c b/testsuites/sptests/spinternalerror02/init.c index 36c2e5dc5a..7b65369708 100644 --- a/testsuites/sptests/spinternalerror02/init.c +++ b/testsuites/sptests/spinternalerror02/init.c @@ -53,7 +53,7 @@ static void test_fatal_source_text(void) puts( text ); } while ( text != text_last ); - rtems_test_assert( source - 3 == RTEMS_FATAL_SOURCE_PANIC ); + rtems_test_assert( source - 3 == RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE ); } static void test_status_text(void) |