analyzer: bulletproof taint warnings against NULL m_arg
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 21 Jul 2022 01:34:17 +0000 (21:34 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 21 Jul 2022 01:34:17 +0000 (21:34 -0400)
commit742377ed0f09313503a1c5393c4f742d69249521
tree94d83c15308fa9131d986baf58b5fb3757c19c8e
parenta6c192e80a87efbe6c0641f25a963c7bee9990fb
analyzer: bulletproof taint warnings against NULL m_arg

gcc/analyzer/ChangeLog:
* sm-taint.cc (tainted_array_index::emit): Bulletproof against
NULL m_arg.
(tainted_array_index::describe_final_event): Likewise.
(tainted_size::emit): Likewise.
(tainted_size::describe_final_event): Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/sm-taint.cc