macOS
brew install csmithlocal Homebrew formula metadata
brew
csmith のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install csmithlocal Homebrew formula metadata
sudo apk add csmithAlpine Linux edge package indexes · csmith · ソース: dl-cdn.alpinelinux.org
sudo apt install csmithDebian stable package indexes · csmith · ソース: deb.debian.org
sudo dnf install csmithFedora Rawhide package metadata · csmith · ソース: dl.fedoraproject.org
nix profile install nixpkgs#csmithnixpkgs package indexes · pkgs/by-name/cs/csmith/package.nix · ソース: api.github.com
sudo zypper install csmithopenSUSE Tumbleweed package metadata · csmith · ソース: download.opensuse.org
概要
Generates random C programs conforming to the C99 standard
履歴
Csmith is a random C program generator designed for compiler testing. It is a package-nerd staple because it turns compiler validation into a repeatable command-line workload that distributions can package and compiler developers can run locally.
The official README says Csmith was developed at the University of Utah by Xuejun Yang, Yang Chen, Eric Eide, and John Regehr as part of a compiler-testing research project. It says the project was open sourced in 2009 and is maintained as an open-source project in discretionary time.
The project became known through differential testing of C compilers. The README points to the paper Finding and Understanding Bugs in C Compilers as the best summary of the research, and the packaged tool is available across Homebrew and several Linux distributions according to the input package-manager facts.
Official usage examples generate a random C file with csmith, compile it with GCC and Clang, run both outputs, and compare results. The README also notes that generated programs avoid undefined behavior and that timeouts are best practice because generated programs can contain infinite loops.
Csmith is a compact command-line generator with outsized value for compiler packages: it can be scripted into local compiler checks, regression hunts, and distribution QA without a large service dependency.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
compiler_test.pl | cli | グローバル実行可能ファイル | |
csmith | cli | グローバル実行可能ファイル | |
launchn.pl | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/csmith-project/csmith
インストールメタデータ
| パッケージキー | brew:csmith |
|---|---|
| バージョン | 2.3.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/csmith |
| ホームページ | https://github.com/csmith-project/csmith |
| リポジトリ | https://github.com/csmith-project/csmith |
| 上流ドキュメント | https://github.com/csmith-project/csmith#readme |
| ライセンス | BSD-2-Clause |
| ソースアーカイブ | https://github.com/csmith-project/csmith/archive/refs/tags/csmith-2.3.0.tar.gz |
| 最終更新 | 2026-06-19T12:30:04-07:00 |
| Pulse | updated |
| Bottle | 利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
| 注意点 | It is recommended that you set the environment variable 'CSMITH_PATH' to $HOMEBREW_CELLAR/csmith/2.3.0/include/csmith-2.3.0 |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | csmith |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
csmith 2.3.0-8
generator of random C programs
https://embed.cs.utah.edu/csmith/
sudo apt install csmithlibcsmith-dev 2.3.0-8
generator of random C programs (development files)
https://embed.cs.utah.edu/csmith/
sudo apt install libcsmith-devlibcsmith0t64 2.3.0-8
generator of random C programs (runtime library)
https://embed.cs.utah.edu/csmith/
sudo apt install libcsmith0t64csmith
nix profile install nixpkgs#csmithcsmith 2.3.0-7.1build1
generator of random C programs
https://embed.cs.utah.edu/csmith/
sudo apt install csmithlibcsmith-dev 2.3.0-7.1build1
generator of random C programs (development files)
https://embed.cs.utah.edu/csmith/
sudo apt install libcsmith-devlibcsmith0t64 2.3.0-7.1build1
generator of random C programs (runtime library)
https://embed.cs.utah.edu/csmith/
sudo apt install libcsmith0t64csmith 2.3.0-r2
Tool for generating random C programs
https://embed.cs.utah.edu/csmith/
sudo apk add csmithcsmith-doc 2.3.0-r2
Tool for generating random C programs (documentation)
https://embed.cs.utah.edu/csmith/
sudo apk add csmith-doccsmith 2.4.0-15.fc44
Tool to generate random C programs for compiler testing
http://embed.cs.utah.edu/csmith/
sudo dnf install csmithcsmith-devel 2.4.0-15.fc44
Header files and libraries for Csmith development
http://embed.cs.utah.edu/csmith/
sudo dnf install csmith-develcsmith 2.3.0-1.31
Random C code generator
https://github.com/csmith-project/csmith
sudo zypper install csmithソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.