Skip to content

Java: sensitive logging query exclude null in variable name #15786

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

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Mar 3, 2024

I noticed some FPs in apache/geode where the source was a variable called NULLTOKEN. It is an easy fix to exclude variable names that match "null" (case-insensitively) from the sources.

@owen-mc owen-mc requested a review from a team as a code owner March 3, 2024 21:42
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
@owen-mc
Copy link
Contributor Author

owen-mc commented Mar 4, 2024

I ran variant analysis on the top 1000 java repos to see how many alerts would be removed. The answer is very few: 22 from apache/geode and 3 from thymeleaf/thymeleaf. They all seem to be FPs.

@owen-mc owen-mc merged commit 279605b into github:main Mar 4, 2024
@owen-mc owen-mc deleted the java/sensitive-logging-query-exclude-null-in-variable-name branch March 4, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants