kmod-project / kmod

kmod - Linux kernel module handling
GNU Lesser General Public License v2.1
50 stars 39 forks source link

depmod: Properly check index keys #247

Closed stoeckmann closed 1 week ago

stoeckmann commented 2 weeks ago

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 https://github.com/kmod-project/kmod/issues/26

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

🚨 Try these New Features:

lucasdemarchi commented 1 week ago

Applied, thanks