summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-01 07:04:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-05 08:49:56 +0200
commitde9b7d712bf5da6593386fd4fbca0d5f8b8431d8 (patch)
tree0f5716349a3a50243bd24f2cb9eaed280d88e3e8 /cpukit/sapi
parentc934365f238cf971e1ec39a19fbd06df25e5f01c (diff)
downloadrtems-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 'cpukit/sapi')
-rw-r--r--cpukit/sapi/src/fatalsrctext.c3
1 files changed, 2 insertions, 1 deletions
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 )