mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
The shared memory buffer used by srcPtr can be freed by another thread because it is not protected by a mutex. Subsequently, a use after free AIGABRT can occur in a race condition. SafetyNet logging is not added to avoid log spamming. The mutex lock is called to setup for decryption, which is called frequently. The crash was reproduced on the device before the fix. Verified the test passes after the fix. Test: sts sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176495665#testPocBug_176495665 Test: push to device with target_hwasan-userdebug build adb shell /data/local/tmp/Bug-176495665_sts64 Bug: 176495665 Bug: 176444161 Change-Id: I3ec33cd444183f40ee76bec4c88dec0dac859cd3
25 lines
483 B
Plaintext
25 lines
483 B
Plaintext
cc_library_static {
|
|
name: "android.hardware.drm@1.0-helper",
|
|
vendor_available: true,
|
|
defaults: ["hidl_defaults"],
|
|
srcs: [
|
|
"SharedLibrary.cpp",
|
|
],
|
|
cflags: [
|
|
"-Werror",
|
|
"-Wextra",
|
|
"-Wall",
|
|
"-Wthread-safety",
|
|
],
|
|
shared_libs: [
|
|
"liblog",
|
|
],
|
|
header_libs: [
|
|
"libutils_headers",
|
|
],
|
|
export_header_lib_headers: [
|
|
"libutils_headers",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
}
|