fragglet / lhasa

Free Software LHA implementation
http://fragglet.github.io/lhasa/
ISC License
80 stars 15 forks source link

Avoid SIGSEGV on decoding 8bit char filenames on NetBSD/amd64. #33

Closed tsutsui closed 1 year ago

tsutsui commented 3 years ago

Both 'path' and 'filename' members are defined as (char *) so 8bit character (ancient Japanese Shift_JIS etc.) in filenames is treated as a negative value and casting such a negative value to (unsigned) generates an unexpected large value.

sezero commented 1 year ago

Is there a reason that this patch is not applied?

fragglet commented 1 year ago

No reason. Thanks!