[Bug tree-optimization/104851] off-by-one out-of-bound access in supports_vec_convert_optab_p, at optabs-query.cc:725

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 9 09:27:57 GMT 2022


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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Xi Ruoyao <xry111@gcc.gnu.org>:

https://gcc.gnu.org/g:1c7b110e1e44da0c93d0d011f5109c5d09bf4399

commit r12-7559-g1c7b110e1e44da0c93d0d011f5109c5d09bf4399
Author: Xi Ruoyao <xry111@mengyan1223.wang>
Date:   Wed Mar 9 11:46:03 2022 +0800

    vect: fix out-of-bound access in supports_vec_convert_optab_p [PR 104851]

    Calling VECTOR_MODE_P with MAX_MACHINE_MODE has caused out-of-bound
    access.

    gcc/

            PR tree-optimization/104851
            * optabs-query.cc (supports_vec_convert_optab_p): Fix off-by-one
            error.


More information about the Gcc-bugs mailing list