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

depmod: Properly check index keys #247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stoeckmann
Copy link
Contributor

Synchronize character checks with libkmod-index.c. 8-bit ASCII chars would turn negative (due to signed char), which index__checkstring does not properly check for.

Fixes segmentation fault observed in #26

Synchronize character checks with libkmod-index.c. 8-bit ASCII chars
would turn negative (due to signed char), which index__checkstring does
not properly check for.

Signed-off-by: Tobias Stoeckmann <[email protected]>
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
tools/depmod.c 57.52% <100.00%> (ø)

Copy link
Collaborator

@evelikov evelikov left a comment

Choose a reason for hiding this comment

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

I made a patch to mass convert int ch to unsigned char a while ago, but never really sent it out 🤦

Thanks for looking at the issue, the commit is spot on.

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