Infinite loop reading NTFS indexes if disk exhibits a certain kind of corruption

Project:JNode FS
Component:Code
Category:bug report
Priority:critical
Assigned:Daniel Noll
Status:fixed
Description

I found a situation where an IndexEntryIterator's offset will not be incremented each time next() is called, if the size of an entry is zero (presumably due to corruption.)

Attached patch makes this condition fail faster with an ISE.

AttachmentSize
index-infinite-loop-dodge.patch1.1 KB

#1

Hi Daniel,
I've applied the patch.
Thank You,
Levente

#2

Status:patch (code needs review)» fixed

Levente commited the patch, fixed.