mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
b40de44891
This fixes a HIGH severity vulnerability: https://daniel.haxx.se/blog/2023/10/11/curl-8-4-0/ See also: https://daniel.haxx.se/blog/2023/10/11/how-i-made-a-heap-overflow-in-curl/ Resolves: https://github.com/microsoft/vcpkg/issues/34281
15 lines
423 B
Diff
15 lines
423 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1b19c68..bb5fba9 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -839,7 +839,8 @@ endif()
|
|
# Check for idn2
|
|
option(USE_LIBIDN2 "Use libidn2 for IDN support" ON)
|
|
if(USE_LIBIDN2)
|
|
- check_library_exists_concat("idn2" idn2_lookup_ul HAVE_LIBIDN2)
|
|
+ set(HAVE_LIBIDN2 TRUE)
|
|
+ list(INSERT CURL_LIBS 0 ${LIBIDN2_LINK_LIBRARIES})
|
|
else()
|
|
set(HAVE_LIBIDN2 OFF)
|
|
endif()
|