Yeraze / ytnef

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

Prevent potential double-free in TNEFSubjectHandler #87

Closed ohwgiles closed 3 years ago

ohwgiles commented 3 years ago

If TNEFSubjectHandler is called multiple times, but the last time failed due to the PREALLOCCHECK, the subject.data member will be a freed, but invalid pointer. To prevent a double-free next time TNEFSubjectHandler is entered, set it to zero after freeing.

Resolves: #85 Reported-by: jasperla