home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 48419 
 scan-admin@coverity.com to All 
 New Defects reported by Coverity Scan fo 
 31 Dec 25 13:45:24 
 
TZUTC: 0000
MSGID: 53847.syncprog@1:103/705 2dbb314e
PID: Synchronet 3.21a-Linux master/8bb133aa7 Dec 30 2025 GCC 12.2.0
TID: SBBSecho 3.34-Linux master/8bb133aa7 Dec 30 2025 GCC 12.2.0
BBSID: VERT
CHRS: ASCII 1
FORMAT: flowed

----==_mimepart_695528f458f41_188c5a2c2daae1599845314
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

Please find the latest report on new defect(s) introduced to Synchronet found
with Coverity Scan.

1 new defect(s) introduced to Synchronet found with Coverity Scan.
4 defect(s), reported by Coverity Scan earlier, were marked fixed in the
recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 640333:         (NEGATIVE_RETURNS)
/writemsg.cpp: 463           in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
/writemsg.cpp: 428           in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
/writemsg.cpp: 440           in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()


________________________________________________________________
____________________________
*** CID 640333:           (NEGATIVE_RETURNS)
/writemsg.cpp: 463             in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
457     				while (p) {
458     					if (*p == ',' || *p == ' ')
459     						p++;
460     					i = atoi(p);
461     					if (!i)
462     						break;
>>>     CID 640333:           (NEGATIVE_RETURNS)
>>>     "l" is passed to a parameter that cannot be negative.
463     					fseek(stream, l, SEEK_SET);
464     					j = 1;
465     					while (!feof(stream) && !ferror(stream) && j < i) {
466     						if (!fgets(tmp, sizeof(tmp), stream))
467     							break;
468     						j++; /* skip beginning */
/writemsg.cpp: 428             in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
422     					free(buf);
423     					return false;
424     				}
425     				if (!i && linesquoted)
426     					break;
427     				if (!i || quote[0] == all_key()) {                   /* Quote all
*/
>>>     CID 640333:           (NEGATIVE_RETURNS)
>>>     "l" is passed to a parameter that cannot be negative.
428     					fseek(stream, l, SEEK_SET);
429     					while (!feof(stream) && !ferror(stream)) {
430     						if (!fgets(str, sizeof(str), stream))
431     							break;
432     						quotestr(str);
433     						SAFEPRINTF2(tmp, quote_fmt, term->cols - 4, str);
/writemsg.cpp: 440             in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
434     						if (write(file, tmp, strlen(tmp)) > 0)
435     							linesquoted++;
436     					}
437     					break;
438     				}
439     				if (quote[0] == list_key()) {
>>>     CID 640333:           (NEGATIVE_RETURNS)
>>>     "l" is passed to a parameter that cannot be negative.
440     					fseek(stream, l, SEEK_SET);
441     					i = 1;
442     					term->newline();
443     					attr(LIGHTGRAY);
444     					while (!feof(stream) && !ferror(stream) && !msgabort()) {
445     						if (!fgets(str, sizeof(str), stream))


________________________________________________________________
_______________________________________
To view the defects in Coverity Scan visit, https://scan.coverit
.com/projects/synchronet?tab=overview


----==_mimepart_695528f458f41_188c5a2c2daae1599845314
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit




  
  New Defects Reported - Synchronet
  


  

Hi,

Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.

  • New Defects Found: 1
  • 4 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
  • Defects Shown: Showing 1 of 1 defect(s)

Defect Details

** CID 640333:         (NEGATIVE_RETURNS)
/writemsg.cpp: 463           in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
/writemsg.cpp: 428           in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
/writemsg.cpp: 440           in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()


________________________________________________________________
____________________________
*** CID 640333:           (NEGATIVE_RETURNS)
/writemsg.cpp: 463             in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
457     				while (p) {
458     					if (*p == ',' || *p == ' ')
459     						p++;
460     					i = atoi(p);
461     					if (!i)
462     						break;
>>>     CID 640333:           (NEGATIVE_RETURNS)
>>>     "l" is passed to a parameter that cannot be
negative.
463     					fseek(stream, l, SEEK_SET);
464     					j = 1;
465     					while (!feof(stream) && !ferror(stream) && j <
i) {
466     						if (!fgets(tmp, sizeof(tmp), stream))
467     							break;
468     						j++; /* skip beginning */
/writemsg.cpp: 428             in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
422     					free(buf);
423     					return false;
424     				}
425     				if (!i && linesquoted)
426     					break;
427     				if (!i || quote[0] == all_key()) {                   /* Quote all
*/
>>>     CID 640333:           (NEGATIVE_RETURNS)
>>>     "l" is passed to a parameter that cannot be
negative.
428     					fseek(stream, l, SEEK_SET);
429     					while (!feof(stream) && !ferror(stream)) {
430     						if (!fgets(str, sizeof(str), stream))
431     							break;
432     						quotestr(str);
433     						SAFEPRINTF2(tmp, quote_fmt, term->cols - 4, str);
/writemsg.cpp: 440             in sbbs_t::writemsg(const char *, const char *,
char *, int, int, const char *, const char *, const char **, const char **)()
434     						if (write(file, tmp, strlen(tmp)) > 0)
435     							linesquoted++;
436     					}
437     					break;
438     				}
439     				if (quote[0] == list_key()) {
>>>     CID 640333:           (NEGATIVE_RETURNS)
>>>     "l" is passed to a parameter that cannot be
negative.
440     					fseek(stream, l, SEEK_SET);
441     					i = 1;
442     					term->newline();
443     					attr(LIGHTGRAY);
444     					while (!feof(stream) && !ferror(stream) &&
!msgabort()) {
445     						if (!fgets(str, sizeof(str), stream))

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team

----==_mimepart_695528f458f41_188c5a2c2daae1599845314-- --- SBBSecho 3.34-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) SEEN-BY: 10/0 1 102/401 103/705 105/81 106/201 124/5016 128/187 129/14 SEEN-BY: 153/7715 154/110 214/22 218/0 1 215 700 810 226/30 227/114 SEEN-BY: 229/110 134 206 317 400 426 428 470 700 705 266/512 280/464 SEEN-BY: 291/111 301/1 320/219 322/757 342/200 396/45 460/58 633/280 SEEN-BY: 712/848 902/26 5075/35 PATH: 103/705 218/700 229/426

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca