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

Issue 1860693003: Fixing a Dr. memory failure in the remoting unit tests. (Closed)

Created:
4 years, 8 months ago by joedow
Modified:
4 years, 8 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@fake_message_classes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing a Dr. memory failure in the remoting unit tests. The test I checked in yesterday had a race condition in it which was detected by the Dr. Memory bot (they run more slowly than the normal bots). On a normal bot, my runloop quits when the first (of ~11) message is written but the other messages are processed and added to the vector by the time it is checked. On the Dr. Memory bot, this condition was exposed and the size check failed. The fix is to ensure that we are processing each message as it is written/received and validating the size afterwards. This is a reland of: https://codereview.chromium.org/1844423002/ Due to changes to the base files, I am sending this out as a new patch instead of using the old CL. BUG=599494 Committed: https://crrev.com/c705be10c12997d771afcd7c0eb301a311adfb8a Cr-Commit-Position: refs/heads/master@{#385093}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -31 lines) Patch
M remoting/host/security_key/remote_security_key_message_reader_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc View 1 8 chunks +46 lines, -28 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
joedow
PTAL! Thanks, Joe
4 years, 8 months ago (2016-04-05 00:19:20 UTC) #2
Sergey Ulanov
lgtm https://codereview.chromium.org/1860693003/diff/1/remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc File remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc (right): https://codereview.chromium.org/1860693003/diff/1/remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc#newcode86 remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc:86: void RemoteSecurityKeyMessageReaderImplTest::Run(bool close_file) { Instead of the close_file ...
4 years, 8 months ago (2016-04-05 00:39:38 UTC) #3
joedow
Thanks! https://codereview.chromium.org/1860693003/diff/1/remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc File remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc (right): https://codereview.chromium.org/1860693003/diff/1/remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc#newcode86 remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc:86: void RemoteSecurityKeyMessageReaderImplTest::Run(bool close_file) { On 2016/04/05 00:39:37, Sergey ...
4 years, 8 months ago (2016-04-05 02:24:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860693003/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860693003/2
4 years, 8 months ago (2016-04-05 02:24:44 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:2)
4 years, 8 months ago (2016-04-05 02:55:37 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 02:56:42 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c705be10c12997d771afcd7c0eb301a311adfb8a
Cr-Commit-Position: refs/heads/master@{#385093}

Powered by Google App Engine
This is Rietveld 408576698