https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123349
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Iain Buclaw <[email protected]>: https://gcc.gnu.org/g:af39be5b6896b3387fea0a73a5f346238891b9d4 commit r15-10748-gaf39be5b6896b3387fea0a73a5f346238891b9d4 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)
