Skip to content
Discussion options

You must be logged in to vote

I managed to reproduce this in the GitHub Actions in our fork of strongswan as well as using a docker container (see below). Based on the reproducer, git bisect points to 7322df4 as the commit that introduced this.

The detected leak (72 bytes) is an error message from a caught exception, namely "PKCS #8 private key decoding failed with Unknown PKCS #8 version number", that the FFI wrapper stores in a global thread-local variable:

int ffi_error_exception_thrown(const char* func_name, const char* exn, int rc) {
g_last_exception_what.assign(exn);

... my best guess: this is the reason why botan_private_key_load wa…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@tobiasbrunner
Comment options

@tobiasbrunner
Comment options

@tobiasbrunner
Comment options

@tobiasbrunner
Comment options

Comment options

You must be logged in to vote
7 replies
@tobiasbrunner
Comment options

@reneme
Comment options

reneme Dec 11, 2025
Collaborator

@tobiasbrunner
Comment options

@tobiasbrunner
Comment options

@reneme
Comment options

reneme Dec 12, 2025
Collaborator

Answer selected by reneme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants