From de9b7d712bf5da6593386fd4fbca0d5f8b8431d8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 1 Jun 2018 07:04:45 +0200 Subject: 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. --- cpukit/sapi/src/fatalsrctext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/sapi') diff --git a/cpukit/sapi/src/fatalsrctext.c b/cpukit/sapi/src/fatalsrctext.c index 4b02234910..2331b6c758 100644 --- a/cpukit/sapi/src/fatalsrctext.c +++ b/cpukit/sapi/src/fatalsrctext.c @@ -38,7 +38,8 @@ static const char *const fatal_source_text[] = { "RTEMS_FATAL_SOURCE_STACK_CHECKER", "RTEMS_FATAL_SOURCE_EXCEPTION", "RTEMS_FATAL_SOURCE_SMP", - "RTEMS_FATAL_SOURCE_PANIC" + "RTEMS_FATAL_SOURCE_PANIC", + "RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE" }; const char *rtems_fatal_source_text( rtems_fatal_source source ) -- cgit v1.2.3