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

    animalize committed Apr 3, 2022
  2. 2. add _CompileData class to _compile.py

    _CompileData can store intermediate data.
    animalize committed Apr 3, 2022
  3. 3. add repeat_count parameter to _sre.compile() function

    argument clinic
    animalize committed Apr 3, 2022
  4. 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)
    animalize committed Apr 3, 2022
  5. 9. add unit-tests

    animalize committed Apr 3, 2022
  6. a. skip -= field_number

    animalize committed Apr 3, 2022
  7. b. improve unit-test

    animalize committed Apr 3, 2022