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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>:

https://gcc.gnu.org/g:e6a3991ea15c0b14117b5693d77e15fd0477ce51

commit r12-7783-ge6a3991ea15c0b14117b5693d77e15fd0477ce51
Author: David Malcolm <dmalc...@redhat.com>
Date:   Wed Mar 23 08:37:06 2022 -0400

    analyzer: use tainted_allocation_size::m_mem_space [PR105017]

    gcc/analyzer/ChangeLog:
            PR analyzer/105017
            * sm-taint.cc (taint_diagnostic::subclass_equal_p): Check
            m_has_bounds as well as m_arg.
            (tainted_allocation_size::subclass_equal_p): Chain up to base
            class implementation.  Also check m_mem_space.
            (tainted_allocation_size::emit): Add note showing stack-based vs
            heap-based allocations.

    gcc/testsuite/ChangeLog:
            PR analyzer/105017
            * gcc.dg/analyzer/taint-alloc-1.c: Add expected messages relating
            to heap vs stack.

    Signed-off-by: David Malcolm <dmalc...@redhat.com>

Reply via email to