-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Self" message are not supported, but this was not checked. This triggered the error "Something is wrong", and then caused a buffer overflow. Bug:#65
- Loading branch information
1 parent
a97c425
commit 01ac869
Showing
9 changed files
with
72 additions
and
11 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,3 +1,7 @@ | ||
# 1.0.148 | ||
# Current | ||
|
||
## Security: | ||
- See CVE-2023-27390. Check there are no "self" message. | ||
|
||
## Build | ||
- Set MSVC_RUNTIME_LIBRARY to /MT for static builds |
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
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
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,3 +1,42 @@ | ||
add_executable(input_output_test src/input_output_test.cpp) | ||
target_link_libraries(input_output_test diagon_lib) | ||
target_set_common(input_output_test) | ||
|
||
option(DIAGON_ASAN "Set to ON to enable address sanitizer" OFF) | ||
option(DIAGON_LSAN "Set to ON to enable leak sanitizer" OFF) | ||
option(DIAGON_MSAN "Set to ON to enable memory sanitizer" OFF) | ||
option(DIAGON_TSAN "Set to ON to enable thread sanitizer" OFF) | ||
option(DIAGON_UBSAN "Set to ON to enable undefined behavior sanitizer" OFF) | ||
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
return() | ||
endif() | ||
|
||
# Add ASAN | ||
if (DIAGON_ASAN) | ||
add_compile_options(-fsanitize=address) | ||
add_link_options(-fsanitize=address) | ||
endif() | ||
|
||
# Add LSAN | ||
if (DIAGON_LSAN) | ||
add_compile_options(-fsanitize=leak) | ||
add_link_options(-fsanitize=leak) | ||
endif() | ||
|
||
# Add MSAN | ||
if (DIAGON_MSAN) | ||
add_compile_options(-fsanitize=memory) | ||
add_link_options(-fsanitize=memory) | ||
endif() | ||
|
||
# Add TSAN | ||
if (DIAGON_TSAN) | ||
add_compile_options(-fsanitize=thread) | ||
add_link_options(-fsanitize=thread) | ||
endif() | ||
|
||
# Add UBSAN | ||
if (DIAGON_UBSAN) | ||
add_compile_options(-fsanitize=undefined) | ||
add_link_options(-fsanitize=undefined) | ||
endif() |
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
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
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
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 @@ | ||
A->A:POC_BOF |
Empty file.