Skip to content

Some improvements - #831

Open
sjaeckel wants to merge 11 commits into
developfrom
some-improvements
Open

sjaeckel wants to merge 11 commits into
developfrom
some-improvements

Conversation

@sjaeckel

@sjaeckel sjaeckel commented Dec 2, 2026

Copy link
Copy Markdown
Member

Check commit messages for details.

@sjaeckel
sjaeckel force-pushed the some-improvements branch 5 times, most recently from 8c1dbaa to 7e56996 Compare December 3, 2026 10:24
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
After moving the CI job into our own docker images the build failed with
the following error message:
```
fatal: detected dubious ownership in repository at '/__w/libtomcrypt/libtomcrypt'

To add an exception for this directory, call:

git config --global --add safe.directory /__w/libtomcrypt/libtomcrypt
```

I haven't been able to track down why this is happening, but this
change fixes it. Also print some more details of the exact build step
failing.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
We shouldn't care about problems in the system headers, let toolchain
maintainers take care of that.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
```
src/hashes/blake3.c: In function ‘blake3_test’:
src/hashes/blake3.c:352:46: warning: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (33 chars into 32 available) [-Wunterminated-string-initialization]
  352 |    static const unsigned char test_key[32] = "whats the Elvish word for friend";
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]
src/misc/pem/pem_ssh.c: In function ‘s_decode_header’:
src/misc/pem/pem_ssh.c:645:18: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  645 |    void *magic = strstr((const char*)in, "openssh-key-v1");
      |                  ^~~~~~
[...]
src/misc/pkcs5/pkcs_5_test.c: In function ‘pkcs_5_test’:
src/misc/pkcs5/pkcs_5_test.c:154:9: warning: variable ‘tested’ set but not used [-Wunused-but-set-variable=]
  154 |     int tested=0, failed=0;
      |         ^~~~~~
```

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Fixes: cf71fff ("re-factor openssh-privkey demo into library functions")
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Fixes: 811b1a6 ("Introduce `LTC_NOP_TEST()`")
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
lcov 2.0 has more strict error checks and when optimization is enabled
it is sometimes confused about where calls to lines came from.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
@sjaeckel
sjaeckel requested review from karel-m and levitte December 3, 2026 12:11
@sjaeckel

sjaeckel commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

What a wild ride ... Now the question is: what do we do with the coverage report? I'd suggest to simply accept it at the level it reports, since this seems to be caused by the change in the optimization level.

We don't know what happens in the future, so let's remove any potential
ambiguity.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant