libyal / libpff

Library and tools to access the Personal Folder File (PFF) and the Offline Folder File (OFF) format
GNU Lesser General Public License v3.0
286 stars 74 forks source link

Narrow string function being called instead of wide version #40

Closed SammyB428 closed 6 years ago

SammyB428 commented 7 years ago

https://github.com/libyal/libpff/blob/master/pfftools/export_handle.c#L3376

Should be a call to libpff_record_entry_get_data_as_utf16_string instead of libpff_record_entry_get_data_as_utf8_string.

As it stands, a UTF8 (narrow) string will get concatenated to a UTF16 (wide) string to produce a folder name that looks like Chinese. Mixes wide and narrow characters.

joachimmetz commented 7 years ago

thx for reporting I'll have a look as soon as time permits.

joachimmetz commented 6 years ago

Duplicate of https://github.com/libyal/libpff/issues/47, but issue is fixed now.