change log for rtems (2010-11-23)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Nov 23 15:10:54 UTC 2010


 *sh*:
2010-11-23	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Fixed NULL pointer access in case POSIX API is disabled.

M 1.2652  cpukit/ChangeLog
M   1.16  cpukit/libmisc/cpuuse/cpuusagereport.c
M    1.9  cpukit/score/src/iterateoverthreads.c

diff -u rtems/cpukit/ChangeLog:1.2651 rtems/cpukit/ChangeLog:1.2652
--- rtems/cpukit/ChangeLog:1.2651	Fri Nov 19 03:44:21 2010
+++ rtems/cpukit/ChangeLog	Tue Nov 23 08:59:05 2010
@@ -1,3 +1,8 @@
+2010-11-23	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
+	Fixed NULL pointer access in case POSIX API is disabled.
+
 2010-11-19	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* libmisc/monitor/mon-monitor.c: Fixed broken monitor command list.

diff -u rtems/cpukit/libmisc/cpuuse/cpuusagereport.c:1.15 rtems/cpukit/libmisc/cpuuse/cpuusagereport.c:1.16
--- rtems/cpukit/libmisc/cpuuse/cpuusagereport.c:1.15	Mon Jul 26 17:03:17 2010
+++ rtems/cpukit/libmisc/cpuuse/cpuusagereport.c	Tue Nov 23 08:59:05 2010
@@ -72,12 +72,10 @@
   #else
     for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
       /*
-       *  Since the removal of ITRON, this cannot occur.
+       *  Since POSIX is optional, this can occur.
        */
-      #if defined(RTEMS_DEBUG)
-        if ( !_Objects_Information_table[ api_index ] )
-	  continue;
-      #endif
+      if ( !_Objects_Information_table[ api_index ] )
+        continue;
 
       information = _Objects_Information_table[ api_index ][ 1 ];
       if ( information ) {
@@ -106,12 +104,10 @@
 
   for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
     /*
-     *  Since the removal of ITRON, this cannot occur.
+     *  Since POSIX is optional, this can occur.
      */
-    #if defined(RTEMS_DEBUG)
-      if ( !_Objects_Information_table[ api_index ] )
-	continue;
-    #endif
+    if ( !_Objects_Information_table[ api_index ] )
+      continue;
 
     information = _Objects_Information_table[ api_index ][ 1 ];
     if ( information ) {

diff -u rtems/cpukit/score/src/iterateoverthreads.c:1.8 rtems/cpukit/score/src/iterateoverthreads.c:1.9
--- rtems/cpukit/score/src/iterateoverthreads.c:1.8	Mon Jul 26 17:03:18 2010
+++ rtems/cpukit/score/src/iterateoverthreads.c	Tue Nov 23 08:59:05 2010
@@ -34,12 +34,10 @@
 
   for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
     /*
-     *  Since the removal of ITRON, this cannot occur.
+     *  Since POSIX is optional, this can occur.
      */
-    #if defined(RTEMS_DEBUG)
-      if ( !_Objects_Information_table[ api_index ] )
-	continue;
-    #endif
+    if ( !_Objects_Information_table[ api_index ] )
+      continue;
 
     information = _Objects_Information_table[ api_index ][ 1 ];
     if ( !information )



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20101123/0a0d982b/attachment.html>


More information about the vc mailing list