Page MenuHomeSoftware Heritage

Use proper parameter substitution.
ClosedPublic

Authored by vlorentz on Oct 4 2018, 11:10 AM.

Details

Summary

This avoids bugs/vulnerability with filenames containing a quote.

Diff Detail

Repository
rDSNIP Code snippets
Branch
parameter-substitution
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1503
Build 1847: arc lint + arc unit

Event Timeline

vlorentz added inline comments.
morane/crossminer_launch.py
79

Note that the substitution is done inside this call, by psycopg itself, after parsing the query; instead of making the data directly in the code.

This revision is now accepted and ready to land.Oct 4 2018, 11:14 AM
This revision was automatically updated to reflect the committed changes.