Skip to content
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

safe eval #9

Closed
mblondel opened this issue Jul 1, 2011 · 1 comment
Closed

safe eval #9

mblondel opened this issue Jul 1, 2011 · 1 comment

Comments

@mblondel
Copy link

mblondel commented Jul 1, 2011

In Parallel, joblib uses eval for its pre_dispatch, which can be unsafe in some circumstances. Possible solutions:

  • For Python >= 2.6, the use of the ast.literal_eval would help http://docs.python.org/library/ast.html#ast.literal_eval
  • For older Python versions, specifying explicite globals and locals in the eval would help a bit, especialy if we provided a builtins with a reduced set of builtins.
  • Use a callable (function of n_jobs)
fcharras added a commit to fcharras/joblib that referenced this issue May 6, 2022
fcharras added a commit to fcharras/joblib that referenced this issue May 10, 2022
fcharras added a commit to fcharras/joblib that referenced this issue May 12, 2022
fcharras added a commit to fcharras/joblib that referenced this issue Oct 24, 2022
fcharras added a commit to fcharras/joblib that referenced this issue Nov 17, 2022
fcharras added a commit to fcharras/joblib that referenced this issue Nov 22, 2022
fcharras added a commit to fcharras/joblib that referenced this issue Feb 6, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Feb 17, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Feb 17, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Feb 19, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 11, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 15, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 15, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this issue Apr 17, 2023
@fcharras
Copy link
Contributor

fcharras commented Apr 3, 2024

Was fixed in #1327

@fcharras fcharras closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants