-
Notifications
You must be signed in to change notification settings - Fork 248
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
Global variables not detected #108
Comments
Yes, this should be handled. What do you mean by "shows no references to" exactly? |
@fabsx00 "shows no references to" means that "x" "int x" etc. does not exist in the cpg.zip database. Additionally, I have found that while the database created from typedef int size_t;
void *malloc(size_t x); contains no information (or any reference to) malloc, the following does typedef int size_t;
void *malloc(size_t x) {
} |
Therefore, it appears that any declarations are skipped while definitions are added to the database. |
Hi @sciencemanx In regards to the first item, it seems that we only processes top-level identifier declarations if they are At first glance, it seems we will need to change the existing code to create a As for the second item (erased function declarations), with the code you have provided I am unable to reproduce the issue you are having: Code: typedef int size_t;
void *malloc(size_t x); Query:
|
Current version of joern (v1.1.440) is handling Based on your initial code snippet, you should be able to query for
Closing.. |
shows no reference to variable x when run through joern.
Looking at fuzzyc2cpg 1 and 2, it appears this should be handled.
The text was updated successfully, but these errors were encountered: