summaryrefslogtreecommitdiffstats
path: root/osi/test/reactor_test.cpp
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2016-06-20 19:16:12 -0700
committerJessica Wagantall <jwagantall@cyngn.com>2016-08-02 01:12:33 -0700
commit791c2192a9a19e42d8a396b0e46e1b15feb542cb (patch)
tree32c97666df9efaadc8206ea0499cf2480d2b8829 /osi/test/reactor_test.cpp
parent0e94bd5ac42a4621c873c8c2af4aa2aced3c6442 (diff)
downloadandroid_system_bt-stable/cm-13.0-ZNH2K.tar.gz
android_system_bt-stable/cm-13.0-ZNH2K.tar.bz2
android_system_bt-stable/cm-13.0-ZNH2K.zip
Fix potential DoS caused by delivering signal to BT processstable/cm-13.0-ZNH2K
Ticket: CYNGNOS-3177 Bug: 28885210 Change-Id: I63866d894bfca47464d6e42e3fb0357c4f94d360
Diffstat (limited to 'osi/test/reactor_test.cpp')
-rw-r--r--osi/test/reactor_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/osi/test/reactor_test.cpp b/osi/test/reactor_test.cpp
index 6e3a0092a..73a6ae07b 100644
--- a/osi/test/reactor_test.cpp
+++ b/osi/test/reactor_test.cpp
@@ -64,7 +64,7 @@ TEST_F(ReactorTest, reactor_start_wait_stop) {
reactor_t *reactor = reactor_new();
spawn_reactor_thread(reactor);
- usleep(50 * 1000);
+ TEMP_FAILURE_RETRY(usleep(50 * 1000));
EXPECT_TRUE(thread_running);
reactor_stop(reactor);
@@ -108,7 +108,7 @@ TEST_F(ReactorTest, reactor_unregister_from_separate_thread) {
reactor_object_t *object = reactor_register(reactor, fd, NULL, NULL, NULL);
spawn_reactor_thread(reactor);
- usleep(50 * 1000);
+ TEMP_FAILURE_RETRY(usleep(50 * 1000));
reactor_unregister(object);
reactor_stop(reactor);