Skip to content
Snippets Groups Projects
  1. Jun 09, 2023
  2. May 25, 2023
  3. May 23, 2023
  4. May 18, 2023
  5. May 16, 2023
    • Hui Peng's avatar
      Fix an integer overflow bug in avdt_msg_asmbl · bf9449a7
      Hui Peng authored
      Bug: 280633699
      Test: manual
      Ignore-AOSP-First: security
      Tag: #security
      Change-Id: Iaa4d603921fc4ffb8cfb5783f99ec0963affd6a2
      bf9449a7
    • Brian Delwiche's avatar
      Fix integer overflow in build_read_multi_rsp · badb8ffc
      Brian Delwiche authored
      Local variables tracking structure size in build_read_multi_rsp are of
      uint16 type but accept a full uint16 range from function arguments while
      appending a fixed-length offset.  This can lead to an integer overflow
      and unexpected behavior.
      
      Change the locals to size_t, and add a check during reasssignment.
      
      Bug: 273966636
      Test: atest bluetooth_test_gd_unit, net_test_stack_btm
      Tag: #security
      Ignore-AOSP-First: Security
      Change-Id: I3a74bdb0d003cb6bf4f282615be8c68836676715
      (cherry picked from commit 70a4d628)
      badb8ffc
  6. May 13, 2023
  7. May 12, 2023
    • Hui Peng's avatar
      Fix multiple OOB bugs resulted from tx mtu in EATT · ea76b7d9
      Hui Peng authored
      The tx mtu in EATT can be controlled by remote device. With malicious
      mtu values, it is possible to trigger integer overflow and
      OOB write at multiple places (see the bug below).
      
      This fix enforces a max tx mtu in EATT.
      
      Bug: 271335899
      Test: manual
      Ignore-AOSP-First: security
      Tag: #security
      Merged-In: Ia06c9a17f2daa5ce4c32cffa536777f47774cf31
      Change-Id: Ia06c9a17f2daa5ce4c32cffa536777f47774cf31
      ea76b7d9
    • Hui Peng's avatar
      Fix multiple OOB bugs resulted from tx mtu in EATT · 282d4a18
      Hui Peng authored
      The tx mtu in EATT can be controlled by remote device. With malicious
      mtu values, it is possible to trigger integer overflow and
      OOB write at multiple places (see the bug below).
      
      This fix enforces a max tx mtu in EATT.
      
      Bug: 271335899
      Test: manual
      Ignore-AOSP-First: security
      Tag: #security
      Change-Id: Ia06c9a17f2daa5ce4c32cffa536777f47774cf31
      282d4a18
    • Yuyang Huang's avatar
      change log level to trace BTA_AG_FAIL_RESOURCES · 28c3aa1f
      Yuyang Huang authored
      Test: compile
      Bug: 274000898
      Change-Id: I226774470ee60596f184c529fff60cff42cd7b71
      28c3aa1f
    • Myles Watson's avatar
      shim::LeScanningManager: Use shim storage · ff263c53
      Myles Watson authored
      Bug: 260006855
      Test: atest bluetooth_unit_test_gd
      Change-Id: Ia89d59762a045dc18993ee252676dd0e7ba29549
      ff263c53
    • Myles Watson's avatar
      Remove AdapterConfig · 66d57833
      Myles Watson authored
      Bug: 260006855
      Test: atest bluetooth_unit_test_gd
      Change-Id: Ifbc7bc4eadfd2eda8ad7d501895d76043466eb73
      66d57833
    • Myles Watson's avatar
      Storage: Remove save and flush · 9753bc22
      Myles Watson authored
      The storage layer already saves the config when it is modified.
      
      Bug: 260006855
      Test: atest BluetoothInstrumentationTests
      Change-Id: I61100b3fcfe2ca4b71a61286b8f0f4ba5575b3bc
      9753bc22
    • Myles Watson's avatar
      StorageModuleTest: Enable tests · 9b92bfad
      Myles Watson authored
      Add tests to bluetooth_test_gd_unit
      Use FakeTime for timing dependent tests
      Test that modifications cause writes
      
      Bug: 260006855
      Test: atest bluetooth_test_gd_unit
      Change-Id: Ic4ae9c8f84a69fa903d033b113b7125d9b3f6acc
      9b92bfad
    • Myles Watson's avatar
      Storage: Abort if the callback is invalidated · 78ed4c63
      Myles Watson authored
      Bug: 260006855
      Test: atest bluetooth_test_gd_unit
      Change-Id: I704b13adb260669ff46948bc9254fea5b6fae1f0
      78ed4c63
    • Myles Watson's avatar
      Storage: Encapsulate ConfigCache · 60dc72c5
      Myles Watson authored
      Bug: 260006855
      Test: atest bluetooth_unit_test_gd
      Change-Id: I25282fe9da887d642a19f2b0486dcb2578bdcbbd
      60dc72c5
    • Myles Watson's avatar
      Storage: Only save when storage has changed · b57e8c97
      Myles Watson authored
      After the file is loaded from storage, each change to the storage calls
      SaveDelayed through the persistent_config_changed_callback.  If that has
      been called, write the config to disk when shutting down the storage
      module, otherwise do nothing.
      
      Bug: 260006855
      Test: atest bluetooth_unit_test_gd
      Change-Id: I7b653032aa3398d2f95236065572ba7fe733ed9c
      b57e8c97
    • Chris Manton's avatar
      dumpsys: Add search_module state · 8ea94495
      Chris Manton authored
      Bug: 281763015
      Test: Manual
      
      Change-Id: I320d7ed678028df3014c338a85504a4e231cd4ee
      8ea94495
    • Chris Manton's avatar
      dumpsys: Use supported printf flag %ll over %L · 8482ed49
      Chris Manton authored
      Bug: 281498218
      Test: net_test_main_shim
      
      Change-Id: I5212fa766c6f709b708fa3f3f65d0e2b71bfa6aa
      8482ed49
    • David Duarte's avatar
      Move android.hardware.bluetooth.audio-V3-ndk to static_libs in tests · 65a2ed67
      David Duarte authored
      android.hardware.bluetooth.audio-V3-ndk.so is not present on the system
      image if neither the APEX or the HAL bring it in.
      
      Make the test able to work on system image without this library
      by linking it statically.
      
      Bug: 279502784
      Fix: 267212763
      
      Test: mma
      Change-Id: I3ea3fc11d57b7c8149c87608d2149dbe306a5cb8
      65a2ed67
    • David Duarte's avatar
      Remove unused android.hardware.bluetooth.audio-V3-ndk in tests · 20552e73
      David Duarte authored
      Bug: 279502784
      Bug: 267212763
      
      Test: mma
      Change-Id: Idbe70708f65a1e8d7abf2715f3d2ac694e8a2a98
      20552e73
    • Jeremy Wu's avatar
      Floss: reroute libchrome logs to syslog · 97ea74a4
      Jeremy Wu authored
      Currently, libchrome logs are discarded entirely. In this CL, we hijack
      the messages and send them to syslog before they are gone.
      
      Note that `TraceConf` needs to be set in `bt_stack.conf` before this
      takes effect.
      
      Bug: 279873537
      Tag: #floss
      Test: Build and verify
      Change-Id: I9189946aed140dc185d8a8965609e57b31f1b1d8
      97ea74a4
    • Archie Pusaka's avatar
      Floss: Clear pending SDP calls when connection failed · 814c700a
      Archie Pusaka authored
      If connection attempt fails (e.g. due to peer is offline), the
      already allocated pending SDP calls are not cleared. This causes
      the profiles not getting the proper failure events.
      
      This CL clears the pending SDP connections.
      
      Bug: 256217912
      Tag: #floss
      Test: Manual test in comment#6 and comment#11 of the bug
      (cherry picked from https://android-review.googlesource.com/q/commit:c4df2ef1cd2cbcf998157c558a619f84c7f3e266)
      Merged-In: I27fd91e0b2e80531cad1d334001e86ea2960b9b1
      Change-Id: I27fd91e0b2e80531cad1d334001e86ea2960b9b1
      Bug: 263323082
      814c700a
  8. May 11, 2023
Loading