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

epub: Avoid crash when index list has extraneous entry #600

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

correctmost
Copy link
Contributor

This commit also fixes an incorrect sizeof call detected by AddressSanitizer.

Closes #599

Testing

Copy link
Member

@lukefromdc lukefromdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A build with both this and
#604 applied on gcc-13 allowed epub-document.c to build with no warnings whatsoever. Runtime test on wayland we still get the opengl context unsupported error and close but that is shared with master and is something for another PR to handle. Earlier x11 test of the other PR showed we didn't have a fundamental underlying crasher as epubs stayed open in x11.

Will doublecheck this one too in my next x11 session but in my default mate-wayland session at the moment

Copy link
Member

@cwendling cwendling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but fairly trivial fix that looks good and legit to me

backend/epub/epub-document.c Show resolved Hide resolved
This commit also fixes an incorrect sizeof call detected by
AddressSanitizer.

Closes mate-desktop#599
Copy link
Member

@raveit65 raveit65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,
i can confirm that this fixes the crash in the provided document.

@raveit65 raveit65 merged commit e254cd9 into mate-desktop:master Jan 31, 2024
1 check passed
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.

Crash in page_set_function when EPUB navMap refers to missing file
4 participants