# Bug report ### Bug description: Found by OSS Fuzz in [#461069020](https://issues.oss-fuzz.com/issues/461069020). The below reproducer: ```py import configparser import time for N in (10000, 20000, 30000, 40000): cfg = ( "[section]" + "\n" + "x" + " " * N + "y" + "\n" ) parser = configparser.RawConfigParser() s = time.perf_counter() try: parser.read_string(cfg) except: pass t = time.perf_counter() - s print(f"{N} {t}") ``` reveals the quadratic behaviour: ``` 10000 0.5478692570177373 20000 2.175520057004178 30000 4.97204191898345 40000 8.673784376995172 ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-146399 * gh-148287 * gh-148559 * gh-154081 * gh-154877 * gh-154878 * gh-155160 * gh-155161 <!-- /gh-linked-prs -->
Bug report
Bug description:
Found by OSS Fuzz in #461069020.
The below reproducer:
reveals the quadratic behaviour:
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs