Merge branch 'fix/audit-misc2' into fix/audit-cycle

This commit is contained in:
2026-09-21 22:02:05 +02:00
7 changed files with 119 additions and 51 deletions
+1 -2
View File
@@ -644,8 +644,7 @@ static Data* zstd_decompress(Data* compressed_data, size_t maximum_size) {
}
if (ret > 0 && output.pos == output.size) {
if (buf_size >= hard_limit || buf_size > SIZE_MAX / 2) {
log_message(LOG_LEVEL_ERROR, "Decompressed data exceeds %llu bytes",
(unsigned long long)MAX_DECOMPRESSED_SIZE);
log_message(LOG_LEVEL_ERROR, "Decompressed data exceeds %llu bytes", hard_limit);
data_destroy(uncompressed_data);
uncompressed_data = NULL;
goto cleanup;
+1 -1
View File
@@ -234,7 +234,7 @@ Config* config_create(void) {
* server_host NULL and would crash later consumers, so fail the whole create
* (every caller already handles a NULL return). */
if (!config->server_host) {
free(config);
config_delete(config);
return NULL;
}
return config;