Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit575b18f

Browse files
Fix cycle detection false positive
1 parentbef9600 commit575b18f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎OpenMcdf/FatChainEnumerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public bool MoveNext()
9191
thrownewFileFormatException("FAT chain index is greater than the sector count.");
9292
}
9393

94-
if(value==slow)
94+
if(value==slow&&slow!=uint.MaxValue)
9595
thrownewFileFormatException("FAT chain contains a loop.");
9696

9797
if(cycleLength==power)

‎OpenMcdf/MiniFatChainEnumerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public bool MoveNext()
7878
if(nextIndex>SectorType.Maximum)
7979
thrownewFileFormatException("Mini FAT chain length is greater than the maximum.");
8080

81-
if(value==slow)
81+
if(value==slow&&slow!=uint.MaxValue)
8282
thrownewFileFormatException("Mini FAT chain contains a loop.");
8383

8484
if(cycleLength==power)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp