Changeset 177 for trunk


Ignore:
Timestamp:
Jul 11, 2017, 12:45:00 PM (7 years ago)
Author:
max@…
Message:

detect use-after-frees

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/ppm.c

    r160 r177  
    102102        page_t   * pages_tbl   = ppm->pages_tbl;
    103103
     104        assert( !page_is_flag( page , PG_FREE ) , __FUNCTION__ , "page already freed" );
     105        assert( !page_is_flag( page , PG_RESERVED ) , __FUNCTION__ , "freeing reserved page" );
     106
    104107        // update released page descriptor flags
    105108        page_set_flag( page , PG_FREE );
Note: See TracChangeset for help on using the changeset viewer.