getSpineIndexForTocIndex() and getTocIndexForSpineIndex() accessed toc[tocIndex] and spine[spineIndex] without validating the index was within bounds. This could cause crashes with malformed EPUBs or unexpected input.
getSpineIndexForTocIndex() and getTocIndexForSpineIndex() accessed toc[tocIndex] and spine[spineIndex] without validating the index was within bounds. This could cause crashes with malformed EPUBs or unexpected input.