https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123349
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Iain Buclaw <[email protected]>: https://gcc.gnu.org/g:2b5c6d734044c76c4f9896b8112ea6c5b5000e39 commit r14-12279-g2b5c6d734044c76c4f9896b8112ea6c5b5000e39 Author: Iain Buclaw <[email protected]> Date: Thu Jan 29 10:11:43 2026 +0100 d: Fix buffer overflow detected with -defaultlib= and -debuglib= [PR123349] PR d/123349 gcc/d/ChangeLog: * d-spec.cc (lang_specific_driver): Use xstrdup to copy -defaultlib and -debuglib argument, and unconditionally free the old value. gcc/testsuite/ChangeLog: * gdc.dg/driver_debuglib.d: New test. * gdc.dg/driver_defaultlib.d: New test. (cherry picked from commit a492b8c17118592061cc3834e7a169ca724440cb)
