Closed markb-trustifi closed 1 year ago
Hi. Thanks for reporting.
I'm sorry to inform that this change is negative to me, for now.
The process of fieldsNameIdDir + readUCS2String
will point to read String Stream: [MS-OXMSG]: String Stream | Microsoft Learn
A binary viewing of sample __nameid_version1.0/__substg1.0_00040102
from sent2.msg:
The msg file may be damaged if that kind of error is thrown.
I want to check the msg file. Could you provide msg file associated with this issue?
I agree that it can be a broken MSG file but Outlook still opens it correct. This is my work email mbabayev@trustificorp.com - please send there your email and I'll reply with the attached MSG file.
Hi. Thanks for sending msg. The parser error reproduced.
__nameid_version1.0/__substg1.0_00040102
is surely read, however the read buffer ranging from 4776 to 8238 comes from another file content.
The error comes from msgreader's Compound File reader. This is msgreader's bug. The msg doesn't have problem.
Probably reader bug stills around FAT, Mini FAT, or DIFAT processing.
[MS-CFB]: Compound File FAT Sectors | Microsoft Learn
This will take some while...
OK, @kenjiuno/msgreader@1.19.0-alpha.1
will fix this terrible problem.
This was critical bug that affects decoded contents from msg file.
Again, thanks for informing about this!
This issue is stale because it has been open for 30 days with no activity.
Thank you so much for fixing my previous issue #35! Now we have an error with another MSG file:
The possible fix can be like that:
I tested it and it is producing correct parsed data including valid attachments contents.