lhasa icon indicating copy to clipboard operation
lhasa copied to clipboard

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

Open tsutsui opened this issue 3 years ago • 0 comments

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.

tsutsui avatar Nov 16 '20 15:11 tsutsui