Yeraze / ytnef

Yeraze's TNEF Stream Reader - for winmail.dat files
GNU General Public License v2.0
32 stars 22 forks source link

Increase to_utf8 conversion limit to 100,000 #61

Closed ohwgiles closed 6 years ago

ohwgiles commented 6 years ago

I received a TNEF file with the following property

   #62: Type: [ UNICODE ]  Code: [UD:x8000]
    Name: WasclRuntimeData
    Size: 27846    Value: [<WasclRuntimeData xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Exchange.Hygiene.Wascl" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

(truncated for sanity)

Unfortunately I can't share the TNEF file, but 27,846 bytes of utf16 data is longer than to_utf8's limit of 10,000 bytes, so I increased it to 100,000