Tag: c

  1. Detect heap-based allocation in C

    In most cases `malloc`, `calloc` and `realloc` uses heap-based allocation when we are using libc. For the sake of this we need to check data for where it is allocated. How could you know that it is allocated by functions mentioned above? There is a little trick that you can…

    on c linkers loaders object code