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

Unified Diff: runtime/bin/eventhandler_linux.cc

Issue 8231005: Fix wrong pointer arithmetic when extending the file descripter list in the eventhandler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed comment in test case Created 9 years, 2 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 | runtime/bin/eventhandler_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_linux.cc
diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc
index 169ddbc6b3a41d8fa46b9d07e0c45790a657ff80..fded12e5cc818ea0855bae7743b6686dc2f86d50 100644
--- a/runtime/bin/eventhandler_linux.cc
+++ b/runtime/bin/eventhandler_linux.cc
@@ -71,7 +71,7 @@ void EventHandlerImplementation::SetPort(intptr_t fd,
new_port_map_bytes));
ASSERT(port_map_ != NULL);
size_t port_map_bytes = port_map_size_ * sizeof(PortData);
- memset(port_map_ + port_map_bytes,
+ memset(port_map_ + port_map_size_,
0,
new_port_map_bytes - port_map_bytes);
port_map_size_ = new_port_map_size;
« no previous file with comments | « no previous file | runtime/bin/eventhandler_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698