From a3ff8ad14c1373f7a7d3c1c9aee4e80954e1859e Mon Sep 17 00:00:00 2001
From: Maik Qualmann <metzpinguin@gmail.com>
Date: Tue, 23 Jul 2024 12:33:13 +0200
Subject: [PATCH] escape the input from REGEX MATCHALL CCBUGS: 490690

---
 core/cmake/modules/FindLibheif.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/cmake/modules/FindLibheif.cmake b/core/cmake/modules/FindLibheif.cmake
index fdaf73a4b9e..38876ecc38a 100644
--- a/core/cmake/modules/FindLibheif.cmake
+++ b/core/cmake/modules/FindLibheif.cmake
@@ -54,7 +54,7 @@ else()
     if(HEIF_INCLUDES_DIR)
 
         file(STRINGS "${HEIF_INCLUDES_DIR}/libheif/heif_version.h" TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")
-        string(REGEX MATCHALL "[0-9.]+" HEIF_VERSION ${TMP})
+        string(REGEX MATCHALL "[0-9.]+" HEIF_VERSION "${TMP}")
 
     endif()
 
-- 
GitLab

