Skip to content

x86: bug, pointer & value mismatch in cmp instruction #343

Open

Description

@AmeerDotEXE

hello, i had this issue where the function percentage shows 100% yet the logic doesn't really match.
im using x86 assembly, on objdiff 3.7.0; the code was suppose to check if class pointer isn't a nullptr
but had a mistake and accessed first member of the class pointer (which was int* in my case) instead

here is an image for clarity (notice offset 13c)
if (pColData->m_pSpheresArray != nullptr)

Image

and here is after i switched it to a class pointer check
if (pColData != nullptr)

Image

Activity

  1. AmeerDotEXE commented on Mar 17, 2026

    @AmeerDotEXE
    Author

    not sure if this would be helpful, here is the bytes

    Image Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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