-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeHawk static analysis tool suite #140047
Labels
0.kind: packaging request
Request for a new package to be added
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: ocaml
Comments
roberth
added
6.topic: ocaml
0.kind: packaging request
Request for a new package to be added
labels
Sep 30, 2021
My setup so far git clone https://github.com/static-analysis-engineering/CodeHawk-C
cd CodeHawk-C I've added # Use commit from https://github.com/NixOS/nixpkgs/pull/124556 to get access to pkgs.makeBinaryWrapper
{ pkgs ? import (fetchTarball "https://github.com/bergkvist/nixpkgs/archive/4b833cc141172f88e563692f2458253212d1cf1a.tar.gz") {} }:
let
PROJECT_ROOT = toString ./.;
in pkgs.mkShell {
buildInputs = [
pkgs.gcc
pkgs.python39
pkgs.makeBinaryWrapper
];
shellHook = ''
export PYTHONPATH="${PROJECT_ROOT}"
export PATH="${PROJECT_ROOT}/chc/cmdline/c_file/:$PATH"
'';
} nix-shell --pure
[nix-shell]$ mkdir -p wrapper-test && cd wrapper-test
[nix-shell]$ makeCWrapper /some/executable > main.c
[nix-shell]$ chc_parse_file.py main.c
[nix-shell]$ chc_analyze_file.py . main.c But I get an exception from CodeHawk-C trying to analyze a simple C-file:
The file I'm trying to analyze ( #include <unistd.h>
#include <stdlib.h>
int main(int argc, char **argv) {
argv[0] = "/some/executable";
return execv("/some/executable", argv);
} |
I marked this as stale due to inactivity. → More info |
stale
bot
added
the
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
label
Apr 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
0.kind: packaging request
Request for a new package to be added
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: ocaml
Project description
Nixpkgs could use it to check its own C programs, such as the setuid wrappers and #124556.
For packaging it seems we'll need at least these repos:
https://github.com/static-analysis-engineering/codehawk
https://github.com/static-analysis-engineering/CodeHawk-C
This is not about the JavaScript codehawk project, which seems to be entirely unrelated, despite performing performing some kind of analysis on JS.
Metadata
The text was updated successfully, but these errors were encountered: