[PATCH] D73457: [Clang] Warn about 'z' printf modifier in old MSVC.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 13:22:51 PST 2020


aaron.ballman added a comment.

In D73457#1844475 <https://reviews.llvm.org/D73457#1844475>, @thakis wrote:

> Since we auto-detect -fmsc-version if it's not explicitly installed and since this warning is on by default, it makes the test suite depend on the environment a good bit. Given how old 2015 is by now, I'm not sure this complexity and subtlety is worth the benefit?


I think it's worth the benefit -- the point to the check is to help catch buffer overflows, and getting the length calculation correct for that is important.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73457/new/

https://reviews.llvm.org/D73457





More information about the cfe-commits mailing list