Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Apr 23, 2020

Since DIR_W32.offset is declared as uint16_t, we have an overflow for
directories with many entries. This patch changes the field to
uint32_t.


The test is slow, but if commit 4e8f01c had a respective test case, we wouldn't have had that regression.

Note that there might be room for optimization on 32bit architectures, namely by merging offset and finished in a uint32_t bitfield; not sure if that worth it.

Since DIR_W32.offset is declared as `uint16_t`, we have an overflow for
directories with many entries.  This patch changes the field to
`uint32_t`.
@nikic
Copy link
Member

nikic commented Apr 23, 2020

Any ABI stability concerns here?

@cmb69
Copy link
Member Author

cmb69 commented Apr 24, 2020

Any ABI stability concerns here?

Yes, therefore targeting master only.

@cmb69
Copy link
Member Author

cmb69 commented Apr 24, 2020

Thanks! Applied as 767a77a.

@cmb69 cmb69 closed this Apr 24, 2020
@cmb69 cmb69 deleted the cmb/36365 branch April 24, 2020 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants