[Bug 1693] New: IMFS memfile has incorrect pointer check.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Fri Aug 27 17:39:20 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1693

           Summary: IMFS memfile has incorrect pointer check.
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: filesystem
        AssignedTo: chrisj at rtems.org
        ReportedBy: joel.sherrill at oarcorp.com


$ cvs diff -u libfs/src/imfs/memfile.c
Index: libfs/src/imfs/memfile.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libfs/src/imfs/memfile.c,v
retrieving revision 1.38
diff -u -r1.38 memfile.c
--- libfs/src/imfs/memfile.c    30 Jul 2010 22:36:32 -0000    1.38
+++ libfs/src/imfs/memfile.c    27 Aug 2010 17:39:08 -0000
@@ -931,7 +931,7 @@
       return 0;

     p2 = (block_p *)p1[ doubly ];
-    if ( !p )
+    if ( !p2 )
       return 0;

     return (block_p *)&p2[ singly ];

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list