Skip to content

v2.1.4

Choose a tag to compare

@Yeraze Yeraze released this 20 Nov 17:50
· 6 commits to master since this release

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/strstr results
  • -f/-s now require an argument, and -s is limited to 1–2047 MB
  • TNEFRawRead treats 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 changes ytnefprint, vCalendar and vCard output.
  • UTF-8: U+07FF and surrogate pairs are now encoded correctly

Build and packaging

  • autogen.sh works on macOS with libtool 2.5; make dist and make distcheck work again
  • Man pages for ytnef, ytnefprint and ytnefprocess
  • Debian and RPM packaging. Each release gets .deb / .rpm packages 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 check now runs the full regression suite

Full changelog: v2.1.3...v2.1.4