Add error handling for iconv conversions in VFS and editor code #4591
Labels
area: core
Issues not related to a specific subsystem
prio: medium
Has the potential to affect progress
Milestone
Important
This issue was migrated from Trac:
zaytsev
(@zyv)This is a follow-up to #3972.
Fixing a test suite on Illumos exposed missing error handling around charset conversions. This results in segfaults or silent incorrect behaviour if encodings are not set up correctly or converters cannot be created.
The edit_complete_word_cmd test fails when switched to UTF-8, which it shouldn't. Some VFS tests only work in UTF-8, not because they should, but because unhandled conversion results cause encodings to disappear from the path.
str_vfs_convert_from
_vfs_translate_path
Returns a NULL pointer, and only on hard errors. Propagating NULL pointers are not checked everywhere.
str_crt_conv_to / str_crt_conv_from
The usages should be audited, dir.converter might not be always handled correctly.
str_convert / str_nconvert
For str_nconvert no checks are performed.
The text was updated successfully, but these errors were encountered: