Ignore:
Timestamp:
Feb 7, 2016, 7:47:38 PM (8 years ago)
Author:
alain
Message:

Fixing two bugs:
1) In the string library: the strcpy() function must copy
the terminating NUL character in the destination buffer.
2) In the malloc library: the free() function must reset
the entry associated to the released buffer in the alloc[array].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/malloc.c

    r777 r781  
    412412    }
    413413
     414    // reset the alloc[index] entry
     415    *pchar = 0;
     416
    414417    // call the recursive function update_free_array()
    415418    update_free_array( &heap[x][y], base, size_index );
Note: See TracChangeset for help on using the changeset viewer.