Skip to content

Conversation

@gonwan
Copy link
Contributor

@gonwan gonwan commented Jun 6, 2025

Fixes #45.

@u-235
Copy link
Member

u-235 commented Jun 6, 2025

What happens when you try to load a cached index?

@gonwan
Copy link
Contributor Author

gonwan commented Jun 6, 2025

It will crash. Since an int is supposed to be read now, but a cached index has a short with another 2 bytes from other fields.

@u-235
Copy link
Member

u-235 commented Jun 6, 2025

I suggest raising the version number of the index cache so that the program will be forced to update the cache. see d54455c

@u-235 u-235 merged commit f7a83ba into eBookProjects:master Jun 8, 2025
12 checks passed
@gonwan gonwan deleted the fix-index-overflow branch June 8, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Array out of bounds access when searching in large chm

2 participants