diff options
author | James Zern <jzern@google.com> | 2019-07-26 23:28:07 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2020-01-08 16:59:47 -0800 |
commit | e3518debb9d346ed156a79e71ffff565d5a03a32 (patch) | |
tree | f87b32cae846a364cef43e6da1ad8bace60439bf | |
parent | 1787cb9462cfd87e0601705ab30ccb24aeeb3f70 (diff) | |
download | webp-e3518debb9d346ed156a79e71ffff565d5a03a32.tar.gz |
external/webp: enable WEBP_USE_THREAD
this serializes dsp function pointer initialization avoiding the
potential for multiple initialization or code reordering in the
non-threaded case. if the latter were to occur there would be a race
condition where the pointers had the potential to be uninitialized,
resulting in a crash.
Test: aosp_arm-eng aosp_arm64-eng aosp_x86-eng aosp_x86_64-eng
aosp_crosshatch-userdebug build
Bug: https://crbug.com/webp/419
Bug: b/139274551
Change-Id: Iaecdf4718820d304d216fc7583ef2b0130a64e9a
-rw-r--r-- | Android.bp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -109,6 +109,7 @@ cc_library_static { "-O2", "-DANDROID", "-DWEBP_SWAP_16BIT_CSP", + "-DWEBP_USE_THREAD", "-Wall", "-Werror", ], @@ -205,6 +206,7 @@ cc_library_static { "-O2", "-DANDROID", "-DWEBP_SWAP_16BIT_CSP", + "-DWEBP_USE_THREAD", "-Wall", "-Werror", ], |