Skip to content

Commit

Permalink
Disallow pickle loading in npz files
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jan 14, 2025
1 parent f70fd8a commit 57c94f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/src/saving/saving_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ def __init__(self, root_path, archive=None, mode="r"):
self.f = archive.open(root_path, mode="r")
else:
self.f = open(root_path, mode="rb")
self.contents = np.load(self.f, allow_pickle=True)
self.contents = np.load(self.f)

def make(self, path, metadata=None):
if not path:
Expand Down

0 comments on commit 57c94f3

Please sign in to comment.