Chromium Code Reviews
DescriptionFixing 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.
BUG=599494
Committed: https://crrev.com/d0c1837abcd55db74ad07220bcc13e4c7dfb7e82
Cr-Commit-Position: refs/heads/master@{#384354}
Patch Set 1 #Patch Set 2 : Fixing some formatting. #Patch Set 3 : Fixing a unit test that broke on non-windows platforms. #Patch Set 4 : Fixing a TSAN error #Patch Set 5 : Merging in the file changes to the reader tests. #
Depends on Patchset: Messages
Total messages: 10 (3 generated)
|
||||||||||||||||||||||||||||