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

Do not pass in SQL string vars as format strings #723

Merged
merged 2 commits into from
Aug 29, 2019

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Aug 28, 2019

Some sql and init_iterator calls were passing in variables with complete
SQL strings in place of the format strings. If the SQL in the variable
contained substrings that resembled placeholders like '%s' they would
be replaced with garbage data.

Checklist:

Some sql and init_iterator calls were passing in variables with complete
SQL strings in place of the format strings. If the SQL in the variable
contained substrings that resembled placeholders like '%s' they would
be replaced with garbage data.
@timopollmeier timopollmeier marked this pull request as ready for review August 28, 2019 15:43
@mattmundell mattmundell merged commit 3039576 into greenbone:master Aug 29, 2019
@timopollmeier timopollmeier deleted the sql-format-string-fix branch June 9, 2020 06:52
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