-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
sre "bytecode" verifier #47737
Comments
Attached is a verifier for the binary code used by the _sre module (this I wrote this for Google App Engine, and am making the patch available as Barry, I'm assigning this to you only so that you can decide whether # Copyright 2008 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software It's not necessary to include these copyrights and bytecode in the |
Based on my understanding of the above and PyDev discussions, I see the
If this is included in the next betas, the announcement of such might |
I should add that the protection this offers is against attempts to It is not possibly to generate such bad RE "bytecode" by writing an evil Thus, only people who are worried about malicious use of ctypes should |
+1 I'd like to see this make it in. |
Shouldn't there be any unit tests? :) |
Guido, this is fine for 3.0 and 2.6. As Terry points out, it's not user Go for it! |
Submitted to 2.6 as r65544. Will propagate to 3.0 as it gets merged -- should be a perfect merge. Antoine: the re module has tons of unittests; showing that attempts to |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: