Repository navigation
v2.1.4
Security and hardening release
ytnef 2.1.4 follows up on 2.1.3 with more fixes for crafted TNEF (winmail.dat) input. Upgrade recommended.
Security
ytnef -f: attachment names are now sanitized, so saved files stay inside the output directory (#113)- Embedded TNEF: bounded signature read and a limit on nesting depth
DecompressRTF: output size capped and stream sizes validated- Fixed crashes on properties that have no data, including in
MAPIPrint(#111) - 4-byte calendar properties are now read as 4 bytes (#102)
- RTF-to-text conversion checks
strchr/strstrresults -f/-snow require an argument, and-sis limited to 1–2047 MBTNEFRawReadtreats a failed read as an error- Fixed memory leaks when attributes or MAPI blocks repeat
Correctness
- Dates: the 1st of each month no longer prints as the last day + 1 of the month before (e.g.
2003-01-32). Leap years now follow the Gregorian rule, and the weekday is fixed. This changesytnefprint, vCalendar and vCard output. - UTF-8: U+07FF and surrogate pairs are now encoded correctly
Build and packaging
autogen.shworks on macOS with libtool 2.5;make distandmake distcheckwork again- Man pages for
ytnef,ytnefprintandytnefprocess - Debian and RPM packaging. Each release gets
.deb/.rpmpackages built automatically (libytnef0 / libytnef-dev / ytnef, and ytnef / ytnef-libs / ytnef-devel) - GitHub Actions CI: gcc, clang, ASan+UBSan, macOS and distcheck on every PR
make checknow runs the full regression suite
Full changelog: v2.1.3...v2.1.4