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

Unified Diff: chrome/nacl/nacl_ipc_adapter.cc

Issue 10946041: Fix crash in NaClIPCAdapter where incomplete messages incorrectly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: chrome/nacl/nacl_ipc_adapter.cc
===================================================================
--- chrome/nacl/nacl_ipc_adapter.cc (revision 157149)
+++ chrome/nacl/nacl_ipc_adapter.cc (working copy)
@@ -580,6 +580,8 @@
// When a message is entirely consumed, remove if from the waiting queue.
if (current->is_consumed())
locked_data_.to_be_received_.pop();
+ else
+ msg->ndesc_length = 0;
dmichael (off chromium) 2012/09/19 22:47:48 Would it be good to either add a comment or move t
bbudge 2012/09/19 23:46:09 Done.
Mark Seaborn 2012/09/20 00:28:42 Did you mean to re-upload? I just see the origina
return retval;
}
« 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