This is an automated email from the ASF dual-hosted git repository.
kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new ecd22b94e8 [Fuzzing] linker (#10449)
ecd22b94e8 is described below
commit ecd22b94e8feed2d1edc8292b789937a9f4521cc
Author: Arjun <[email protected]>
AuthorDate: Mon Sep 18 22:18:24 2023 +0530
[Fuzzing] linker (#10449)
Signed-off-by: Arjun Singh <[email protected]>
---
tests/fuzzing/CMakeLists.txt | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/tests/fuzzing/CMakeLists.txt b/tests/fuzzing/CMakeLists.txt
index 9e688a4a2f..4ee7873dde 100644
--- a/tests/fuzzing/CMakeLists.txt
+++ b/tests/fuzzing/CMakeLists.txt
@@ -31,14 +31,24 @@ add_executable(fuzz_yamlcpp fuzz_yamlcpp.cc)
target_link_libraries(fuzz_esi PRIVATE esi-common esicore)
-target_link_libraries(fuzz_hpack PRIVATE ts::http2 ts::hdrs ts::tsapi)
-target_link_libraries(fuzz_http PRIVATE ts::hdrs ts::tsapi)
+target_link_libraries(fuzz_hpack PRIVATE records tscore hdrs inkevent)
+target_link_libraries(fuzz_http PRIVATE ts::hdrs ts::tscore ts::inkevent)
target_link_libraries(fuzz_json PRIVATE libswoc yaml-cpp ts::jsonrpc_protocol)
target_link_libraries(fuzz_proxy_protocol PRIVATE inknet inkevent ts::tscore
yaml-cpp libswoc)
-target_link_libraries(fuzz_rec_http PRIVATE ts::records ts::tsapi)
+target_link_libraries(fuzz_rec_http PRIVATE records tscore libswoc)
target_link_libraries(fuzz_yamlcpp PRIVATE yaml-cpp)
+target_sources(fuzz_hpack PRIVATE
+ ${CMAKE_SOURCE_DIR}/proxy/http2/HTTP2.cc
+ ${CMAKE_SOURCE_DIR}/proxy/http2/Http2Frame.cc
+ ${CMAKE_SOURCE_DIR}/proxy/http2/HPACK.cc
+)
+target_include_directories(fuzz_hpack PRIVATE
+ ${CMAKE_SOURCE_DIR}/proxy/http2
+ ${PROXY_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/iocore/utils
+)
target_include_directories(fuzz_json PRIVATE
${CMAKE_SOURCE_DIR}/mgmt
${CMAKE_SOURCE_DIR}/mgmt/rpc