]> granicus.if.org Git - python/commit
Patch by Tim Peters:
authorGuido van Rossum <guido@python.org>
Fri, 3 Mar 2000 14:51:11 +0000 (14:51 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 3 Mar 2000 14:51:11 +0000 (14:51 +0000)
commit9428fa607b6edc7c5ef46814cd869291a8b4619e
tree602982d01d4577381fe9e0d541197da55af78932
parent56359f591b361f41f661a14e5ed129bf8f22fa87
Patch by Tim Peters:

Changes the one regexp in PyParse capable of making the re module blow the C
stack when passed unreasonable <0.9 wink> program text.  Jeremy Hylton
provoked this with a program of the form:

x = (1,
     2,
... # 9997 lines deleted here
     10000,
)

Programs "like this" will no longer (no matter how many lines they contain)
trigger re death.  OTOH, you can now make another class of unreasonable
program that will take much longer to parse.
Tools/idle/PyParse.py