Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUPA/SVF fails to resolve pointer-to-member function pointer #7

Open
mustakimur opened this issue Jan 11, 2019 · 0 comments
Open

SUPA/SVF fails to resolve pointer-to-member function pointer #7

mustakimur opened this issue Jan 11, 2019 · 0 comments

Comments

@mustakimur
Copy link

The issue is most probably from SVF project, but still, I have found it from SUPA, I am reporting it here.

If there is an indirect call to a class member function using pointer-to-member function pointer, the analysis fails to resolve it.

class A {
public:
  int f();
  int (A::*x)();
};

int A::f() { return 1; }

void ctx() {
  A a;
  a.x = &A::f;
  (a.*(a.x))();
}

The result it shows:

##<> Source Loc: 
Ptr 4295 		PointsTo: {empty}

with
/llvm-svf-src/Release-build/bin/dvf -cxt -query=funptr -maxcxt=5 -flowbg=10000 -cxtbg=10000 -cpts -print-query-pts sample.bc

It is expected to have _ZN1A1fEv as points-to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant