Skip to content

Handling of getCalledFunction #39

@BowenZhang-UST

Description

@BowenZhang-UST

Dear developer, please check this issue related to the handling of CallInst. Thank you so much!

Commit

The lattest commit.

Location

  • lib/InstModel/GenericInstModel/GenericInstModel.cpp
  • Lines 114 - 115

Description

The CallInst obtained from the first operand of BitCastInst could still be Inline Assembly or Indirect Function Call. Therefore the getCalledFunction() could be null, which could lead to a crash.
image

Proposed Solution

add a null check on getCalledFunction().

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