Fix incorrect logging in sdp_server
In the function process_service_search_attr_req of sdp_server.cc, a log statement uses a structure that may, in exceptional cases, have been freed by preceding calls. This can lead to use after free and potentially to security vulnerabilities. Use local variables instead. Bug: 375407167 Test: m libbluetooth Test: researcher POC Flag: EXEMPT trivial logic fix Ignore-AOSP-First: security Tag: #security (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f23300552c43a4f503debcf0236f29211ee1c557) Merged-In: I1037e592ab8910eeae5c28a41a53a2fc60a298d8 Change-Id: I1037e592ab8910eeae5c28a41a53a2fc60a298d8
Loading
Please register or sign in to comment