Skip to content

Conversation

@0x5abe
Copy link
Collaborator

@0x5abe 0x5abe commented Oct 10, 2025

BffResourceHeader data size was being calculated incorrectly based on the padding calculation, this resulted in the stored size of the header data differing from the actual size, since the correct padding was being inserted by binrw. The issue manifested itself in cases that the header size wasn't exactly 16, for instance in Kalisto BigFiles.

@0x5abe 0x5abe requested a review from widberg as a code owner October 10, 2025 14:10
@widberg widberg merged commit 57468d7 into widberg:master Oct 10, 2025
4 of 5 checks passed
@widberg
Copy link
Owner

widberg commented Oct 10, 2025

Not a fan of decimal numbers when working with file formats, which is why I was using hexadecimal to begin with. But that's not something I'm going to choose to care about today.

@0x5abe
Copy link
Collaborator Author

0x5abe commented Oct 10, 2025

Not a fan of decimal numbers when working with file formats, which is why I was using hexadecimal to begin with. But that's not something I'm going to choose to care about today.

I just saw other #[brw(align_after = x)] use decimal so I changed it for consistency

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