Changeset ca4c3870 in rtems


Ignore:
Timestamp:
Nov 28, 2000, 9:52:53 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
b748fff9
Parents:
079b1f4
Message:

2000-11-28 Joel Sherrill <joel@…>

  • src/imfs/memfile.c: Bug report from Sturniolo Jose <jsturnio@…> where NULL pointer was dereferenced.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libc/memfile.c

    r079b1f4 rca4c3870  
    500500    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
    501501      p = (block_p *) info->triply_indirect[i];
     502      if (!p)  /* ensure we have a valid pointer */
     503        break;
    502504      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
    503505        if ( p[j] ) {
Note: See TracChangeset for help on using the changeset viewer.