Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .fusa-reqs.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
{"id":"REQ-IEC62443-OUT001","title":"cfusa iec62443 --output <file> writes report to file and prints 'IEC 62443 gap report written to' to stderr; exit 3 for bad output path; parity with go-FuSa TestRunIEC62443_OutputFile/TestRunIEC62443_BadOutputPath","standard":"go-FuSa parity","level":"ASIL-A"},
{"id":"REQ-HARA-ASIL-C0001","title":"cfusa hara ASIL table uses 4-column (C0-C3) scale matching go-FuSa DetermineASIL; accepts Sx/Ex/Cx prefix flag values; S2/E4/C2=ASIL-C, S2/E4/C0=ASIL-A etc; parity with go-FuSa TestDetermineASIL_Table4 and TestRunHara_ASIL","standard":"go-FuSa parity","level":"ASIL-D"},
{"id":"REQ-HARA-INIT-EXISTS001","title":"cfusa hara init returns exit 2 with 'already exists' in stderr when .fusa-hara.json already exists; parity with go-FuSa TestRunHara_InitAlreadyExists","standard":"go-FuSa parity","level":"ASIL-A"},
{"id":"REQ-HARA-SUBCMD001","title":"cfusa hara unknown subcommand returns exit 2; parity with go-FuSa TestRunHara_UnknownSubcommand","standard":"go-FuSa parity","level":"ASIL-A"}
{"id":"REQ-HARA-SUBCMD001","title":"cfusa hara unknown subcommand returns exit 2; parity with go-FuSa TestRunHara_UnknownSubcommand","standard":"go-FuSa parity","level":"ASIL-A"},
{"id":"REQ-UNECE-OUT001","title":"cfusa unece --output <file> writes report to file and prints 'UN R.155 gap report written to' to stderr; stdout remains empty (§2.2); parity with go-FuSa TestRunUNECE_OutputFile","standard":"go-FuSa parity","level":"ASIL-A"}
]
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.5.30] — 2026-06-13

### Fixed
- **`cfusa unece --output <file>`**: Now prints "UN R.155 gap report written to \<file\>" to stderr after writing. Parity with go-FuSa `TestRunUNECE_OutputFile` (§2.2: stdout stays empty, confirmation goes to stderr).

### Requirements
- REQ-UNECE-OUT001

## [0.5.29] — 2026-06-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.16)
project(cfusa
VERSION 0.5.29
VERSION 0.5.30
DESCRIPTION "C functional safety toolkit"
LANGUAGES C
)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ LABEL org.opencontainers.image.title="c-FuSa" \
org.opencontainers.image.source="https://github.com/SoundMatt/c-FuSa" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.vendor="SoundMatt" \
org.opencontainers.image.version="0.5.29" \
org.opencontainers.image.version="0.5.30" \
io.x-fusa.tool="c-FuSa" \
io.x-fusa.language="c" \
io.x-fusa.binary="cfusa" \
Expand Down
5 changes: 4 additions & 1 deletion cmd/cfusa/cmd_unece.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
return 3;
}

if (output && out != stdout) fclose(out);
if (output && out != stdout) {
fclose(out);

Check warning

Code scanning / cfusa

return value of 'fclose' may be unchecked — system call failures must be handled (CERT-C ERR33-C) Warning

return value of 'fclose' may be unchecked — system call failures must be handled (CERT-C ERR33-C)
fprintf(stderr, "UN R.155 gap report written to %s\n", output);
}
return (gap > 0) ? 1 : 0;
}
4 changes: 2 additions & 2 deletions include/cfusa/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define CFUSA_VERSION_MAJOR 0
#define CFUSA_VERSION_MINOR 5
#define CFUSA_VERSION_PATCH 29
#define CFUSA_VERSION_STRING "0.5.29"
#define CFUSA_VERSION_PATCH 30
#define CFUSA_VERSION_STRING "0.5.30"
#define CFUSA_SCHEMA_VERSION "1.9"
#define CFUSA_SPEC_VERSION "1.9"

Expand Down
Loading