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

bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure #32283

Merged
merged 11 commits into from Apr 3, 2022

Commits on Apr 3, 2022

  1. 1. add variables

    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    e5317fe View commit details
    Browse the repository at this point in the history
  2. 2. add _CompileData class to _compile.py

    _CompileData can store intermediate data.
    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    28e4d2d View commit details
    Browse the repository at this point in the history
  3. 3. add repeat_count parameter to _sre.compile() function

    argument clinic
    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    7493fad View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b928335 View commit details
    Browse the repository at this point in the history
  5. 5. change _validate_outer() parameter

    -_validate_inner(SRE_CODE *code, SRE_CODE *end, Py_ssize_t groups)
    +_validate_inner(SRE_CODE *code, SRE_CODE *end, PatternObject *self)
    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    dfec05d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    db7e88b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a43cb6e View commit details
    Browse the repository at this point in the history
  8. 8. support code in sre_lib.h

    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    1560a0c View commit details
    Browse the repository at this point in the history
  9. 9. add unit-tests

    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    96be025 View commit details
    Browse the repository at this point in the history
  10. a. skip -= field_number

    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    7ee3e66 View commit details
    Browse the repository at this point in the history
  11. b. improve unit-test

    wjssz committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    e95b19f View commit details
    Browse the repository at this point in the history