https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99337

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Iain Buclaw
<ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:03d7b32e0ebf15047a97d3f27faf5771ecf79a03

commit r9-9262-g03d7b32e0ebf15047a97d3f27faf5771ecf79a03
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)

Reply via email to