Skip to content

Commit

Permalink
Apply ruff/flake8-bandit rule S301
Browse files Browse the repository at this point in the history
S301 `pickle` and modules that wrap it can be unsafe when used
     to deserialize untrusted data, possible security issue
  • Loading branch information
DimitriPapadopoulos committed Jan 14, 2025
1 parent cebec6f commit 495b373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mriqc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def init(cls) -> None:

if cls.inputs_path.exists():
with open(cls.inputs_path, 'rb') as handle:
_inputs = pickle.load(handle)
_inputs = pickle.load(handle) # noqa: S301

cls.inputs = _inputs['paths']
cls.inputs_metadata = _inputs['metadata']
Expand Down

0 comments on commit 495b373

Please sign in to comment.