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

v10.9.1 #2957

Merged
merged 93 commits into from
Jan 24, 2025
Merged

v10.9.1 #2957

merged 93 commits into from
Jan 24, 2025

Conversation

ouziel-slama
Copy link
Contributor

@ouziel-slama ouziel-slama commented Jan 22, 2025

  • Double-check the spelling and grammar of all strings, code comments, etc.
  • Double-check that all code is deterministic that needs to be
  • Add tests to cover any new or revised logic
  • Ensure that the test suite passes
  • Update the project release notes
  • Update the project documentation, as appropriate, with a corresponding Pull Request in the Documentation repository

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

pylint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Comment on lines +18 to +19
query = f"""
SELECT * FROM balances

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
Comment on lines +50 to +51
query = f"""
SELECT {field_name}, asset, quantity, utxo_address, MAX(rowid)

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
Comment on lines +72 to +73
query = f"""
SELECT DISTINCT asset

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
Comment on lines +90 to +91
query = f"""
SELECT COUNT(*) AS cnt FROM (

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
set_data.append("block_index = :block_index")
bindings["block_index"] = CurrentState().current_block_index()
set_data = ", ".join(set_data)
sql = f"""UPDATE orders SET {set_data} WHERE tx_hash = :tx_hash""" # noqa S608

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
def insert_record(db, table_name, record, event, event_info={}): # noqa: B006
fields = list(record.keys())
placeholders = ", ".join(["?" for _ in fields])
query = f"INSERT INTO {table_name} ({', '.join(fields)}) VALUES ({placeholders})" # noqa: S608

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
cursor.execute("SELECT last_insert_rowid() AS rowid")
inserted_rowid = cursor.fetchone()["rowid"]
new_record = cursor.execute(
f"SELECT * FROM {table_name} WHERE rowid = ?", # noqa: S608

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
Comment on lines +506 to +507
"SELECT asset, SUM(total) AS total FROM (" # noqa: S608
+ " UNION ALL ".join(queries)

Check warning

Code scanning / Bandit

Possible SQL injection vector through string-based query construction. Warning

Possible SQL injection vector through string-based query construction.
@ouziel-slama ouziel-slama merged commit c655347 into master Jan 24, 2025
19 checks passed
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.

3 participants