[PATCH 3/4] sapi: Add check for null extensions.
Jennifer Averett
jennifer.averett at oarcorp.com
Fri Apr 18 15:02:40 UTC 2014
---
cpukit/sapi/src/extensioncreate.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cpukit/sapi/src/extensioncreate.c b/cpukit/sapi/src/extensioncreate.c
index 8442096..59d37e6 100644
--- a/cpukit/sapi/src/extensioncreate.c
+++ b/cpukit/sapi/src/extensioncreate.c
@@ -39,6 +39,9 @@ rtems_status_code rtems_extension_create(
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
+ if (! _User_extensions_Is_valid( extension_table ))
+ return RTEMS_INVALID_ADDRESS;
+
the_extension = _Extension_Allocate();
if ( !the_extension ) {
--
1.8.1.4
More information about the devel
mailing list