mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 06:45:41 +01: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
2 changed files with 1 additions and 0 deletions
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…
Reference in a new issue