Skip to content

oofatfs: bound CREATE_LINKMAP FAT chain walk - #13

Merged
doc-hex merged 1 commit into
mk4-basefrom
fix/fat-chain-cycle
Aug 26, 2026
Merged

oofatfs: bound CREATE_LINKMAP FAT chain walk#13
doc-hex merged 1 commit into
mk4-basefrom
fix/fat-chain-cycle

Conversation

@scgbckbone

Copy link
Copy Markdown
Collaborator

A USB host can supply a cyclic FAT chain to PSRAM virtual-disk imports, causing CREATE_LINKMAP to loop until watchdog reset. Count every cluster examined across contiguous fragments and fail with FR_INT_ERR when the walk exceeds fs->n_fatent.

DOS vector only.

A USB host can supply a cyclic FAT chain to PSRAM virtual-disk imports, causing CREATE_LINKMAP to loop until watchdog reset. Count every cluster examined across contiguous fragments and fail with FR_INT_ERR when the walk exceeds fs->n_fatent.
@scgbckbone

Copy link
Copy Markdown
Collaborator Author

The only behavioral change is that an invalid cyclic chain now returns FR_INT_ERR instead of looping forever.

@doc-hex
doc-hex merged commit 33df087 into mk4-base Aug 26, 2026
4 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants