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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:229a6dbd9ef1680f1ca02d6ce63e8abdffaaeeba

commit r12-737-g229a6dbd9ef1680f1ca02d6ce63e8abdffaaeeba
Author: Richard Biener <rguent...@suse.de>
Date:   Wed May 12 09:07:42 2021 +0200

    middle-end/100547 - check rtvec_alloc size

    This makes the rtvec_alloc argument size_t catching overflow and
    truncated arguments (from "invalid" testcases), verifying the
    argument against INT_MAX which is the limit set by the int
    typed rtvec_def.num_elem member.

    2021-05-12  Richard Biener  <rguent...@suse.de>

            PR middle-end/100547
            * rtl.h (rtvec_alloc): Make argument size_t.
            * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.

Reply via email to