v0.0.53 - Fixed SIGILL crash in multi-listen mode: pfds array was too small (3) for 3 listeners + stdin (4), causing stack buffer overflow

This commit is contained in:
Laan Tungir
2026-07-20 09:13:18 -04:00
parent 0355744103
commit 0b0ec5eb1a

View File

@@ -759,8 +759,8 @@ int socket_name_random(char *out, size_t out_len);
/* Version information (auto-updated by build/version tooling) */
#define NSIGNER_VERSION_MAJOR 0
#define NSIGNER_VERSION_MINOR 0
#define NSIGNER_VERSION_PATCH 52
#define NSIGNER_VERSION "v0.0.52"
#define NSIGNER_VERSION_PATCH 53
#define NSIGNER_VERSION "v0.0.53"
/* NSIGNER_HEADERLESS_DECLS_END */
@@ -2325,7 +2325,7 @@ int main(int argc, char *argv[]) {
server_ctx_t server;
key_store_t key_store;
static algorithm_key_cache_t alg_key_cache;
struct pollfd pfds[3]; /* max: 2 listeners (unix+tcp) + stdin */
struct pollfd pfds[4]; /* max: 3 listeners (unix+tcp+http) + stdin */
uid_t owner_uid;
int derived_count;
const char *socket_name = NSIGNER_DEFAULT_SOCKET_NAME;