Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a DIFAT sector to be padded with zeroes #58

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

agashlin
Copy link
Contributor

Remove zeroes from the end of the DIFAT; it should be padded with FREE_SECTOR but 0 is seen in practice, specifically with Altium .SchLib files.

This could be simpler (to implement and test) by just trimming the DIFAT to header.num_fat_sectors in permissive mode, maybe with a check that only FREE_SECTOR or 0 is trimmed. I'd prefer to do it that way, but I'm not sure if that header field is considered unreliable; if that would be an acceptable fix let me know and I can put together a revised PR.

Closes #41

@mdsteele
Copy link
Owner

Looks good, thanks. (The new unit tests are much appreciated.)

@mdsteele mdsteele merged commit 359831f into mdsteele:master Sep 28, 2024
4 checks passed
@tgross35
Copy link
Contributor

Thanks for the PR and for merging. Would it be possible to do a release with this change?

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.

Malformed FAT entries mismatch
3 participants