Skip to content

Commit 37c8125

Browse files
authored
Merge pull request #475 from vobst/prepare_0.9_release
Prepare 0.9 release
2 parents e8db00b + 8f22f56 commit 37c8125

11 files changed

Lines changed: 35 additions & 27 deletions

File tree

.github/workflows/acceptance-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242
- uses: actions-rs/toolchain@v1
4343
with:
4444
profile: minimal
45-
toolchain: stable
45+
toolchain: 1.76.0
4646
override: true
4747
- name: Install cwe_checker
4848
run: make all GHIDRA_PATH=/opt/ghidra
4949
- uses: actions-rs/cargo@v1
5050
with:
5151
command: test
52-
args: --no-fail-fast -p acceptance_tests_ghidra -- --show-output --ignored --test-threads 1
52+
args: --locked --no-fail-fast -p acceptance_tests_ghidra -- --show-output --ignored --test-threads 1
5353

5454
docker-build:
5555
runs-on: ubuntu-latest

.github/workflows/codestyle_checks.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions-rs/toolchain@v1
1818
with:
1919
profile: minimal
20-
toolchain: stable
20+
toolchain: 1.76.0
2121
override: true
2222
components: rustfmt
2323
- uses: actions-rs/cargo@v1
@@ -33,13 +33,17 @@ jobs:
3333
- uses: actions-rs/toolchain@v1
3434
with:
3535
profile: minimal
36-
toolchain: stable
36+
toolchain: 1.76.0
3737
override: true
3838
components: clippy
3939
- uses: actions-rs/cargo@v1
4040
with:
4141
command: clippy
4242
args: -- -D clippy::all -D missing_docs
43+
- uses: actions-rs/cargo@v1
44+
with:
45+
command: clippy
46+
args: -p cwe_checker_lib --bench "benchmarks" -- -D clippy::all
4347

4448
doc:
4549
name: Rustdoc
@@ -49,10 +53,10 @@ jobs:
4953
- uses: actions-rs/toolchain@v1
5054
with:
5155
profile: minimal
52-
toolchain: stable
56+
toolchain: 1.76.0
5357
override: true
5458
components: rust-docs
5559
- uses: actions-rs/cargo@v1
5660
with:
5761
command: doc
58-
args: --no-deps --document-private-items
62+
args: --no-deps --document-private-items

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
- uses: actions-rs/toolchain@v1
1717
with:
1818
profile: minimal
19-
toolchain: stable
19+
toolchain: 1.76.0
2020
override: true
2121
- uses: actions-rs/cargo@v1
2222
with:
23-
command: test
23+
command: test
24+
args: --locked

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
0.9-dev
1+
0.10-dev
2+
===
3+
4+
0.9 (2024-08)
25
===
36

47
- Fixed an issue in the pcode to IR translation (PR #470)

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM rust:1.76-bullseye AS builder
33
WORKDIR /cwe_checker
44

55
COPY . .
6-
RUN cargo build --release
6+
RUN cargo build --locked --release
77

88
FROM ghcr.io/fkie-cad/ghidra_headless_base:10.2.3 as runtime
99

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ GHIDRA_PATH =
22

33
.PHONY: all clean test uninstall docker
44
all:
5-
cargo build -p cwe_checker_install --release
5+
cargo build --locked -p cwe_checker_install --release
66
./target/release/cwe_checker_install ${GHIDRA_PATH}
77

88
test:
9-
cargo test
9+
cargo test --locked
1010
if [ ! -d "test/artificial_samples/build" ]; then \
1111
echo "Acceptance test binaries not found. Please see test/artificial_samples/Readme.md for build instructions."; \
1212
exit -1; \
@@ -15,7 +15,7 @@ test:
1515
echo "Acceptance test LKMs not found. Please see test/lkm_samples/Readme.md for build instructions."; \
1616
exit -1; \
1717
fi
18-
cargo test --no-fail-fast -p acceptance_tests_ghidra -- --show-output --ignored --test-threads 1
18+
cargo test --locked --no-fail-fast -p acceptance_tests_ghidra -- --show-output --ignored --test-threads 1
1919

2020
compile_test_files:
2121
pushd test/artificial_samples \
@@ -36,7 +36,7 @@ clean:
3636
rm -f -r doc/html
3737

3838
uninstall:
39-
cargo build -p cwe_checker_install --release
39+
cargo build --locked -p cwe_checker_install --release
4040
./target/release/cwe_checker_install --uninstall
4141

4242
documentation:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
![Acceptance tests](https://github.com/fkie-cad/cwe_checker/actions/workflows/acceptance-tests.yml/badge.svg?branch=master)
77
![Unit tests](https://github.com/fkie-cad/cwe_checker/actions/workflows/unit-tests.yml/badge.svg?branch=master)
88
![Docker-Pulls](https://img.shields.io/docker/pulls/fkiecad/cwe_checker.svg)
9-
[![Documentation](https://img.shields.io/badge/doc-stable-green.svg)](https://fkie-cad.github.io/cwe_checker/index.html)
9+
[![Documentation](https://img.shields.io/badge/doc-stable-green.svg)](https://docs.cwe-checker.io/index.html)
1010

1111
## What is cwe_checker? ##
1212
cwe_checker is a suite of checks to detect common bug classes such as Null pointer dereferences and buffer overflows.
@@ -39,7 +39,7 @@ The following arguments should convince you to give *cwe_checker* a try:
3939
The simplest way is to pull the latest Docker image from the [Github container registry](https://github.com/fkie-cad/cwe_checker/pkgs/container/cwe_checker):
4040
- `docker pull ghcr.io/fkie-cad/cwe_checker:latest` yields an image based on the current master branch.
4141
- `docker pull ghcr.io/fkie-cad/cwe_checker:stable` yields an image based on the latest stable release version.
42-
- `docker pull ghcr.io/fkie-cad/cwe_checker:v0.8` yields an image based on the v0.8 stable release version.
42+
- `docker pull ghcr.io/fkie-cad/cwe_checker:v0.9` yields an image based on the v0.9 stable release version.
4343
However, it is recommended to switch to newer stable releases as soon as they get published, since improvements between stable versions can be quite significant.
4444

4545
If you want to build the docker image yourself, just run
@@ -81,7 +81,7 @@ There is _experimental_ support for the analysis of Linux loadable kernel module
8181
subset of the CWE checks available for user-space programs. Analyses are
8282
configurable via a separate [configuration file](src/lkm_config.json).
8383

84-
If you use the stable version, you can also look at the [online documentation](https://fkie-cad.github.io/cwe_checker/index.html) for more information.
84+
If you use the stable version, you can also look at the [online documentation](https://docs.cwe-checker.io/index.html) for more information.
8585

8686
### For Bare-Metal Binaries ###
8787

@@ -90,13 +90,13 @@ For that one needs to provide a bare metal configuration file via the `--bare-me
9090
An example for such a configuration file can be found at `bare_metal/stm32f407vg.json`
9191
(which was created and tested for an STM32F407VG MCU).
9292

93-
For more information take a look at the [online documentation](https://fkie-cad.github.io/cwe_checker/index.html).
93+
For more information take a look at the [online documentation](https://docs.cwe-checker.io/index.html).
9494

9595
## Documentation and Tests ##
9696

9797
The test binaries for our test suite can be built with `make compile_test_files` (needs Docker to be installed!). The test suite can then be run with `make test`.
9898

99-
Source code documentation can be built with `make documentation`. For the stable version, the documentation can be found [here](https://fkie-cad.github.io/cwe_checker/index.html).
99+
Source code documentation can be built with `make documentation`. For the stable version, the documentation can be found [here](https://docs.cwe-checker.io/index.html).
100100

101101
## Implemented Checks <a name=checks></a> ##
102102

@@ -120,7 +120,7 @@ So far the following analyses are implemented:
120120
- [CWE-789](https://cwe.mitre.org/data/definitions/789.html): Memory Allocation with Excessive Size Value
121121

122122
Please note that both false positives and false negatives are to be expected due to shortcuts and the nature of static analysis as well as over-approximation.
123-
You can find information on the inner workings of each check as well as known reasons for false positives and false negatives on the [check-specific documentation pages](https://fkie-cad.github.io/cwe_checker/doc/html/cwe_checker_lib/checkers/index.html).
123+
You can find information on the inner workings of each check as well as known reasons for false positives and false negatives on the [check-specific documentation pages](https://docs.cwe-checker.io/cwe_checker_lib/checkers/index.html).
124124

125125
## Integration into other tools ##
126126

src/caller/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cwe_checker"
3-
version = "0.9.0-dev"
4-
authors = ["Fraunhofer FKIE <firmware-security@fkie.fraunhofer.de>"]
3+
version = "0.9.0"
4+
authors = ["Fraunhofer FKIE <contact@cwe-checker.io>"]
55
edition = "2021"
66
rust-version = "1.76"
77

src/cwe_checker_lib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cwe_checker_lib"
3-
version = "0.9.0-dev"
4-
authors = ["Fraunhofer FKIE <firmware-security@fkie.fraunhofer.de>"]
3+
version = "0.9.0"
4+
authors = ["Fraunhofer FKIE <contact@cwe-checker.io>"]
55
edition = "2021"
66
rust-version = "1.76"
77

0 commit comments

Comments
 (0)