Skip to content
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

Fixes issue where multiple mixed type injections were not fixed #434

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

andrecsilva
Copy link
Contributor

No description provided.

@andrecsilva andrecsilva marked this pull request as ready for review August 1, 2024 13:22
@andrecsilva andrecsilva requested a review from nahsra August 1, 2024 13:22
return SQLTableInjectionFilterTransform.findAndFix(methodCallExpr);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaDoc

Should this type be an interface and the others be implementations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit hesitant on that since these keep changing. Notice how the checkAndFix for SQLParameterization is slightly different (returns an Optional), but this difference is necessary for the compostion.

I guess we could have a generic find-and-fix-transform interface if you feel the remediators need a stronger contract.

Copy link

sonarcloud bot commented Aug 1, 2024

@andrecsilva andrecsilva merged commit d2676e7 into main Aug 1, 2024
6 checks passed
@andrecsilva andrecsilva deleted the sql-snyk-fix branch August 1, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants