• Exception 0xc0000005 (Access violation) at address 00C04F10

    From Eugene Palenock@2:5020/2065.1 to All on Wed Feb 28 01:01:54 2024
    Привет, All!

    hpt падает...
    ашёл воспроизводимость - при наличии двух и более бандлов нулевого размера. Последний бандл не удаляет, на нём падает.

    Тут было 3 бандла:
    ---------- Wed 28 Feb 2024, hpt/w32-mvcdll 1.9 2024-02-05
    1 00:51:48 Start
    1 00:51:48 Start tossing...
    U 00:51:48 ../src/\toss.c::processDir() begin
    U 00:51:48 ../src/\toss.c::processDir() returns 0
    U 00:51:48 ../src/\toss.c::processDir() begin
    O 00:51:48 Process incoming file D:\FTN\Files\IN\0000FFFF.mo0
    7 00:51:48 The empty pkt or bundle D:\FTN\Files\IN\0000FFFF.mo0 is removed
    O 00:51:48 Process incoming file D:\FTN\Files\IN\0000FFFF.mo1
    7 00:51:48 The empty pkt or bundle D:\FTN\Files\IN\0000FFFF.mo1 is removed
    O 00:51:48 Process incoming file (null)
    9 00:51:48 Exception 0xc0000005 (Access violation) at address 00584F10

    Тут было 2 бандла:
    ---------- Wed 28 Feb 2024, hpt/w32-mvcdll 1.9 2024-02-05
    1 00:52:11 Start
    1 00:52:11 Start tossing...
    U 00:52:11 ../src/\toss.c::processDir() begin
    U 00:52:11 ../src/\toss.c::processDir() returns 0
    U 00:52:11 ../src/\toss.c::processDir() begin
    O 00:52:11 Process incoming file D:\FTN\Files\IN\0000FFFF.mo0
    7 00:52:11 The empty pkt or bundle D:\FTN\Files\IN\0000FFFF.mo0 is removed
    O 00:52:11 Process incoming file (null)
    9 00:52:11 Exception 0xc0000005 (Access violation) at address 005F4F10



    --
    С уважением, Евгений.

    ---
    * Origin: ... (2:5020/2065.1)
  • From Nil A@2:5015/46 to Eugene Palenock on Wed Feb 28 05:53:02 2024
    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)