Skip to content

malloc instrumentation is not working  #2

@P0lako

Description

@P0lako

Hi!
I'm reading/using some parts of the code for learn how it is working and I found that the malloc instrumentation is not working. To fix it, please, replace the line

else if(fp->number > 0 && fp->size > 0 && fp->retaddr == -1) https://github.com/DataChi/memdb/blob/master/pintools/memtracker.cpp#L1329 (here)

for

else if(fp->number > 0 && fp->size >= 0 && fp->retaddr == -1)

Thx!!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions