{"id":22900609,"url":"https://github.com/p0u4a/rocket-safe","last_synced_at":"2025-04-01T05:14:49.217Z","repository":{"id":263241874,"uuid":"846603091","full_name":"P0u4a/rocket-safe","owner":"P0u4a","description":"Static analyser for shipping to the moon","archived":false,"fork":false,"pushed_at":"2024-11-17T07:48:23.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T03:29:01.243Z","etag":null,"topics":["clang","nasa","rust","static-code-analyzer"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/P0u4a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-23T14:56:39.000Z","updated_at":"2024-11-17T07:48:26.000Z","dependencies_parsed_at":"2024-11-17T23:16:44.799Z","dependency_job_id":null,"html_url":"https://github.com/P0u4a/rocket-safe","commit_stats":null,"previous_names":["p0u4a/rocket-safe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P0u4a%2Frocket-safe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P0u4a%2Frocket-safe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P0u4a%2Frocket-safe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P0u4a%2Frocket-safe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/P0u4a","download_url":"https://codeload.github.com/P0u4a/rocket-safe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586036,"owners_count":20801028,"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":["clang","nasa","rust","static-code-analyzer"],"created_at":"2024-12-14T01:29:03.884Z","updated_at":"2025-04-01T05:14:49.193Z","avatar_url":"https://github.com/P0u4a.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket Safe 🚀\n\nStatic analyser for shipping to the moon.\n\n## How it works\n\nUsing the Abstract Syntax Tree generated by Clang, the program recursively traverses this tree to detect any C code\nthat violates a select set of rules from [NASA's Power of 10](https://en.wikipedia.org/wiki/The_Power_of_10:_Rules_for_Developing_Safety-Critical_Code). These standards are designed to ensure that embedded code written in C for safety-critical applications, such as those used in rockets, is as easy to debug and as free from errors as possible.\n\nThe set of rules currently supported are:\n\n- No complex control flow such as goto, longjmp and setjmp\n- No recursion\n- No heap allocation\n- No global variables\n- Check all function return values or cast to void if the return value is useless\n- Limit pointer use to a single dereference\n\n## Example\n\n```\ncargo run -- path/to/main.c\n```\n\n**Output**\n\n```\nDynamic memory allocation at line 7 column 3 in \"main.c\"\nFunction fibonacci called recursively at line 9 column 5 in \"main.c\"\ngoto usage at line 16 column 5 in \"main.c\"\ngoto usage at line 18 column 5 in \"main.c\"\nreturn value of printf ignored at line 20 column 3 in \"main.c\". If the function does not return anything it should be cast to void.\n```\n\n## Running\n\n1. Build the project with cargo build\n2. Test with cargo test\n3. Run with cargo run -- `path/to/main.c`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0u4a%2Frocket-safe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp0u4a%2Frocket-safe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0u4a%2Frocket-safe/lists"}