Hello, Eugene!
Wednesday February 28 2024 01:01, from Eugene Palenock -> All:
hpt падает...
ашёл воспроизводимость - при наличии двух и более бандлов нулевого размера. Последний бандл не удаляет, на нём падает.
From 7d1b194779113a318ed2beeb164bac1153247c1b Mon Sep 17 00:00:00 2001
From: Nil Alexandrov <
nil.alexandrov@gmail.com>
Date: Wed, 28 Feb 2024 05:50:30 +0300
Subject: [PATCH] Fixed undefined behavior when inbound has two or more zero
size bundles.
-+-
src/toss.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/toss.c b/src/toss.c
index 21db505..caee4e1 100644
--- a/src/toss.c
+++ b/src/toss.c
@@ -2340,8 +2340,6 @@ int processDir(char * directory, e_tossSecurity sec)
{
w_log(LL_BUNDLE, "The empty pkt or bundle %s is removed", dummy);
nfree(dummy);
- files[nfiles - 1].fileName = NULL;
- files[nfiles - 1].fileTime = 0;
}
continue;
--
1.9.1
Best Regards, Nil
--- GoldED+/LNX 1.1.5
* Origin: Linux 2.6.32-042stab145.3 (2:5015/46)