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
Pointers point out of array bound in _sre.c #62884
Comments
In _sre.c pointers can point out of boundaries of array. This is an undefined behavior and is one of causes of a bug in bpo-17998 (end-ptr can be negative). The proposed patch change code to check if pointers will point out of boundaries before their changing. |
Because currently there is no way to test behavior change of this patch (besides rollback a patch committed in bpo-17998) I think that it worth to apply only in 3.4. When the bug will be reproduced we could backport it to maintenance releases. |
Patch updated to tip (the code was changed since bpo-17998). It no more uses division. |
Here is recent patch. |
May be bpo-24566 has a reproducer, but not having Windows I can't test this. |
The reproducer from bpo-24566 consistently crashed the code. Applied the patch from here and couldn't reproduce the problem. Then ran test_re for both 32 and 64 bit debug and release builds with no problems. |
Thank you Mark. |
New changeset 0007031e0452 by Serhiy Storchaka in branch '2.7': New changeset 389795b7c703 by Serhiy Storchaka in branch '3.4': New changeset 5adf995d443f by Serhiy Storchaka in branch '3.5': New changeset bb9fc884a838 by Serhiy Storchaka in branch 'default': |
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: