[clang] [llvm] [clang-cl] Use MSVC's "GS buffer" heuristic for the default /GS (PR #225626)

Pan Tao via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 21:05:22 PST 2026


PanTao2 wrote:

Thank you for the detailed sketches, and for taking the time to think through the end state. I'm glad you're supportive of moving ahead with this PR, and I'm happy to iterate on the implementation and tests as needed.

I'd like to get this PR landed, since it brings clang-cl's /GS closer to the behaviour MSVC documents for Buffer Security Check. @nikic @efriedma-quic, could you please share your opinion on this PR? If either of you has concerns about the current change, it would help to hear them now so I can address them.

@zmodem, I updated the release note following your comment. Could you please take another look and let me know whether it addresses it, or whether you'd like further changes?

https://github.com/llvm/llvm-project/pull/225626


More information about the cfe-commits mailing list