https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123349
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Iain Buclaw <[email protected]>: https://gcc.gnu.org/g:c4f2232f12eb0ce4974edace314881b6f074bb93 commit r13-10064-gc4f2232f12eb0ce4974edace314881b6f074bb93 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)
