Fix StringPiece use-after-free in MasterSession::ReffedClientGraph.
authorDerek Murray <mrry@google.com>
Fri, 6 Apr 2018 05:37:49 +0000 (22:37 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 6 Apr 2018 05:40:16 +0000 (22:40 -0700)
commitc2d6faafc48b251faa24a342dc063d9fa624421e
tree38cca5a204916b78772a8f6ef6aaf66c41d82cb2
parent1b4f2c51b668dbc1952cabdaf61773b7cff2a0c3
Fix StringPiece use-after-free in MasterSession::ReffedClientGraph.

Use the owned ClientGraph as the source for the node_to_name_ map, rather than the borrowed GraphExecutionState (which can be deleted while the ReffedClientGraph is in use).

PiperOrigin-RevId: 191847023
tensorflow/core/distributed_runtime/master_session.cc