-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Secure deserialization (.load()) by default
#2264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
araffin
wants to merge
39
commits into
master
Choose a base branch
from
fix/warn-pickle-load
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
afc9e01
Try to implement safe save/load
araffin 49b44be
refactor: all safe globals in one place
araffin 927039d
Fix for numpy 1.x
araffin 2fba96b
Fix mypy and linter issues
araffin 91bff4d
Use a special type for deserialization
araffin bb7ace3
Update documentation
araffin c170255
Remove duplicate entry in changelog
araffin 41ba37d
Fixes for NumPy v1.x
araffin f19c031
Update tests
araffin 4316580
Additional types for SB3 contrib, fix HER replay
araffin d8e6384
Update test_vec_envs.py
araffin 2afad43
Improve test coverage
araffin c8def52
Improve test coverage of rms prop
araffin 25a1466
Fixes from code review
araffin 75b9dbc
Remove duplicated code
araffin eafcf58
Remove subimport from whitelist and rename context manager
araffin fe1ec1d
Fix mypy errors
araffin b5b6eae
Replace literal with enum for deserialization mode
araffin f2895b0
Update tests, move imports
araffin 6b3a567
Remove warnings and add doc
araffin ef1a041
Also register for pytorch custom objects
araffin c1d0d20
Revert "Also register for pytorch custom objects"
araffin c8d765c
Remove redundant code
araffin f629fb1
Add note in the doc
araffin 68074c0
Update changelog.md
araffin 0b889d1
Mark subimport as unsafe
araffin 2448267
Add new exploit examples
araffin 533775a
fix: remove cloudpickle unsafe methods
araffin 552548c
Update tests to use legacy mode when needed
araffin afe4670
Fix moviepy test
araffin cef493f
Update security tests
araffin 424a835
Ignore tensorboard warning
araffin 7419afa
Catch all the warnings
araffin 2416e2c
chore: rename single character variables
araffin 4627bd3
Reformat
araffin dd9510f
Merge branch 'master' into fix/warn-pickle-load
araffin e626908
Potential fix for pull request finding
araffin 572c375
Register custom safe for pytorch too
araffin 3d363e0
Merge branch 'master' into fix/warn-pickle-load
araffin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.