From 7ee251d3fd2303b64a2034f01c41dc42bcd045cf Mon Sep 17 00:00:00 2001 From: mxms Date: Wed, 20 Aug 2025 19:45:01 +0000 Subject: [PATCH] Add -fbounds-safety to webpdecodeutils webpdecodeutils is a subset of webputils, so we add -fbounds-safety to it to ensure that the files are being compiled the same way between modules. Bug: webp:432511821 Change-Id: I5c01a87601a13c331b628c605238e645d1efa77f --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89899151..8e5bf75b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -416,6 +416,7 @@ if(WEBP_ENABLE_FBOUNDS_SAFETY) # Enable -fbounds-safety only for webputils for now. add_definitions(-DWEBP_SUPPORT_FBOUNDS_SAFETY=1) target_compile_options(webputils PRIVATE -fbounds-safety) + target_compile_options(webputilsdecode PRIVATE -fbounds-safety) endif() target_link_libraries(webp sharpyuv)