Fix uaf in DestroyThread function. (#15437)
authorKonstantin Baladurin <k.baladurin@partner.samsung.com>
Fri, 8 Dec 2017 20:26:00 +0000 (23:26 +0300)
committerBrian Robbins <brianrob@microsoft.com>
Fri, 8 Dec 2017 20:25:59 +0000 (12:25 -0800)
commitddab65b2643ec2c3b7a376f4f44a05073124b732
tree57972827c70772e753acfd473a57372096b3da0d
parent5dc507e8fba10489e412caacca6e3a78baad8691
Fix uaf in DestroyThread function. (#15437)

Mark thread's buffers as no longer owned before calling
Thread::OnThreadTerminate because thread can delete itself in
this method.
src/vm/threads.cpp