mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 00:32:19 +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
24 lines
731 B
Diff
24 lines
731 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7e513f6..049ac34 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1727,8 +1727,17 @@ if(CURL_ENABLE_EXPORT_TARGET)
|
|
)
|
|
endif()
|
|
|
|
+set(components_file "${CMAKE_CURRENT_BINARY_DIR}/CURLConfigComponents.cmake")
|
|
+file(CONFIGURE OUTPUT "${components_file}" CONTENT [[
|
|
+foreach(z_vcpkg_curl_component IN ITEMS @SUPPORT_FEATURES@ @SUPPORT_PROTOCOLS@)
|
|
+ if(z_vcpkg_curl_component MATCHES "^[-_a-zA-Z0-9]*$")
|
|
+ set(CURL_${z_vcpkg_curl_component}_FOUND TRUE)
|
|
+ endif()
|
|
+endforeach()
|
|
+]] @ONLY)
|
|
+
|
|
install(
|
|
- FILES ${version_config} ${project_config}
|
|
+ FILES ${version_config} ${project_config} ${components_file}
|
|
DESTINATION ${CURL_INSTALL_CMAKE_DIR}
|
|
)
|
|
|