Chromium Code Reviews
DescriptionMake sure that threaded-data-provider doesn't cause a use-after-free.
As ThreadedDataProvider::OnReceivedDataOnForegroundThread passes the given
pointer to another thread, it requires the pointer to be valid until it is
used. On ResourceDispatcher::OnReceivedData, the pointer comes from shared
memory buffer, or from std::string data (alternative data). As written above,
it is dangerous to pass the alternative data pointer because it is stack
allocated.
BUG=None
R=oysteine@chromium.org
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|
|||||||||||||||||||