Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 362a9148 authored by Hui Peng's avatar Hui Peng
Browse files

Add regression test for b/255304475

Bug: 255304475
Test: atest net_test_stack_btm
Ignore-AOSP-First: security
Tag: #security
Merged-In: I3d1523b6dbadf75f682663504a0c932624c33d08
Change-Id: I3d1523b6dbadf75f682663504a0c932624c33d08
parent 12576284
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -40,4 +40,12 @@ TEST_F(StackBTMRegressionTests,
  osi_free(pevent);
}

// regression test for b/255304475
TEST_F(StackBTMRegressionTests,
       OOB_in_btm_ble_clear_resolving_list_complete) {
  BT_HDR* pevent = (BT_HDR*)osi_calloc(sizeof(BT_HDR));
  btm_ble_clear_resolving_list_complete(pevent->data, 0);
  osi_free(pevent);
}

}  // namespace