Bug 691476

Summary: infinite loop while lexing
Product: MuPDF Reporter: Krzysztof Kowalczyk <kkowalczyk>
Component: mupdfAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: All   
Customer: Word Size: ---
Attachments: PDF that shows infinite loop

Description Krzysztof Kowalczyk 2010-07-18 23:49:07 UTC
http://darcs.ghostscript.com/darcsweb.cgi/darcsweb.cgi?r=mupdf;a=commitdiff;h=20100526120559-a72ac-a9501f7417b7e4f1d6c942cd5ab2997961191043.gz introduced a subtle regression that can cause infinite loop. 

Character ')' would previously be rejected by isregular() but now will be lexed as name, without advancing, causing infinite loop.

Potential fix: http://code.google.com/p/sumatrapdf/source/detail?r=2031

Attached PDF that shows the problem.
Comment 1 Krzysztof Kowalczyk 2010-07-18 23:50:05 UTC
Created attachment 6505 [details]
PDF that shows infinite loop