-
Notifications
You must be signed in to change notification settings - Fork 7
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
New CodeQL Error Message Exposure codemod #471
Conversation
import java.util.Optional; | ||
import javax.inject.Inject; | ||
|
||
/** A codemod for automatically fixing SQL injection from CodeQL. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is wrong
import java.util.Optional; | ||
|
||
/** Removes exposure from error messages. */ | ||
public final class ErrorMessageExposureFixStrategy extends MatchAndFixStrategy { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be public
? Shouldn't this be package-protected?
2530d1d
to
ccaad27
Compare
|
Rewrote StackTraceExposureCodemod with the remediator API. Also added support for a new case.
Fixed a node position matching bug. Had to adjust/fix some codemods and tests.
Fixed flakyness from a codemod.
\close #work