Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.3k
Open
Description
Bug report
Bug description:
Found by OSS Fuzz in#461069020.
The below reproducer:
importconfigparserimporttimeforNin (10000,20000,30000,40000):cfg= ("[section]"+"\n"+"x"+" "*N+"y"+"\n" )parser=configparser.RawConfigParser()s=time.perf_counter()try:parser.read_string(cfg)except:passt=time.perf_counter()-sprint(f"{N}{t}")
reveals the quadratic behaviour:
10000 0.547869257017737320000 2.17552005700417830000 4.9720419189834540000 8.673784376995172CPython versions tested on:
CPython main branch
Operating systems tested on:
No response