-
Notifications
You must be signed in to change notification settings - Fork 85
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
Workaround context leaking #189
Conversation
In some situations CFMLParser mixes content of analyzed files. That's why we need to create separate instance of CFMLParser for each file.
This one is interesting, can you possible provide a code sample of it leaking? |
I couldn't pinpoint set of classes that are responsible for this problem. This bug appear every time I do full project analyse and it's repeatable every time. |
I added a reset() method to CFMLParser (cfparser 2.6.7), and added it to CFLint.fireStartedProcessing() Can you try that and see if it fixes the issue. |
Below are errors that occurred when I've executed code analysis with yours modifications. Error 1.
Previous version wasn't so verbose. Error 2.
|
Interesting. I don't know what causes the additional logging. I will take a look at that, but you can merge the PR if you like. Thanks for contributing. |
Thank you. I'll merge my change shortly. |
# Conflicts: # src/main/java/com/cflint/CFLint.java
Thanks. |
In some situations CFMLParser mixes content of analyzed files. That's why we need to create separate instance of CFMLParser for each file.