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

Fix undefined behavior leading to crash with clang #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AMDmi3
Copy link

@AMDmi3 AMDmi3 commented Nov 1, 2014

This code crashes with clang 3.4.1+, most likely due to arithmetics to null pointer, which is undefined behavior. I've fixed two apparent cases, there may be more.

PS. I'll be unavailable for 2 weeks, after that I'll try to find other cases.
PPS. FYI, there's bunch of other code fixes to catdoc in Debian, you'd probably like to review and merge them as well. Catdoc it still in high demand, and I really hope we can bring it back to shape.

This code crashes with clang 3.4.1+, most likely due to arithmetics
to null pointer, which is undefined behavior
@AMDmi3
Copy link
Author

AMDmi3 commented Nov 1, 2014

PPPS. I've just realized you may not be catdoc author. Still, fixes are relevant.

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.

1 participant