1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

how to implement poisoning concept in memory allocation

Discussion in 'C' started by jeya, Jul 14, 2008.

  1. jeya

    jeya New Member

    hi all,

    In my program,a user defined function is created which internally uses malloc() and free().

    But I dont know how to create header and footer for the allocated memory.

    And poisoning concept should be implemented checking the header and footer areas to know whether user has exceeded memory space or not.If so,allocated memory will be deallocated.

    pls tell me how to implement the poisoning concept
  2. xpi0t0s

    xpi0t0s Mentor

    It's not clear (to me anyway) what you mean. What is poisoning, and what does that have to do with user quotas? What is the purpose of the header and footer, and what do they contain? Where will the header and footer be used, and to what end?
    If a memory request means the user will exceed their quota then perhaps it would be better not to allocate the memory in the first place.

Share This Page