{"id":31250603,"url":"https://github.com/albin-johansson/safely","last_synced_at":"2025-09-23T05:33:17.904Z","repository":{"id":315903821,"uuid":"1032843439","full_name":"albin-johansson/safely","owner":"albin-johansson","description":"A C++ library that provides safe numeric APIs.","archived":false,"fork":false,"pushed_at":"2025-09-21T13:32:51.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-21T15:16:05.523Z","etag":null,"topics":["arithmetic","cpp","cpp17","library","safety","undefined-behavior"],"latest_commit_sha":null,"homepage":"","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/albin-johansson.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-05T23:20:03.000Z","updated_at":"2025-09-21T13:57:16.000Z","dependencies_parsed_at":"2025-09-21T15:16:22.187Z","dependency_job_id":"d486f504-8494-4128-bc23-a8ff8c4879c2","html_url":"https://github.com/albin-johansson/safely","commit_stats":null,"previous_names":["albin-johansson/safely"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/albin-johansson/safely","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albin-johansson%2Fsafely","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albin-johansson%2Fsafely/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albin-johansson%2Fsafely/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albin-johansson%2Fsafely/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albin-johansson","download_url":"https://codeload.github.com/albin-johansson/safely/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albin-johansson%2Fsafely/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276519135,"owners_count":25656556,"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-09-23T02:00:09.130Z","response_time":73,"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":["arithmetic","cpp","cpp17","library","safety","undefined-behavior"],"created_at":"2025-09-23T05:33:16.814Z","updated_at":"2025-09-23T05:33:17.896Z","avatar_url":"https://github.com/albin-johansson.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safely\n\n[![CI](https://github.com/albin-johansson/safely/actions/workflows/ci.yml/badge.svg)](https://github.com/albin-johansson/safely/actions/workflows/ci.yml)\n\nSafely is a C++ library that provides safe numeric APIs, free of undefined behavior.\n\n## Requirements\n\n* C++17 or later\n* Signed integers must use two's complement (verified at compile-time)\n\n## Configuration\n\n* Use `SAFELY_ENABLE_INTRINSICS` to control whether intrinsics such as `__builtin_add_overflow` are used\n\n## See also\n\n* SEI CERT C Coding Standard\n* [Clang intrinsics](https://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins)\n* [GCC intrinsics](https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html)\n* [MSVC intrinsics](https://learn.microsoft.com/en-us/cpp/intrinsics/compiler-intrinsics)\n* [boostorg/safe_numerics](https://github.com/boostorg/safe_numerics)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbin-johansson%2Fsafely","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbin-johansson%2Fsafely","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbin-johansson%2Fsafely/lists"}