From f3853c30da5f6d4f6f6d9b0d236b01b8d294d117 Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Wed, 29 Apr 2026 17:24:15 +0200 Subject: [PATCH] fix(security): add nosec for torch.load (B614 #737) --- .../components/coder/model_coder/benchmark/gt_code/visnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdagent/components/coder/model_coder/benchmark/gt_code/visnet.py b/rdagent/components/coder/model_coder/benchmark/gt_code/visnet.py index 2740c612..e859ceca 100644 --- a/rdagent/components/coder/model_coder/benchmark/gt_code/visnet.py +++ b/rdagent/components/coder/model_coder/benchmark/gt_code/visnet.py @@ -1180,7 +1180,7 @@ model_cls = ViSNet if __name__ == "__main__": - node_features = torch.load("node_features.pt", weights_only=True) + node_features = torch.load("node_features.pt", weights_only=True) # nosec B614 edge_index = torch.load("edge_index.pt", weights_only=True) # nosec B614 # Model instantiation and forward pass