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.
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
From deuce@VERT 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.
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
From deuce@VERT 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!
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
Who's Online
Recent Visitors
Vintagegeek
Fri Apr 19 05:10:57 2024
from
Swarthmore, Pa
via
Telnet
System Info
Sysop:
deepend
Location:
Calgary, Alberta
Users:
239
Nodes:
10 (1
/
9)
Uptime:
05:34:11
Calls:
1,431
Calls today:
1
Files:
3,324
Messages:
357,717
Synchronet Oneliners
Vintagegeek@rdbbs Mon Apr 15 04:54:50 2024 Watching KELLY CASS on TheWeatherChannel
Vintagegeek@rdbbs Mon Apr 15 15:17:04 2024 Waiting for the rain
Vintagegeek@rdbbs Tue Apr 16 05:31:35 2024 Now waiting for the Dawn
Vintagegeek@rdbbs Wed Apr 17 07:41:03 2024 Off to feed the birds
Vintagegeek@rdbbs Thu Apr 18 05:31:35 2024 Apple IIGS w WiModem or iPad Telnet in Chrome
Vintagegeek@rdbbs Fri Apr 19 05:10:04 2024 More INPUT STEPHANIE