• src/encode/lzh.c

    From deuce@1:103/705 to CVS commit on Tue Apr 14 06:30:35 2020
    src/encode lzh.c 1.13 1.14
    Update of /cvsroot/sbbs/src/encode
    In directory cvs:/tmp/cvs-serv19289

    Modified Files:
    lzh.c
    Log Message:
    Fix fencepost error detected by Coverity...

    Because the test to continue is *after* the loop, we can't continue
    when c is the last index into lzh->son, or the code will make use of lzh->son[sizeof(lzh->son)/sizeof(lzh->son[0])] which is outside the bounds
    of the array.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Apr 15 10:54:55 2020
    src/encode lzh.c 1.14 1.15
    Update of /cvsroot/sbbs/src/encode
    In directory cvs:/tmp/cvs-serv688

    Modified Files:
    lzh.c
    Log Message:
    More weirdness uncovered by Coverity.
    To be fair, this is all weird.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Fri Apr 17 07:08:11 2020
    src/encode lzh.c 1.15 1.16
    Update of /cvsroot/sbbs/src/encode
    In directory cvs:/tmp/cvs-serv1738

    Modified Files:
    lzh.c
    Log Message:
    I'm going to get the LZH to pass Coverity if it's the last thing I do!



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)