Release v2.26.0 #284

Merged
TapTap merged 210 commits from dev into main 2026-09-18 19:05:52 +02:00
Showing only changes of commit 07f7555c1d - Show all commits
+6 -2
View File
@@ -479,8 +479,12 @@ static bool receiver_save_file(File* file, void* context_pointer) {
file_destroy(file); file_destroy(file);
return false; return false;
} }
if (result != FILE_SAVE_ERROR && context->config->remove_source_files && !file->is_dir && /* A dry-run receiver mutates nothing AND records no per-file outcomes: a
!file->is_special && !file->skip && hostile dry-run client that streamed data frames anyway must not be able to
grow `outcomes` without bound (receiver_outcomes_append reallocs uncharged)
or force a per-frame ack. */
if (!context->config->dry_run && result != FILE_SAVE_ERROR &&
context->config->remove_source_files && !file->is_dir && !file->is_special && !file->skip &&
!receiver_outcomes_append(&context->outcomes, (unsigned char)result)) { !receiver_outcomes_append(&context->outcomes, (unsigned char)result)) {
file_destroy(file); file_destroy(file);
return false; return false;