mirror of
https://github.com/coturn/coturn.git
synced 2025-10-28 21:41:29 +01:00
Adding fuzzing to finding memory-corruption-related bugs. Hello coturn team, Can you check this pr harness suite for creating harnesses and compiling harnesses? Any other thoughts on adding a new interface for fuzzing support ? Signed-off-by: 0x34d <ajsinghyadav00@gmail.com> Signed-off-by: 0x34d <ajsinghyadav00@gmail.com>
18 lines
600 B
CMake
18 lines
600 B
CMake
add_executable(FuzzStun FuzzStun.c)
|
|
target_link_libraries(FuzzStun turnclient ${LIB_FUZZING_ENGINE})
|
|
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/input/FuzzStun_seed_corpus.zip
|
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
set(FuzzStunClientSRC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/FuzzStunClient.c
|
|
${PROJECT_SOURCE_DIR}/src/apps/common/stun_buffer.c
|
|
)
|
|
|
|
add_executable(FuzzStunClient ${FuzzStunClientSRC})
|
|
target_link_libraries(FuzzStunClient turnclient ${LIB_FUZZING_ENGINE})
|
|
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/input/FuzzStunClient_seed_corpus.zip
|
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|