{"id":18879913,"url":"https://github.com/gusenov/examples-google-sanitizers","last_synced_at":"2025-10-04T03:14:16.184Z","repository":{"id":130182008,"uuid":"208406377","full_name":"gusenov/examples-google-sanitizers","owner":"gusenov","description":":hospital: Примеры использования Google Sanitizers в CLion.","archived":false,"fork":false,"pushed_at":"2020-12-26T10:51:31.000Z","size":3473,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T06:18:24.862Z","etag":null,"topics":["clang","clion","clion-cmake","cmake","cpp","examples","google-sanitizer"],"latest_commit_sha":null,"homepage":"https://www.jetbrains.com/help/clion/google-sanitizers.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gusenov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-14T07:40:14.000Z","updated_at":"2024-05-02T15:47:00.000Z","dependencies_parsed_at":"2023-03-24T07:34:34.329Z","dependency_job_id":null,"html_url":"https://github.com/gusenov/examples-google-sanitizers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gusenov/examples-google-sanitizers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fexamples-google-sanitizers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fexamples-google-sanitizers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fexamples-google-sanitizers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fexamples-google-sanitizers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gusenov","download_url":"https://codeload.github.com/gusenov/examples-google-sanitizers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fexamples-google-sanitizers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278258544,"owners_count":25957296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clang","clion","clion-cmake","cmake","cpp","examples","google-sanitizer"],"created_at":"2024-11-08T06:40:23.578Z","updated_at":"2025-10-04T03:14:16.146Z","avatar_url":"https://github.com/gusenov.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Флаги компилятора в *CMakeLists.txt*\n\n```\nset(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fsanitize=[sanitizer_name] [additional_options] [-g] [-OX]\")\n```\n\nДля C-проектов используется ```CMAKE_C_FLAGS``` вместо ```CMAKE_CXX_FLAGS```.\nДля ```[sanitizer_name]``` используется один из следующих вариантов:\n\n- address для AddressSanitizer\n- leak для LeakSanitizer\n- thread для ThreadSanitizer\n- undefined для UndefinedBehaviorSanitizer (есть еще другие опции)\n- memory для MemorySanitizer\n\n```[Additional_flags]``` - это другие флаги компиляции, например:\n\n- ```-fno-omit-frame-pointer```,\n- ```fsanitize-recover/fno-sanitize-recover```,\n- ```-fsanitize-blacklist```,\n- и пр.\n\n```[-g]``` используется чтобы в предупреждающих сообщениях были имена файлов и\nномера строк.\n\nУровень оптимизации ```[-OX]``` задается для получения производительности.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusenov%2Fexamples-google-sanitizers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusenov%2Fexamples-google-sanitizers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusenov%2Fexamples-google-sanitizers/lists"}