Skip to content

Commit

Permalink
fix(handlers): rely on pyfatfs to compute FAT images end offset
Browse files Browse the repository at this point in the history
Some FAT samples that we have are truncated to match exactly the size of
reserved sectors + FAT sectors + active cluster sectors. It's like the
initial image minus the free clusters.

We switched our approach for end offset calculation by simply
calculating the offset of the highest cluster within the filesystem. The
end offset corresponds to the offset of that cluster + the size of the
file located there.

Parsing is performed by pyfatfs, which implements similar structure
validation so whenever an error raised we yield an InvalidInputFormat.
  • Loading branch information
qkaiser committed Sep 4, 2023
1 parent f847623 commit 5e9c742
Show file tree
Hide file tree
Showing 23 changed files with 99 additions and 306 deletions.
186 changes: 0 additions & 186 deletions tests/handlers/filesystem/test_fat.py

This file was deleted.

Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Loading

0 comments on commit 5e9c742

Please sign in to comment.