Bug 691476 - infinite loop while lexing
Summary: infinite loop while lexing
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC All
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-18 23:49 UTC by Krzysztof Kowalczyk
Modified: 2010-07-19 11:51 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
PDF that shows infinite loop (285.47 KB, application/pdf)
2010-07-18 23:50 UTC, Krzysztof Kowalczyk
Details

Note You need to log in before you can comment on or make changes to this bug.
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