-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from assaabloy-ppi/fuzz-strategy
Fuzz strategy
- Loading branch information
Showing
80 changed files
with
1,057 additions
and
886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
_build | ||
output | ||
build_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
project(pot-c-fuzz) | ||
|
||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake" ${CMAKE_MODULE_PATH}) | ||
find_package(Sanitizers) | ||
|
||
include_directories(../src) | ||
include_directories(../tests) | ||
include_directories(../src/external/tweetnacl_modified) | ||
include_directories(.) | ||
|
||
option(USE_SANITIZERS "Use Adress sanitizers" OFF) | ||
|
||
set(SOURCES | ||
../src/salt.c | ||
../src/salti_handshake.c | ||
../src/salti_util.c | ||
util.c | ||
crypt_mock.c | ||
test_data_mock.c | ||
) | ||
|
||
add_library(salt ${SOURCES}) | ||
|
||
if(USE_SANITIZERS) | ||
add_sanitizers(salt) | ||
else(USE_SANITIZERS) | ||
endif(USE_SANITIZERS) | ||
|
||
|
||
macro(add_fuzz arg) | ||
add_executable(${arg} ${arg}.c) | ||
if(USE_SANITIZERS) | ||
add_sanitizers(${arg}) | ||
endif(USE_SANITIZERS) | ||
target_link_libraries(${arg} salt) | ||
|
||
endmacro(add_fuzz) | ||
|
||
add_fuzz(fuzz_client) | ||
add_fuzz(fuzz_a2_client) | ||
add_fuzz(fuzz_a1a2_host) | ||
add_fuzz(fuzz_no_a1a2_host) | ||
add_fuzz(fuzz_read_parse) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.