commit | aad519df7fe3b69c8247669ea77ce339a44e8c51 | [log] [tgz] |
---|---|---|
author | Andrew Lewis <andrewlewis@google.com> | Wed May 20 16:49:23 2020 +0100 |
committer | Andrew Lewis <andrewlewis@google.com> | Wed May 20 16:59:34 2020 +0100 |
tree | 9daf955e79a48d66549b365794e9342bdf25c4ca | |
parent | e658962c4246669810fc756b098f7fee8d220659 [diff] |
Fix potential use-after-free issue NuPlayerListener passed this out of its constructor to IStreamSource->setListener, and it would get wrapped in a smart pointer, then free'd when that method returned. Move the setListener call after instantiation of NuPlayerListener to avoid passing this out of the NuPlayerListener constructor. Test: tested in presubmit Bug: 151456667 Change-Id: I996d9ad9eaf0e52992b7f9e10fd94a94c350ad73