Skip to content

About IdentifySearchPatterns(memchr will return an invalid adress) #2

@everedit

Description

@everedit

HexView\HexViewDraw.cpp\541Line: IdentifySearchPatterns

while((ptr = (BYTE *)memchr(ptr, m_pSearchPat[0], len)) != 0)

I think it should be:
while((ptr = (BYTE *)memchr(ptr, m_pSearchPat[0], len-(ptr-data))) != 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions