https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99337
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:81bedd5e898d97b87358e26a087b25741eb2c713 commit r10-9410-g81bedd5e898d97b87358e26a087b25741eb2c713 Author: Iain Buclaw <ibuc...@gdcproject.org> Date: Wed Mar 3 15:34:04 2021 +0100 d: Fix heap-buffer-overflow in checkModFileAlias [PR 99337] The code wrongly assumed memcmp did not read past the mismatch. gcc/d/ChangeLog: PR d/99337 * dmd/dmodule.c (checkModFileAlias): Don't read past buffer in comparison. (cherry picked from commit d6177870dd2696501e3b8d3930fd5549d4acaeae)