mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
E-book viewer: Fix a rare hang caused by an infinite loop when decoding a CFI
This commit is contained in:
parent
9c244a873b
commit
4e8fbeae22
Binary file not shown.
@ -279,6 +279,7 @@ class CanonicalFragmentIdentifier
|
||||
node = child
|
||||
if not child
|
||||
error = "No matching child found for CFI: " + cfi
|
||||
cfi = cfi.substr(r[0].length)
|
||||
break
|
||||
index |= 1 # Increment index by 1 if it is even
|
||||
if child.nodeType == 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user