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

False positive in alias analyze of cpair #8

Open
Jason2031 opened this issue Jul 27, 2018 · 1 comment
Open

False positive in alias analyze of cpair #8

Jason2031 opened this issue Jul 27, 2018 · 1 comment

Comments

@Jason2031
Copy link

Hi jakkdu. It seems like apisan doesn't support alias analyze of cpair checker. Consider the following code:

#include <stdio.h>
void good1(){
  int* a=(int*)malloc(sizeof(int));
  // do something...
  free(a);
}
// other similar malloc-free pattern omitted...
void goodx(){
  int* a=(int*)malloc(sizeof(int));
  int* b=a;
  // do something...
  free(b);
}

Apisan makes complaints that malloc-free pattern in goodx is a potential bug.

@insuyun
Copy link
Contributor

insuyun commented Aug 4, 2018

Sorry, Jason.
I was too busy.
I just checked the cpair one.
Could you give me the full code that you test?
I think goodx seems not considered as potential bug.
Thanks.

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

2 participants