##// END OF EJS Templates
tags: add safety check for len(record) while reading hgtagsfnodescache...
Pulkit Goyal -
r46372:225e513c default
parent child Browse files
Show More
@@ -759,7 +759,7 b' class hgtagsfnodescache(object):'
759 properprefix = node[0:4]
759 properprefix = node[0:4]
760
760
761 # Validate and return existing entry.
761 # Validate and return existing entry.
762 if record != _fnodesmissingrec:
762 if record != _fnodesmissingrec and len(record) == _fnodesrecsize:
763 fileprefix = record[0:4]
763 fileprefix = record[0:4]
764
764
765 if fileprefix == properprefix:
765 if fileprefix == properprefix:
General Comments 0
You need to be logged in to leave comments. Login now