This commit is contained in:
Kovid Goyal 2023-06-15 08:07:29 +05:30
parent 1e249c2d47
commit 81c347777f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -791,6 +791,7 @@ class MobiReader:
try:
num += (ord(data[off:off+1]) & 0x3) + 1
except TypeError:
self.log.warn('Invalid sizeof trailing entries')
num += 1
return num