Fix incorrect logging in sdp_discovery
In two locations in sdp_discovery.cc, log statements use structures 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: 375408314 Bug: 375409435 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:bb2f54f9ed938267c2830da4a9d984529274d8a8) Merged-In: I1c8816721588acba9110257b61b4e993cf2720d6 Change-Id: I1c8816721588acba9110257b61b4e993cf2720d6
Loading
Please register or sign in to comment