This commit is contained in:
Kovid Goyal 2011-07-23 01:14:55 -06:00
parent 07230e3f96
commit fe733d66cf

View File

@ -638,6 +638,9 @@ class IndexEntry(object): # {{{
self.tags.append(Tag(aut_tag[0], [val], self.entry_type, self.tags.append(Tag(aut_tag[0], [val], self.entry_type,
cncx)) cncx))
if raw.replace(b'\x00', b''):
raise ValueError('Extra bytes in INDX table entry %d: %r'%(self.index, raw))
@property @property
def label(self): def label(self):
for tag in self.tags: for tag in self.tags: