{"id":21848910,"url":"https://github.com/kassane/sanitizers-zig","last_synced_at":"2025-10-24T17:40:00.547Z","repository":{"id":264950450,"uuid":"862455197","full_name":"kassane/sanitizers-zig","owner":"kassane","description":"LLVM sanitizers for zig-toolchain","archived":false,"fork":false,"pushed_at":"2024-09-27T14:04:59.000Z","size":1521,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-26T23:53:38.507Z","etag":null,"topics":["cpp","cpp-libraries","llvm-sanitizer","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kassane.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":"2024-09-24T16:19:02.000Z","updated_at":"2024-10-20T01:45:52.000Z","dependencies_parsed_at":"2024-11-27T00:15:42.180Z","dependency_job_id":null,"html_url":"https://github.com/kassane/sanitizers-zig","commit_stats":null,"previous_names":["kassane/sanitizers-zig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fsanitizers-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fsanitizers-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fsanitizers-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fsanitizers-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kassane","download_url":"https://codeload.github.com/kassane/sanitizers-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226837319,"owners_count":17689941,"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","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":["cpp","cpp-libraries","llvm-sanitizer","zig","zig-package"],"created_at":"2024-11-28T00:09:23.879Z","updated_at":"2025-10-24T17:40:00.457Z","avatar_url":"https://github.com/kassane.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLVM Sanitizers for Zig\n\n## Description\n\nThis is a collection of sanitizers for Zig. It is a work in progress.\n\n\n## Requirements\n\n- [Zig](https://ziglang.org/download/) v0.15.0-dev\n\n## Add\n\n- [x] AddressSanitizer\n- [ ] MemorySanitizer\n- [x] UndefinedBehaviorSanitizer\n- [x] LeakSanitizer\n- [x] RealtimeSanitizer (LLVM 20)\n\n## Supported Platforms\n\n- [x] Linux (GNU|Musl)\n- [ ] Windows\n- [ ] macOS\n\n\n## Experimental Real-time Sanitizer (LLVM 20)\n\n\u003e [!NOTE]\n\u003e This is an experimental feature and is not yet ready for production use.\n\u003e Currently, zig master version is LLVM 19. My tests use zig-fork w/ LLVM 20.\n\n```bash\n$ zig build rtsan -Dtests\nReal-time violation: intercepted call to real-time unsafe function `malloc` in real-time context! Stack trace:\n    #0 0x00000102e659  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102e659)\n    #1 0x00000102bf80  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102bf80)\n    #2 0x00000102bef5  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102bef5)\n    #3 0x00000102c23c  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102c23c)\n    #4 0x00000102cdc1  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102cdc1)\n    #5 0x0000010891f7  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x10891f7)\n    #6 0x00000102b824  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102b824)\n    #7 0x00000102b7a2  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102b7a2)\n    #8 0x00000102b713  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102b713)\n    #9 0x00000102b42c  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102b42c)\n    #10 0x00000102b10e  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102b10e)\n    #11 0x00000102aeaa  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102aeaa)\n    #12 0x00000102adc8  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102adc8)\n    #13 0x00000102ae25  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102ae25)\n    #14 0x77feed58de07  (/usr/lib/libc.so.6+0x25e07) (BuildId: 98b3d8e0b8c534c769cb871c438b4f8f3a8e4bf3)\n    #15 0x77feed58decb  (/usr/lib/libc.so.6+0x25ecb) (BuildId: 98b3d8e0b8c534c769cb871c438b4f8f3a8e4bf3)\n    #16 0x00000102ad74  (/home/kassane/sanitizers-llvm/.zig-cache/o/18b7cbe81f65f9f9049547f69b71a77e/test-rtsan+0x102ad74)\n\nrtsan\n└─ run test-rtsan failure\nerror: the following command exited with error code 1:\n```\n\n### References\n\n- official-doc: https://clang.llvm.org/docs/RealtimeSanitizer.html\n- base: https://github.com/realtime-sanitizer/rtsan","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fsanitizers-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkassane%2Fsanitizers-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fsanitizers-zig/lists"}