re PR tree-optimization/82977 (AddressSanitizer: heap-use-after-free in strlen_optimi...
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Nov 2017 08:40:32 +0000 (09:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Nov 2017 08:40:32 +0000 (09:40 +0100)
commit65205a116a8d1c076f0709d92acad2453caa1efb
treef2e71fcca17a2b30d31b87b275d57b2ddc37d2c4
parent9879232c98696816d0d81c12ed207db241a55c16
re PR tree-optimization/82977 (AddressSanitizer: heap-use-after-free in strlen_optimize_stmt .././../gcc/tree-ssa-strlen.c:2971)

PR tree-optimization/82977
* tree-ssa-strlen.c (strlen_optimize_stmt): Pass a reference to a copy
constructed temporary to strlen_to_stridx.put.

From-SVN: r254757
gcc/ChangeLog
gcc/tree-ssa-strlen.c