Checked C

Checked C是C的扩展,它添加了检查以检测或防止常见的编程错误,例如缓冲区溢出和越界内存访问。 这个repo有一个Checked C的维基、示例代码、规范和测试代码。(Checked C is an extension of C that adds bounds checking to C. This repo contains the specification for the extension, test code, and samples.)

Github星跟蹤圖

Checked C

Checked C adds static and dynamic checking to C to detect or prevent common programming
errors such as buffer overruns and out-of-bounds memory accesses.
The goal of the project is to improve systems programming by making fundamental improvements to C.
This repo contains
sample code, the extension specification,
and test code.

  • For a quick overview of Checked C, more information, and pointers to example code,
    see our Wiki.
  • The PDF of the specification is available here.
  • Compilers are available here.

We are hiring.

We have positions available for a
Principal Software Engineer and
Senior Software Engineer.
We are looking for engineers who have production compiler development experience and who value shipping software.

Papers

We presented a research paper on
Checked C at the IEEE 2018 Cybersecurity Development Conference:
"Checked C: Making C Safe by Extension". The paper describes the key ideas of Checked C in 8 pages.

Note that we have added features to Checked C for improving type safety (and reducing type confusion)
since writing the paper. The Wiki and specification provide up-to-date descriptions of Checked C.

We presented another paper
on Checked C at the 2019 Principles of Security and Trust Conference:
"Achieving Safety Incrementally With Checked C".
This paper describes a tool for converting existing C code to use Ptr types. It also proves a blame
property about checked regions that shows that checked regions are blameless for any memory corruption.
This proof is formalized for a core subset of the language extension.

Build Status, Configuration, Testing, Status, --------, ---------------, -------, Debug X86 Windows, Checked C and clang regression tests, Debug X86 Windows status, Debug X64 Windows, Checked C and clang regression tests, Debug X64 Windows status, Debug X64 Linux, Checked C and clang regression tests, Debug X64 Linux status, Release X64 Linux, Checked C, clang, and LLVM nightly tests, Release X64 Linux status, # Participating

We're happy to have the help! You can contribute by trying out Checked C,
reporting bugs, and giving us feedback. There are other ways to contribute too.
You can join the mailing lists for
announcements about the project.

Licensing

The software in this repository is covered by the MIT license. See the file LICENSE.TXT for the license. The
Checked C specification is made available by Microsoft under the OpenWeb Foundation Final
Specification Agreement, version 1.0
.
Contributions of code to the Checked LLVM/clang repos are
subject to the CLANG/LLVM licensing terms.

Code of conduct

This project has adopted the
Microsoft Open Source Code of Conduct.
For more information see the
Code of Conduct FAQ or
contact opencode@microsoft.com with any
additional questions or comments.

概覽

名稱與所有者microsoft/checkedc
主編程語言C
編程語言TeX (語言數: 5)
平台Windows
許可證Other
發布數7
最新版本名稱CheckedC-Clang-12.0.1-rel3 (發布於 )
第一版名稱v0.5-final (發布於 )
創建於2016-02-23 17:47:40
推送於2022-09-01 18:45:49
最后一次提交2022-09-01 11:45:45
星數3.2k
關注者數107
派生數200
提交數431
已啟用問題?
問題數155
打開的問題數60
拉請求數307
打開的拉請求數3
關閉的拉請求數15
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部