Skip to content

Commit 7695c82

Browse files
Apply ruff/flake8-bandit rule S301
S301 `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
1 parent 5cb454c commit 7695c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mriqc/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def init(cls) -> None:
618618

619619
if cls.inputs_path.exists():
620620
with open(cls.inputs_path, 'rb') as handle:
621-
_inputs = pickle.load(handle)
621+
_inputs = pickle.load(handle) # noqa: S301
622622

623623
cls.inputs = _inputs['paths']
624624
cls.inputs_metadata = _inputs['metadata']

0 commit comments

Comments
 (0)