This plugin checks for the use of torch.load and torch.save. Using torch.load with untrusted data can lead to arbitrary code execution, and improper use of torch.save might expose sensitive data or lead to data corruption.
[pre-commit.ci] auto fixes from pre-commit.com hooks
This plugin checks for the use of
torch.load
andtorch.save
. Usingtorch.load
with untrusted data can lead to arbitrary code execution, and improper use oftorch.save
might expose sensitive data or lead to data corruption.for more information, see https://pre-commit.ci
Add missing save check
Review fixes from 8b92a02bbb4139b5d4a2618e8a95fb32b74c4762
Fix tox issues
Review fixes
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Update test_functional.py
Update bandit/plugins/pytorch_load_save.py
Update bandit/plugins/pytorch_load_save.py
Update doc/source/plugins/b704_pytorch_load_save.rst
Update bandit/plugins/pytorch_load_save.py