We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a file named main.c with some code like this:
#include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> int main(int argc, char * argv[]) { int data; data = -1; data = open("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE); FILE* data2=fopen("2.txt","r"); return 0; }
then I use infer capture -- gcc main.c and infer analyze --pulse,no resource leak result is shown,why?
infer capture -- gcc main.c
infer analyze --pulse
The text was updated successfully, but these errors were encountered:
Same for Java (17) on Apple Silicon M2:
public String test() throws IOException { FileOutputStream file = new FileOutputStream("test.txt"); file.write("Some String".getBytes()); return ""; }
will not yield any issues when tested with:
infer run --no-filtering -- javac MyFile.java
Sorry, something went wrong.
No branches or pull requests
I have a file named main.c with some code like this:
then I use
infer capture -- gcc main.c
andinfer analyze --pulse
,no resource leak result is shown,why?The text was updated successfully, but these errors were encountered: