2 matches found
GHSA-FFR9-MGRR-WCVR NLTK: Quadratic CPU exhaustion in TreebankWordTokenizer.span_tokenize via list.pop(0) in quote-restore loop
Summary TreebankWordTokenizer.spantokenize in the NLTK tokenizer package contains an unguarded On^2 processing loop in its quote-restoration step. When the method is invoked on text containing a long run of double-quote characters for example '"' n, it performs a list.pop0 operation once per quot...
NLTK: Quadratic CPU exhaustion in TreebankWordTokenizer.span_tokenize via list.pop(0) in quote-restore loop
Summary TreebankWordTokenizer.spantokenize in the NLTK tokenizer package contains an unguarded On^2 processing loop in its quote-restoration step. When the method is invoked on text containing a long run of double-quote characters for example '"' n, it performs a list.pop0 operation once per quot...