Skip to content

Instantly share code, notes, and snippets.

@nmoinvaz
Last active October 30, 2020 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmoinvaz/162e48849725a78b00be8602e8c501f7 to your computer and use it in GitHub Desktop.
Save nmoinvaz/162e48849725a78b00be8602e8c501f7 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": ["checksum_fuzzer", ".git", ".gitattributes", ".github", ".gitignore", ".not-used", ".shellcheckrc", "CMakeFiles", "CMakeLists.txt", "FAQ.zlib", "INDEX.md", "LICENSE.md", "Makefile.in", "README.md", "adler32.c", "adler32_p.h", "arch", "chunkset.c", "chunkset_tpl.h", "cmake", "compare258.c", "compress.c", "configure", "crc32.c", "crc32_p.h", "crc32_tbl.h", "deflate.c", "deflate.h", "deflate_fast.c", "deflate_medium.c", "deflate_p.h", "deflate_quick.c", "deflate_slow.c", "doc", "fallback_builtins.h", "functable.c", "functable.h", "gzguts.h", "gzlib.c", "gzread.c", "gzwrite.c", "infback.c", "inffast.c", "inffast.h", "inffixed_tbl.h", "inflate.c", "inflate.h", "inflate_p.h", "inftrees.c", "inftrees.h", "insert_string.c", "insert_string_tpl.h", "match_tpl.h", "test", "tools", "trees.c", "trees.h", "trees_emit.h", "trees_tbl.h", "uncompr.c", "win32", "zbuild.h", "zconf-ng.h", "zconf-ng.h.cmakein", "zconf-ng.h.in", "zconf.h.in", "zendian.h", "zlib-ng.h", "zlib-ng.map", "zlib-ng.pc", "zlib.3", "zlib.h", "zlib.map", "zlib.pc.cmakein", "zlib.pc.in", "zutil.c", "zutil.h", "zutil_p.h"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{"name": "LSAN_OPTIONS", "value": "verbosity=1:log_threads=1:print_summary=1:abort_on_error=1"},
{"name": "ASAN_OPTIONS", "value": "detect_stack_use_after_return=1:abort_on_error=1"},
{"name": "UBSAN_OPTIONS", "value": "print_stacktrace=1:silence_unsigned_overflow=1:abort_on_error=1"},
{"name": "MSAN_OPTIONS", "value": "print_stacktrace=1:abort_on_error=1"}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
buildType:
default: debug
choices:
debug:
short: Debug
buildType: Debug
release:
short: Release
buildType: Release
useFuzzers:
default: 'no'
choices:
'san':
short: Fuzzers + Sanitizers
linkage: shared
settings:
WITH_FUZZERS: ON
WITH_SANITIZERS: ON
'msan':
short: Fuzzers + MSAN
settings:
WITH_FUZZERS: ON
WITH_MSAN: ON
'no':
short: No Fuzzers
settings:
WITH_FUZZERS: OFF
@nmoinvaz
Copy link
Author

_ubsan_handle
__asan_report_error
__asan::ReportGenericError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment