×

Heap management for memory corruption detection

  • US 10,585,741 B2
  • Filed: 09/06/2018
  • Issued: 03/10/2020
  • Est. Priority Date: 03/02/2015
  • Status: Active Grant
First Claim
Patent Images

1. A processor, comprising:

  • a memory to store data from an application, wherein the memory comprises a memory corruption detection (MCD) table; and

    a processor core coupled to the memory, wherein the processing core is operable to;

    receive an allocation request, from the application, for allocation of a memory object having one or more contiguous memory blocks in the memory;

    generate a first memory corruption detection (MCD) identifier (ID) for the memory object;

    associate the first MCD ID with the one or more contiguous memory blocks of the memory object;

    allocate the memory object in the memory starting at a first memory address;

    store the first MCD ID into an entry for the one or more contiguous memory blocks in the MCD table;

    create a first pointer to the memory object, the first pointer including the first memory address;

    store the first MCD ID associated with the memory object in the first pointer;

    send the first pointer to the application;

    receive an access request to access the memory object, the access request including a second pointer, the second pointer including a second memory address and a second MCD ID;

    compare a first MCD ID from an entry in the MCD table corresponding to the second memory address to the second MCD ID;

    allow access to the memory object when the first MCD ID matches the second MCD ID; and

    generate a page fault when the first MCD ID does not match the second MCD ID.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×