Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1277)

Unified Diff: media/cast/test/simulator.cc

Issue 463373003: Cast: Fix use after free in a testing tool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/simulator.cc
diff --git a/media/cast/test/simulator.cc b/media/cast/test/simulator.cc
index 157a18fcc346ee2d45b43f5ae6273de918c337df..b3360c8722b0b06518b2fefd711e902f75cfcb89 100644
--- a/media/cast/test/simulator.cc
+++ b/media/cast/test/simulator.cc
@@ -283,10 +283,12 @@ void RunSimulation(const base::FilePath& source_path,
// Connect sender to receiver. This initializes the pipe.
receiver_to_sender.Initialize(
- ipp.NewBuffer(128 * 1024), transport_sender->PacketReceiverForTesting(),
+ ipp.NewBuffer(128 * 1024).Pass(),
miu 2014/08/13 22:33:45 Huh. Weird. I'm surprised it compiled the way it
+ transport_sender->PacketReceiverForTesting(),
task_runner, &testing_clock);
sender_to_receiver.Initialize(
- ipp.NewBuffer(128 * 1024), cast_receiver->packet_receiver(), task_runner,
+ ipp.NewBuffer(128 * 1024).Pass(),
+ cast_receiver->packet_receiver(), task_runner,
&testing_clock);
// Start receiver.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698