Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/inn-1.7.2q/syslog/syslog.h Examining data/inn-1.7.2q/syslog/syslogd.c Examining data/inn-1.7.2q/syslog/syslog.c Examining data/inn-1.7.2q/syslog/logger.c Examining data/inn-1.7.2q/include/qio.h Examining data/inn-1.7.2q/include/clibrary.h Examining data/inn-1.7.2q/include/mymemory.h Examining data/inn-1.7.2q/include/nntp.h Examining data/inn-1.7.2q/include/mystring.h Examining data/inn-1.7.2q/include/patchlevel.h Examining data/inn-1.7.2q/include/configdata.h Examining data/inn-1.7.2q/include/logging.h Examining data/inn-1.7.2q/include/macros.h Examining data/inn-1.7.2q/include/libinn.h Examining data/inn-1.7.2q/include/inndcomm.h Examining data/inn-1.7.2q/include/myserver.h Examining data/inn-1.7.2q/include/uio.h Examining data/inn-1.7.2q/include/paths.h Examining data/inn-1.7.2q/include/mydir.h Examining data/inn-1.7.2q/dbz/dbz.h Examining data/inn-1.7.2q/dbz/dbz.c Examining data/inn-1.7.2q/backends/shrinkfile.c Examining data/inn-1.7.2q/backends/crosspost.c Examining data/inn-1.7.2q/backends/archive.c Examining data/inn-1.7.2q/backends/innxbatch.c Examining data/inn-1.7.2q/backends/map.c Examining data/inn-1.7.2q/backends/nntpget.c Examining data/inn-1.7.2q/backends/shlock.c Examining data/inn-1.7.2q/backends/filechan.c Examining data/inn-1.7.2q/backends/cvtbatch.c Examining data/inn-1.7.2q/backends/batcher.c Examining data/inn-1.7.2q/backends/actsync.c Examining data/inn-1.7.2q/backends/rcompress.c Examining data/inn-1.7.2q/backends/innxmit.c Examining data/inn-1.7.2q/backends/buffchan.c Examining data/inn-1.7.2q/backends/overchan.c Examining data/inn-1.7.2q/expire/prunehistory.c Examining data/inn-1.7.2q/expire/makehistory.c Examining data/inn-1.7.2q/expire/fastrm.c Examining data/inn-1.7.2q/expire/expire.c Examining data/inn-1.7.2q/expire/convdate.c Examining data/inn-1.7.2q/expire/newsrequeue.c Examining data/inn-1.7.2q/expire/grephistory.c Examining data/inn-1.7.2q/expire/makeactive.c Examining data/inn-1.7.2q/expire/expireover.c Examining data/inn-1.7.2q/nnrpd/misc.c Examining data/inn-1.7.2q/nnrpd/commands.c Examining data/inn-1.7.2q/nnrpd/newnews.c Examining data/inn-1.7.2q/nnrpd/article.c Examining data/inn-1.7.2q/nnrpd/post.c Examining data/inn-1.7.2q/nnrpd/perl.c Examining data/inn-1.7.2q/nnrpd/loadave.c Examining data/inn-1.7.2q/nnrpd/nnrpd.h Examining data/inn-1.7.2q/nnrpd/group.c Examining data/inn-1.7.2q/nnrpd/nnrpd.c Examining data/inn-1.7.2q/nnrpd/post.h Examining data/inn-1.7.2q/innd/his.c Examining data/inn-1.7.2q/innd/lc.c Examining data/inn-1.7.2q/innd/inndstart.c Examining data/inn-1.7.2q/innd/innd.c Examining data/inn-1.7.2q/innd/innd.h Examining data/inn-1.7.2q/innd/chan.c Examining data/inn-1.7.2q/innd/art.h Examining data/inn-1.7.2q/innd/art.c Examining data/inn-1.7.2q/innd/proc.c Examining data/inn-1.7.2q/innd/site.c Examining data/inn-1.7.2q/innd/perl.c Examining data/inn-1.7.2q/innd/nc.c Examining data/inn-1.7.2q/innd/rc.c Examining data/inn-1.7.2q/innd/tcl.c Examining data/inn-1.7.2q/innd/cc.c Examining data/inn-1.7.2q/innd/newsfeeds.c Examining data/inn-1.7.2q/innd/ng.c Examining data/inn-1.7.2q/innd/icd.c Examining data/inn-1.7.2q/config/subst.c Examining data/inn-1.7.2q/lib/defdist.c Examining data/inn-1.7.2q/lib/inet_ntoa.c Examining data/inn-1.7.2q/lib/checkart.c Examining data/inn-1.7.2q/lib/memset.c Examining data/inn-1.7.2q/lib/gettime.c Examining data/inn-1.7.2q/lib/strchr.c Examining data/inn-1.7.2q/lib/getopt.c Examining data/inn-1.7.2q/lib/memcpy.c Examining data/inn-1.7.2q/lib/lockfile.c Examining data/inn-1.7.2q/lib/xfopena.c Examining data/inn-1.7.2q/lib/cleanfrom.c Examining data/inn-1.7.2q/lib/memchr.c Examining data/inn-1.7.2q/lib/wildmat.c Examining data/inn-1.7.2q/lib/radix32.c Examining data/inn-1.7.2q/lib/getmodaddr.c Examining data/inn-1.7.2q/lib/localopen.c Examining data/inn-1.7.2q/lib/strtok.c Examining data/inn-1.7.2q/lib/xmalloc.c Examining data/inn-1.7.2q/lib/strcasecmp.c Examining data/inn-1.7.2q/lib/waitnb.c Examining data/inn-1.7.2q/lib/mkfifo.c Examining data/inn-1.7.2q/lib/inndcomm.c Examining data/inn-1.7.2q/lib/getconfig.c Examining data/inn-1.7.2q/lib/lock.c Examining data/inn-1.7.2q/lib/nonblocking.c Examining data/inn-1.7.2q/lib/clientlib.c Examining data/inn-1.7.2q/lib/sendarticle.c Examining data/inn-1.7.2q/lib/malloc.c Examining data/inn-1.7.2q/lib/perl.c Examining data/inn-1.7.2q/lib/genid.c Examining data/inn-1.7.2q/lib/sendpass.c Examining data/inn-1.7.2q/lib/writev.c Examining data/inn-1.7.2q/lib/clientactive.c Examining data/inn-1.7.2q/lib/resource.c Examining data/inn-1.7.2q/lib/memmove.c Examining data/inn-1.7.2q/lib/findheader.c Examining data/inn-1.7.2q/lib/strerror.c Examining data/inn-1.7.2q/lib/xmemerr.c Examining data/inn-1.7.2q/lib/xwrite.c Examining data/inn-1.7.2q/lib/getfqdn.c Examining data/inn-1.7.2q/lib/xwritev.c Examining data/inn-1.7.2q/lib/getdtab.c Examining data/inn-1.7.2q/lib/strrchr.c Examining data/inn-1.7.2q/lib/innvers.c Examining data/inn-1.7.2q/lib/tempname.c Examining data/inn-1.7.2q/lib/closeonexec.c Examining data/inn-1.7.2q/lib/memcmp.c Examining data/inn-1.7.2q/lib/xrealloc.c Examining data/inn-1.7.2q/lib/remopen.c Examining data/inn-1.7.2q/lib/readin.c Examining data/inn-1.7.2q/lib/qio.c Examining data/inn-1.7.2q/lib/dbzalt.c Examining data/inn-1.7.2q/lib/strspn.c Examining data/inn-1.7.2q/authprogs/auth_pass.c Examining data/inn-1.7.2q/frontends/sys2nf.c Examining data/inn-1.7.2q/frontends/decode.c Examining data/inn-1.7.2q/frontends/getlist.c Examining data/inn-1.7.2q/frontends/feedone.c Examining data/inn-1.7.2q/frontends/rnews.c Examining data/inn-1.7.2q/frontends/encode.c Examining data/inn-1.7.2q/frontends/inews.c Examining data/inn-1.7.2q/frontends/innconfval.c Examining data/inn-1.7.2q/frontends/ctlinnd.c Examining data/inn-1.7.2q/debian/patches/clientactive.c Examining data/inn-1.7.2q/debian/patches/getmodaddr.c Examining data/inn-1.7.2q/debian/patches/misc_paths.h FINAL RESULTS: data/inn-1.7.2q/backends/buffchan.c:144:35: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. && ((e = errno) != EACCES || chmod(sp->Filename, 0644) < 0 data/inn-1.7.2q/backends/filechan.c:126:13: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. (void)chown(p, uid, gid); data/inn-1.7.2q/expire/makehistory.c:449:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. && readlink(p, linkbuff, sizeof linkbuff - 1) >= 0) { data/inn-1.7.2q/innd/innd.c:348:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(p, NewsUID, NewsGID) < 0) data/inn-1.7.2q/innd/innd.c:926:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(PID, 0664) < 0) { data/inn-1.7.2q/lib/wildmat.c:143:14: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. extern char *gets(); data/inn-1.7.2q/lib/wildmat.c:159:6: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. if (gets(p) == NULL || p[0] == '\0') data/inn-1.7.2q/lib/wildmat.c:164:10: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. if (gets(text) == NULL) data/inn-1.7.2q/syslog/syslogd.c:355:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(LogName, 0666) < 0) { data/inn-1.7.2q/authprogs/auth_pass.c:120:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(peername, inet_ntoa(sin.sin_addr)); data/inn-1.7.2q/authprogs/auth_pass.c:152:32: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (strcmp(pwd->pw_passwd, crypt(password, pwd->pw_passwd))!=0) { data/inn-1.7.2q/backends/actsync.c:3239:6: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(CTLINND_PATH, data/inn-1.7.2q/backends/actsync.c:3242:6: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(CTLINND_PATH, data/inn-1.7.2q/backends/actsync.c:3245:6: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(CTLINND_PATH, data/inn-1.7.2q/backends/archive.c:137:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Subject, p); data/inn-1.7.2q/backends/archive.c:144:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(MessageID, p); data/inn-1.7.2q/backends/archive.c:327:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(dest, Archive); data/inn-1.7.2q/backends/archive.c:356:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Name, buff); data/inn-1.7.2q/backends/archive.c:416:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s/%s", BATCHDIR, "archive"); data/inn-1.7.2q/backends/archive.c:418:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s.bch", p); data/inn-1.7.2q/backends/archive.c:420:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s/%s.bch", BATCHDIR, p); data/inn-1.7.2q/backends/batcher.c:57:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, Processor, Host); data/inn-1.7.2q/backends/batcher.c:58:6: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. F = popen(buff, "w"); data/inn-1.7.2q/backends/batcher.c:114:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(LINE1, Host, usertime, systime, STATend - STATbegin); data/inn-1.7.2q/backends/batcher.c:116:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(LINE2, Host, BATCHcount, ArtsWritten, BytesWritten); data/inn-1.7.2q/backends/batcher.c:121:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, LINE1, Host, usertime, systime, STATend - STATbegin); data/inn-1.7.2q/backends/batcher.c:122:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, LINE2, Host, BATCHcount, ArtsWritten, BytesWritten); data/inn-1.7.2q/backends/batcher.c:139:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s/%s", BATCHDIR, Host); data/inn-1.7.2q/backends/batcher.c:141:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s.bch", Input); data/inn-1.7.2q/backends/batcher.c:159:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOWRITE, Host, strerror(errno)); data/inn-1.7.2q/backends/batcher.c:166:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOWRITE, Host, strerror(errno)); data/inn-1.7.2q/backends/batcher.c:298:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Input, "%s/%s", BATCHDIR, av[1]); data/inn-1.7.2q/backends/batcher.c:339:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, Host, line, "too long"); data/inn-1.7.2q/backends/batcher.c:364:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, Host, p, strerror(errno)); data/inn-1.7.2q/backends/batcher.c:367:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/%s", AltSpool, p); data/inn-1.7.2q/backends/batcher.c:370:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, data/inn-1.7.2q/backends/batcher.c:379:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, Host, line, strerror(errno)); data/inn-1.7.2q/backends/batcher.c:384:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, Host, line, "not a file"); data/inn-1.7.2q/backends/batcher.c:457:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, Separator, BytesInArt); data/inn-1.7.2q/backends/buffchan.c:206:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, (STRING)Format, Map ? MAPname(Name) : sp->Name); data/inn-1.7.2q/backends/buffchan.c:469:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Format, "%s/%%s", BATCHDIR); data/inn-1.7.2q/backends/innxbatch.c:138:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(STAT1, data/inn-1.7.2q/backends/innxbatch.c:141:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(STAT2, REMhost, usertime, systime, STATend - STATbegin); data/inn-1.7.2q/backends/innxbatch.c:145:3: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, STAT1, data/inn-1.7.2q/backends/innxbatch.c:147:3: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, STAT2, REMhost, usertime, systime, STATend - STATbegin); data/inn-1.7.2q/backends/innxbatch.c:271:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, UNKNOWN_REPLY, buf); data/inn-1.7.2q/backends/innxbatch.c:277:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, XBATCH_FAIL, REMhost, buf); data/inn-1.7.2q/backends/innxbatch.c:291:7: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANNOT_UNLINK, XBATCHname); data/inn-1.7.2q/backends/innxbatch.c:424:7: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANT_CONNECT, REMhost, "timeout"); data/inn-1.7.2q/backends/innxbatch.c:426:7: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANT_CONNECT, REMhost, data/inn-1.7.2q/backends/innxbatch.c:437:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, CANT_AUTHENTICATE, data/inn-1.7.2q/backends/innxbatch.c:565:7: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, XBATCH_FAIL, REMhost, buff); data/inn-1.7.2q/backends/innxbatch.c:577:7: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_FATAL, XBATCH_FAIL, REMhost, buff); data/inn-1.7.2q/backends/innxmit.c:303:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(stbuf[i].st_fname, Article); data/inn-1.7.2q/backends/innxmit.c:304:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(stbuf[i].st_id, MessageID); data/inn-1.7.2q/backends/innxmit.c:466:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(STAT1, data/inn-1.7.2q/backends/innxmit.c:469:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(STAT2, REMhost, usertime, systime, STATend - STATbegin); data/inn-1.7.2q/backends/innxmit.c:473:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, STAT1, data/inn-1.7.2q/backends/innxmit.c:475:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, STAT2, REMhost, usertime, systime, STATend - STATbegin); data/inn-1.7.2q/backends/innxmit.c:527:8: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(BATCHtemp); data/inn-1.7.2q/backends/innxmit.c:825:9: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_FATAL, GOT_BADCOMMAND, REMhost, MessageID, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:831:2: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, GOT_RESENDIT, REMhost, MessageID, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:840:13: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, REJECTED, REMhost, data/inn-1.7.2q/backends/innxmit.c:871:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, p); data/inn-1.7.2q/backends/innxmit.c:902:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Encoding, p); data/inn-1.7.2q/backends/innxmit.c:913:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ContentType, p); data/inn-1.7.2q/backends/innxmit.c:965:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "check %s", stbuf[i].st_id); data/inn-1.7.2q/backends/innxmit.c:999:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(AltPath, "%s/%s", AltSpool, stbuf[i].st_fname); data/inn-1.7.2q/backends/innxmit.c:1009:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "takethis %s", stbuf[i].st_id); data/inn-1.7.2q/backends/innxmit.c:1069:7: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANT_FINDIT, REMhost, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:1073:3: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANT_PARSEIT, REMhost, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:1079:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, IHAVE_FAIL, REMhost, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:1083:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, UNEXPECTED, REMhost, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:1242:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(BATCHname, "%s/%s", BATCHDIR, av[1]); data/inn-1.7.2q/backends/innxmit.c:1264:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(BATCHtemp, "%s/bchXXXXXX", BATCHname); data/inn-1.7.2q/backends/innxmit.c:1297:3: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANT_CONNECT, REMhost, "timeout"); data/inn-1.7.2q/backends/innxmit.c:1299:3: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, CANT_CONNECT, REMhost, data/inn-1.7.2q/backends/innxmit.c:1309:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, CANT_AUTHENTICATE, data/inn-1.7.2q/backends/innxmit.c:1467:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(AltPath, "%s/%s", AltSpool, Article); data/inn-1.7.2q/backends/innxmit.c:1483:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, Article, "mangled"); data/inn-1.7.2q/backends/innxmit.c:1498:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, SKIPPING, Article, "no Message-ID"); data/inn-1.7.2q/backends/innxmit.c:1596:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s %s", Slavish ? "xreplic" : "ihave", MessageID); data/inn-1.7.2q/backends/innxmit.c:1632:13: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_FATAL, GOT_BADCOMMAND, REMhost, MessageID, REMclean(buff)); data/inn-1.7.2q/backends/innxmit.c:1639:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, IHAVE_FAIL, REMhost, REMclean(buff)); data/inn-1.7.2q/backends/nntpget.c:186:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, mesgid); data/inn-1.7.2q/backends/nntpget.c:318:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "NEWNEWS %s %s <%s>", data/inn-1.7.2q/backends/nntpget.c:321:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "NEWNEWS %s %s", Groups, Since); data/inn-1.7.2q/backends/nntpget.c:336:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s/nntpgetXXXXXX", p ? p : _PATH_TMP); data/inn-1.7.2q/backends/nntpget.c:337:8: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(temp); data/inn-1.7.2q/backends/nntpget.c:394:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "ihave %s", mesgid); data/inn-1.7.2q/backends/nntpget.c:406:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "article %s", mesgid); data/inn-1.7.2q/backends/overchan.c:103:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(file, "%s/%s", Dir, _PATH_OVERVIEW); data/inn-1.7.2q/backends/shlock.c:38:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTOPEN, name, strerror(errno)); data/inn-1.7.2q/backends/shlock.c:79:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTUNLINK, name, strerror(errno)); data/inn-1.7.2q/backends/shlock.c:145:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(tmp, "%s/shlock%ld", name, (long)getpid()); data/inn-1.7.2q/backends/shlock.c:156:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTOPEN, tmp, strerror(errno)); data/inn-1.7.2q/backends/shlock.c:161:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTUNLINK, tmp, strerror(errno)); data/inn-1.7.2q/backends/shlock.c:205:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTUNLINK, name, strerror(errno)); data/inn-1.7.2q/backends/shrinkfile.c:53:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/shrinkXXXXXX", p); data/inn-1.7.2q/backends/shrinkfile.c:54:11: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(buff); data/inn-1.7.2q/config/subst.c:38:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). extern char *strcpy(); data/inn-1.7.2q/config/subst.c:112:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy(new, p); data/inn-1.7.2q/config/subst.c:311:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(new, "%s%s%s", s1, s2, s3); data/inn-1.7.2q/config/subst.c:391:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(new, "%s/substtmp.new", f); data/inn-1.7.2q/config/subst.c:392:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(old, "%s/substtmp.old", f); data/inn-1.7.2q/config/subst.c:583:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(name, "@<%s>@", buff); data/inn-1.7.2q/dbz/dbz.c:340:41: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUG(args) if (debug) { (void) printf args ; } else data/inn-1.7.2q/dbz/dbz.c:810:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(p, s1); data/inn-1.7.2q/dbz/dbz.c:811:10: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(p, s2); data/inn-1.7.2q/debian/patches/getmodaddr.c:4:16: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(GMApathname, _PATH_TEMPMODERATORS); data/inn-1.7.2q/debian/patches/getmodaddr.c:5:16: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(GMApathname); data/inn-1.7.2q/expire/convdate.c:94:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCONVERT, Program, p); data/inn-1.7.2q/expire/convdate.c:107:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCONVERT, Program, p); data/inn-1.7.2q/expire/convdate.c:115:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCONVERT, Program, p); data/inn-1.7.2q/expire/convdate.c:121:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCONVERT, Program, p); data/inn-1.7.2q/expire/expire.c:494:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, bg->Name); data/inn-1.7.2q/expire/expire.c:655:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, IGNORING, line); data/inn-1.7.2q/expire/expire.c:659:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, IGNORING, line); data/inn-1.7.2q/expire/expire.c:711:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, IGNORING, line); data/inn-1.7.2q/expire/expire.c:742:19: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). q += strlen(strcpy(q, p)); data/inn-1.7.2q/expire/expire.c:771:20: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). q += strlen(strcpy(q, first)); data/inn-1.7.2q/expire/expire.c:776:19: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). q += strlen(strcpy(q, p)); data/inn-1.7.2q/expire/expire.c:1075:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.dir", HistoryDB); data/inn-1.7.2q/expire/expire.c:1077:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.pag", HistoryDB); data/inn-1.7.2q/expire/expire.c:1080:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/%s.n", HistoryPath, History); data/inn-1.7.2q/expire/expire.c:1082:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.n", HistoryText); data/inn-1.7.2q/expire/expire.c:1084:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.dir", NHistory); data/inn-1.7.2q/expire/expire.c:1086:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.pag", NHistory); data/inn-1.7.2q/expire/expire.c:1094:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCD, EXPhistdir, strerror(errno)); data/inn-1.7.2q/expire/expire.c:1118:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCD, SPOOL, strerror(errno)); data/inn-1.7.2q/expire/expire.c:1197:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, CANTCD, EXPhistdir, strerror(errno)); data/inn-1.7.2q/expire/expire.c:1202:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.done", NHistory); data/inn-1.7.2q/expire/expireover.c:198:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(lockfile, "%s/.LCK%s", group, _PATH_OVERVIEW); data/inn-1.7.2q/expire/expireover.c:206:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(file, "%s/%s", group, _PATH_OVERVIEW); data/inn-1.7.2q/expire/expireover.c:486:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(hp->Header, p); data/inn-1.7.2q/expire/expireover.c:502:17: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(lasthp->Header, line); data/inn-1.7.2q/expire/expireover.c:540:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(hp->Header, value); data/inn-1.7.2q/expire/expireover.c:558:25: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p = B.Data + strlen(strcpy(B.Data, name)); data/inn-1.7.2q/expire/expireover.c:562:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, hp->Header)); data/inn-1.7.2q/expire/expireover.c:622:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(file, "%s/%ld", group, *ap); data/inn-1.7.2q/expire/expireover.c:624:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(file, "%s/%s/%ld", SPOOL, group, *ap); data/inn-1.7.2q/expire/expireover.c:636:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(&New.Data[New.Used], p); data/inn-1.7.2q/expire/expireover.c:648:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(lockfile, "%s/.LCK%s", group, _PATH_OVERVIEW); data/inn-1.7.2q/expire/expireover.c:656:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(file, "%s/%s", group, _PATH_OVERVIEW); data/inn-1.7.2q/expire/expireover.c:817:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(group, line); data/inn-1.7.2q/expire/expireover.c:823:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(group, line); data/inn-1.7.2q/expire/expireover.c:872:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(file, "%s/%s", group, _PATH_OVERVIEW); data/inn-1.7.2q/expire/expireover.c:922:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, group); data/inn-1.7.2q/expire/expireover.c:924:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/%s", SPOOL, group); data/inn-1.7.2q/expire/fastrm.c:134:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(n->shortname, name); data/inn-1.7.2q/expire/fastrm.c:264:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(prefix_dir + prefix_len, p); data/inn-1.7.2q/expire/fastrm.c:379:8: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(abs, d); data/inn-1.7.2q/expire/fastrm.c:405:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(prefix_dir, abs); data/inn-1.7.2q/expire/fastrm.c:426:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(prefix_dir, p); data/inn-1.7.2q/expire/fastrm.c:439:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(cur_dir, abs); data/inn-1.7.2q/expire/fastrm.c:457:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(prefix_dir, DotDot + 9 - bsegs * 3); data/inn-1.7.2q/expire/fastrm.c:458:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(prefix_dir + (bsegs + 1) * 3, p); data/inn-1.7.2q/expire/fastrm.c:477:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(q + 1, p); data/inn-1.7.2q/expire/fastrm.c:484:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(prefix_dir, abs); data/inn-1.7.2q/expire/fastrm.c:497:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(cur_dir, abs); data/inn-1.7.2q/expire/fastrm.c:693:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(base_dir, p); data/inn-1.7.2q/expire/fastrm.c:694:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(cur_dir, p); data/inn-1.7.2q/expire/grephistory.c:41:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, SPOOL); data/inn-1.7.2q/expire/grephistory.c:265:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(key.dptr, "<%s>", av[0]); data/inn-1.7.2q/expire/makeactive.c:193:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. F = popen("exec find . -follow -type d -print", "r"); data/inn-1.7.2q/expire/makeactive.c:195:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. F = popen("exec find . -type d -print", "r"); data/inn-1.7.2q/expire/makehistory.c:71:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.dir", p); data/inn-1.7.2q/expire/makehistory.c:73:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOCANDO, buff, strerror(errno)); data/inn-1.7.2q/expire/makehistory.c:74:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s.pag", p); data/inn-1.7.2q/expire/makehistory.c:76:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOCANDO, buff, strerror(errno)); data/inn-1.7.2q/expire/makehistory.c:110:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s.n", HISTORY); data/inn-1.7.2q/expire/makehistory.c:307:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, IGNORE, MESSAGEID, name); data/inn-1.7.2q/expire/makehistory.c:311:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, BADHDR, MESSAGEID, name); data/inn-1.7.2q/expire/makehistory.c:318:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, IGNORE, EXPIRES, name); data/inn-1.7.2q/expire/makehistory.c:322:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, BADHDR, EXPIRES, name); data/inn-1.7.2q/expire/makehistory.c:329:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, IGNORE, DATE, name); data/inn-1.7.2q/expire/makehistory.c:333:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, BADHDR, DATE, name); data/inn-1.7.2q/expire/makehistory.c:417:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, group); data/inn-1.7.2q/expire/makehistory.c:438:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(q, p); data/inn-1.7.2q/expire/makehistory.c:654:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Tflag, "-T %s", optarg); data/inn-1.7.2q/expire/makehistory.c:696:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s/histXXXXXX", tmpdir); data/inn-1.7.2q/expire/makehistory.c:697:8: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(temp); data/inn-1.7.2q/expire/makehistory.c:774:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(temp, "%s/histXXXXXX", tmpdir); data/inn-1.7.2q/expire/makehistory.c:775:11: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(temp); data/inn-1.7.2q/expire/makehistory.c:778:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "exec sort %s -t'%c' +1n -o %s %s", data/inn-1.7.2q/expire/makehistory.c:781:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. i = system(p) >> 8; data/inn-1.7.2q/expire/makehistory.c:838:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(&B.Data[B.Used], q); data/inn-1.7.2q/expire/makehistory.c:858:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(B.Data, line); data/inn-1.7.2q/expire/newsrequeue.c:99:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, SPOOL); data/inn-1.7.2q/expire/newsrequeue.c:159:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, BADLINE, key.dptr, strerror(errno)); data/inn-1.7.2q/expire/newsrequeue.c:165:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, BADLINE, key.dptr, strerror(errno)); data/inn-1.7.2q/expire/newsrequeue.c:178:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, BADLINE, key.dptr, strerror(errno)); data/inn-1.7.2q/frontends/ctlinnd.c:280:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, av[i])); data/inn-1.7.2q/frontends/ctlinnd.c:305:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "send \"%s\" command", cp->Command); data/inn-1.7.2q/frontends/feedone.c:110:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(mesgid, optarg); data/inn-1.7.2q/frontends/feedone.c:112:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(mesgid, "<%s>", optarg); data/inn-1.7.2q/frontends/feedone.c:144:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(mesgid, p); data/inn-1.7.2q/frontends/feedone.c:188:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(ToServer, buff[0] == '.' ? ".%s\r\n" : "%s\r\n", data/inn-1.7.2q/frontends/inews.c:347:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(remotefrom, TrimSpaces(&buff[7])); data/inn-1.7.2q/frontends/inews.c:349:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(remotefrom, TrimSpaces(&buff[5])); data/inn-1.7.2q/frontends/inews.c:360:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(localfrom, HDR(_sender) ? HDR(_sender) : HDR(_from)); data/inn-1.7.2q/frontends/inews.c:452:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(name, pwp->pw_name); data/inn-1.7.2q/frontends/inews.c:500:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(outbuff, pwp->pw_gecos); data/inn-1.7.2q/frontends/inews.c:507:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(out, pwp->pw_name); data/inn-1.7.2q/frontends/inews.c:530:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s@%s (%s)", pwp->pw_name, node, out); data/inn-1.7.2q/frontends/inews.c:532:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s@%s", pwp->pw_name, node); data/inn-1.7.2q/frontends/inews.c:602:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s@%s", pwp->pw_name, p); data/inn-1.7.2q/frontends/inews.c:603:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(from, HDR(_from)); data/inn-1.7.2q/frontends/inews.c:681:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(HDR(_path), "%s%s!%s", Exclusions, p, PATHFLUFF); data/inn-1.7.2q/frontends/inews.c:683:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(HDR(_path), "%s%s", Exclusions, PATHFLUFF); data/inn-1.7.2q/frontends/inews.c:693:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(HDR(_path), "%s%s!%s", Exclusions, p, PATHFLUFF); data/inn-1.7.2q/frontends/inews.c:697:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(HDR(_path), "%s%s", Exclusions, PATHFLUFF); data/inn-1.7.2q/frontends/inews.c:701:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(HDR(_path), "%s%s", Exclusions, PATHFLUFF); data/inn-1.7.2q/frontends/inews.c:777:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/.signature", homedir); data/inn-1.7.2q/frontends/inews.c:781:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOSIG, strerror(errno)); data/inn-1.7.2q/frontends/inews.c:790:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOSIG, "empty file"); data/inn-1.7.2q/frontends/inews.c:794:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOSIG, strerror(errno)); data/inn-1.7.2q/frontends/inews.c:798:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOSIG, "too big"); data/inn-1.7.2q/frontends/inews.c:810:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, NOSIG, "too many lines"); data/inn-1.7.2q/frontends/inews.c:819:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(p, article); data/inn-1.7.2q/frontends/inews.c:824:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(&article[i], SIGSEP); data/inn-1.7.2q/frontends/inews.c:825:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(&article[i + sizeof SIGSEP - 1], buff); data/inn-1.7.2q/frontends/inews.c:903:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, _PATH_SENDMAIL, address); data/inn-1.7.2q/frontends/inews.c:904:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((F = popen(buff, "w")) == NULL) data/inn-1.7.2q/frontends/inews.c:1229:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Exclusions, "%s!", optarg); data/inn-1.7.2q/frontends/inews.c:1271:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(SpoolMessage, buff[0] ? buff : NOCONNECT); data/inn-1.7.2q/frontends/inews.c:1272:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/dead.article", pwp->pw_dir); data/inn-1.7.2q/frontends/rnews.c:129:8: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. (void)execv(path, argv); data/inn-1.7.2q/frontends/rnews.c:197:5: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, reason, arg); data/inn-1.7.2q/frontends/rnews.c:200:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)fprintf(stderr, reason, arg); data/inn-1.7.2q/frontends/rnews.c:581:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(path, "%s/%s", _PATH_RNEWSPROGS, p); data/inn-1.7.2q/include/clibrary.h:105:15: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. extern char *crypt(); data/inn-1.7.2q/include/clibrary.h:108:15: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(); data/inn-1.7.2q/include/clibrary.h:126:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern FILE *popen(); data/inn-1.7.2q/include/macros.h:46:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(NEW(char, strlen(p) + 1), p) data/inn-1.7.2q/include/mystring.h:6:14: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). extern char *strcat(); data/inn-1.7.2q/include/mystring.h:8:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). extern char *strcpy(); data/inn-1.7.2q/innd/art.c:580:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ARTheaders[_lines].Value, Data->Lines + 7); data/inn-1.7.2q/innd/art.c:713:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, COLONSPACE, MaxLength(start, start)); data/inn-1.7.2q/innd/art.c:736:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Space before colon in \"%s\" header", data/inn-1.7.2q/innd/art.c:763:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(start, hp->Name); data/inn-1.7.2q/innd/art.c:769:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "\"%s\" header too long", hp->Name); data/inn-1.7.2q/innd/art.c:931:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Missing \"%s\" header", hp->Name); data/inn-1.7.2q/innd/art.c:935:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Duplicate \"%s\" header", hp->Name); data/inn-1.7.2q/innd/art.c:955:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Linecount %s != %d +- %d", data/inn-1.7.2q/innd/art.c:964:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Bad \"Date\" header -- \"%s\"", MaxLength(p, p)); data/inn-1.7.2q/innd/art.c:968:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Too old -- \"%s\"", MaxLength(p, p)); data/inn-1.7.2q/innd/art.c:972:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Article posted in the future -- \"%s\"", data/inn-1.7.2q/innd/art.c:981:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Bad \"Expires\" header -- \"%s\"", data/inn-1.7.2q/innd/art.c:992:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, data/inn-1.7.2q/innd/art.c:1007:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(in, p); data/inn-1.7.2q/innd/art.c:1099:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "\"%.50s\" wants to cancel %s by \"%.50s\"", data/inn-1.7.2q/innd/art.c:1167:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "Cancelling %s", MaxLength(msgid, msgid)); data/inn-1.7.2q/innd/art.c:1479:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, " %s:%lu", ngp->Name, ngp->Filenum); data/inn-1.7.2q/innd/art.c:1540:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, name)); data/inn-1.7.2q/innd/art.c:1660:22: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). bp->Used += strlen(strcpy(p, sp->Name)); data/inn-1.7.2q/innd/art.c:1762:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, data/inn-1.7.2q/innd/art.c:1789:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, data/inn-1.7.2q/innd/art.c:1797:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ControlWord, data/inn-1.7.2q/innd/art.c:1807:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, error); data/inn-1.7.2q/innd/art.c:1821:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, perlrc); data/inn-1.7.2q/innd/art.c:1863:16: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, data/inn-1.7.2q/innd/art.c:1896:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Header.Data, p); data/inn-1.7.2q/innd/art.c:1907:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d Unwanted distribution \"%s\"", data/inn-1.7.2q/innd/art.c:2017:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d Unapproved for \"%s\"", data/inn-1.7.2q/innd/art.c:2086:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d Unwanted newsgroup \"%s\"", data/inn-1.7.2q/innd/art.c:2178:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Data.Name, "%s/%lu", ngp->Dir, ngp->Filenum); data/inn-1.7.2q/innd/art.c:2184:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d cant write article %s, %s", data/inn-1.7.2q/innd/art.c:2197:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, Data.Name)); data/inn-1.7.2q/innd/art.c:2202:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(linkname, "%s/%lu", ngp->Dir, ngp->Filenum); data/inn-1.7.2q/innd/art.c:2227:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, linkname)); data/inn-1.7.2q/innd/art.c:2235:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d cant write history, %s", data/inn-1.7.2q/innd/cc.c:200:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(*store, "<%s>", p); data/inn-1.7.2q/innd/cc.c:725:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(CCreply.Data, "1 Can't close %s", p); data/inn-1.7.2q/innd/cc.c:779:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, ModeReason)); data/inn-1.7.2q/innd/cc.c:783:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, ModeReason)); data/inn-1.7.2q/innd/cc.c:789:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, RejectReason)); data/inn-1.7.2q/innd/cc.c:798:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "Parameters c %ld i %d (%d) l %ld o %d t %ld H %d T %d X %d %s %s", data/inn-1.7.2q/innd/cc.c:810:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "Reserved %s", Reservation); data/inn-1.7.2q/innd/cc.c:826:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "disabled %s", NNRPReason); data/inn-1.7.2q/innd/cc.c:852:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(CCreply.Data, buff); data/inn-1.7.2q/innd/cc.c:888:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(CCreply.Data, "0 %s", CHANname(cp)); data/inn-1.7.2q/innd/cc.c:961:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s %ld %s\n", Name, Now.time, who); data/inn-1.7.2q/innd/cc.c:1100:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(CCreply.Data, "1 Reserved \"%s\"", Reservation); data/inn-1.7.2q/innd/cc.c:1210:11: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. (void)execv(CCargv[0], CCargv); data/inn-1.7.2q/innd/cc.c:1468:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(CCreply.Data, "1 Can't signal process %ld, %s", data/inn-1.7.2q/innd/cc.c:1676:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(copy, buff); data/inn-1.7.2q/innd/cc.c:1722:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (tbuff,p) ; data/inn-1.7.2q/innd/cc.c:1728:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(client.sun_path, argv[0]); data/inn-1.7.2q/innd/cc.c:1790:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(server.sun_path, CCpath); data/inn-1.7.2q/innd/chan.c:298:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s rejected", RChostname(cp)); data/inn-1.7.2q/innd/chan.c:301:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s:%d", data/inn-1.7.2q/innd/chan.c:323:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s:%d:%s", data/inn-1.7.2q/innd/chan.c:327:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s:%d:%s:%ld", data/inn-1.7.2q/innd/icd.c:276:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s 0000000000 0000000001 %s\n", Name, Rest); data/inn-1.7.2q/innd/innd.c:103:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, n1)); data/inn-1.7.2q/innd/innd.c:105:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(p, n2); data/inn-1.7.2q/innd/innd.c:152:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(&buff[sizeof buff - 11], &p[i - 10]); data/inn-1.7.2q/innd/innd.c:273:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_FATAL, NODUP2, LogName, fd0, 0, av[0]); data/inn-1.7.2q/innd/innd.c:277:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, NOCLOSE, LogName, fd0, av[0]); data/inn-1.7.2q/innd/innd.c:281:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_FATAL, NODUP2, LogName, fd1, 1, av[0]); data/inn-1.7.2q/innd/innd.c:285:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, NOCLOSE, LogName, fd1, av[0]); data/inn-1.7.2q/innd/innd.c:289:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_FATAL, NODUP2, LogName, fd2, 2, av[0]); data/inn-1.7.2q/innd/innd.c:293:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, NOCLOSE, LogName, fd2, av[0]); data/inn-1.7.2q/innd/innd.c:315:11: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. (void)execv(av[0], av); data/inn-1.7.2q/innd/innd.c:473:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s writing %s file -- throttling", data/inn-1.7.2q/innd/innd.c:682:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%sed from command line", data/inn-1.7.2q/innd/innd.c:769:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Path.Data, "%s!", path); data/inn-1.7.2q/innd/inndstart.c:141:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "PATH=%s:%s:/bin:/usr/bin:/usr/ucb", data/inn-1.7.2q/innd/inndstart.c:144:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "TMPDIR=%s", _PATH_TMP); data/inn-1.7.2q/innd/inndstart.c:146:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "SHELL=%s", _PATH_SH); data/inn-1.7.2q/innd/inndstart.c:148:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "LOGNAME=%s", NEWSMASTER); data/inn-1.7.2q/innd/inndstart.c:150:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "USER=%s", NEWSMASTER); data/inn-1.7.2q/innd/inndstart.c:152:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "HOME=%s", _PATH_NEWSHOME); data/inn-1.7.2q/innd/inndstart.c:157:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "BIND_INADDR=%s", p); data/inn-1.7.2q/innd/inndstart.c:161:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "TZ=%s", p); data/inn-1.7.2q/innd/lc.c:80:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(server.sun_path, LCpath); data/inn-1.7.2q/innd/nc.c:417:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d 0 %s", NNTP_NOTHING_FOLLOWS_VAL, p); data/inn-1.7.2q/innd/nc.c:508:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(wp->MessageID, id); data/inn-1.7.2q/innd/nc.c:822:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Reply.Data, "%d %s", NNTP_NOTHING_FOLLOWS_VAL, p); data/inn-1.7.2q/innd/nc.c:875:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d \"%s\" not implemented; try \"help\".", data/inn-1.7.2q/innd/nc.c:1208:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s/%ld%d.tmp", _PATH_XBATCHES, now, cp->fd); data/inn-1.7.2q/innd/nc.c:1215:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s cant create file: %s", data/inn-1.7.2q/innd/nc.c:1223:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s cant write batch to file: %s", data/inn-1.7.2q/innd/nc.c:1233:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s error closing batch file: %s", data/inn-1.7.2q/innd/nc.c:1238:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff2, "%s/%ld%d.x", _PATH_XBATCHES, now, cp->fd); data/inn-1.7.2q/innd/nc.c:1243:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s cant rename batch to %s: %s", data/inn-1.7.2q/innd/nc.c:1354:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%d %s InterNetNews server %s ready", data/inn-1.7.2q/innd/nc.c:1505:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p); data/inn-1.7.2q/innd/nc.c:1513:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p); data/inn-1.7.2q/innd/nc.c:1516:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_RESENDID_VAL, p); data/inn-1.7.2q/innd/nc.c:1519:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_OK_SENDID_VAL, p); data/inn-1.7.2q/innd/nc.c:1554:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_FAILID_VAL, p); data/inn-1.7.2q/innd/nc.c:1571:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(wp->MessageID, p); data/inn-1.7.2q/innd/ng.c:380:2: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, RENUMBER, LogName, ngp->Name, "hi", l, himark); data/inn-1.7.2q/innd/ng.c:382:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, NORENUMBER, LogName, ngp->Name, "hi"); data/inn-1.7.2q/innd/ng.c:391:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_NOTICE, RENUMBER, LogName, ngp->Name, "lo", l, lomark); data/inn-1.7.2q/innd/ng.c:393:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(L_ERROR, NORENUMBER, LogName, ngp->Name, "lo"); data/inn-1.7.2q/innd/rc.c:195:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "-r%s", NNRPReason); data/inn-1.7.2q/innd/rc.c:581:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, inet_ntoa(cp->Address)); data/inn-1.7.2q/innd/rc.c:705:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "-S%s", master); data/inn-1.7.2q/innd/site.c:499:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(temp, sp->Param); data/inn-1.7.2q/innd/site.c:500:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(temp, sp->FNLnames.Data); data/inn-1.7.2q/innd/site.c:501:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(temp, &p[1]); data/inn-1.7.2q/innd/site.c:503:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, temp, Data->Name); data/inn-1.7.2q/innd/site.c:507:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, sp->Param, Data->Name); data/inn-1.7.2q/innd/site.c:1103:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, text); data/inn-1.7.2q/innd/site.c:1107:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(p, sp->Name); data/inn-1.7.2q/innd/site.c:1148:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s%s:\t", sp->Name, sp->IsMaster ? "(*)" : ""); data/inn-1.7.2q/innd/site.c:1153:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "funnel -> %s: ", sp->Name); data/inn-1.7.2q/innd/site.c:1211:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "%sFlush @ %ld", sep, sp->Flushpoint); data/inn-1.7.2q/innd/site.c:1216:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "%sWrite [%ld..%ld]", sep, data/inn-1.7.2q/innd/site.c:1222:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "%sSpool @ %ld", sep, sp->StartSpooling); data/inn-1.7.2q/innd/site.c:1229:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(p, "\tSpooling to \"%s\"\n", sp->SpoolName); data/inn-1.7.2q/innd/site.c:1240:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf("\tSleeping until %.12s\n", data/inn-1.7.2q/lib/clientactive.c:112:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(CApathname, _PATH_TEMPACTIVE); data/inn-1.7.2q/lib/clientactive.c:113:11: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(CApathname); data/inn-1.7.2q/lib/clientlib.c:34:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, p); data/inn-1.7.2q/lib/clientlib.c:63:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ser_line, line2); data/inn-1.7.2q/lib/clientlib.c:103:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)printf(CANTUSE, host); data/inn-1.7.2q/lib/defdist.c:54:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(name, _PATH_TEMPACTIVE); data/inn-1.7.2q/lib/defdist.c:55:8: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(name); data/inn-1.7.2q/lib/genid.c:34:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "<%s$%s$%d@%s>", sec32, pid32, ++count, p); data/inn-1.7.2q/lib/getfqdn.c:59:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy(buff, hp->h_name); data/inn-1.7.2q/lib/getfqdn.c:71:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy(buff, p); data/inn-1.7.2q/lib/getfqdn.c:83:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(buff, p); data/inn-1.7.2q/lib/getmodaddr.c:106:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(name, group); data/inn-1.7.2q/lib/getmodaddr.c:120:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(GMApathname, _PATH_TEMPMODERATORS); data/inn-1.7.2q/lib/getmodaddr.c:121:15: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(GMApathname); data/inn-1.7.2q/lib/getmodaddr.c:147:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(address, save, name); data/inn-1.7.2q/lib/getmodaddr.c:164:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(address, save, name); data/inn-1.7.2q/lib/inndcomm.c:62:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ICCsockname, _PATH_TEMPSOCK); data/inn-1.7.2q/lib/inndcomm.c:63:11: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(ICCsockname); data/inn-1.7.2q/lib/inndcomm.c:77:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ICCclient.sun_path, ICCsockname); data/inn-1.7.2q/lib/inndcomm.c:92:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ICCserv.sun_path, _PATH_NEWSCONTROL); data/inn-1.7.2q/lib/inndcomm.c:229:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s%c%c", ICCsockname, SC_SEP, cmd); data/inn-1.7.2q/lib/inndcomm.c:232:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, q)); data/inn-1.7.2q/lib/innvers.c:32:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, RELEASE)); data/inn-1.7.2q/lib/innvers.c:34:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, PATCHLEVEL)); data/inn-1.7.2q/lib/innvers.c:36:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, DATE)); data/inn-1.7.2q/lib/innvers.c:41:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, q)); data/inn-1.7.2q/lib/localopen.c:47:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(server.sun_path, _PATH_NNTPCONNECT); data/inn-1.7.2q/lib/lock.c:34:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, COMMAND, "throttle", (long)getpid()); data/inn-1.7.2q/lib/lock.c:35:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. i = system(buff) >> 8; data/inn-1.7.2q/lib/lock.c:52:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, COMMAND, "go", (long)getpid()); data/inn-1.7.2q/lib/lock.c:53:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. i = system(buff) >> 8; data/inn-1.7.2q/lib/lock.c:57:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. i = system(buff) >> 8; data/inn-1.7.2q/lib/malloc.c:112:28: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. #define ASSERT(p) if(!(p)) syslog(L_FATAL, #p); else data/inn-1.7.2q/lib/perl.c:184:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (argv[0],"undef &%s",function) ; data/inn-1.7.2q/lib/tempname.c:59:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/%08lxXXXXXX", dir, (long)now); data/inn-1.7.2q/lib/tempname.c:60:11: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void)mktemp(buff); data/inn-1.7.2q/nnrpd/article.c:149:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(id, q); data/inn-1.7.2q/nnrpd/article.c:173:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(id, save_artid); data/inn-1.7.2q/nnrpd/article.c:191:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(id, save_artid); data/inn-1.7.2q/nnrpd/article.c:491:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, av[1]); data/inn-1.7.2q/nnrpd/article.c:759:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(name, "%s/%s/%s", _PATH_OVERVIEWDIR, GRPlast, _PATH_OVERVIEW); data/inn-1.7.2q/nnrpd/article.c:873:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(hp->Header, p); data/inn-1.7.2q/nnrpd/article.c:907:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(hp->Header, p); data/inn-1.7.2q/nnrpd/article.c:947:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(hp->Header, value); data/inn-1.7.2q/nnrpd/article.c:965:23: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p = buff + strlen(strcpy(buff, name)); data/inn-1.7.2q/nnrpd/article.c:971:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, hp->Header)); data/inn-1.7.2q/nnrpd/commands.c:89:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(path, "%s/%s", _PATH_AUTHDIR, av[0]); data/inn-1.7.2q/nnrpd/commands.c:141:8: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. (void)execv(path, av); data/inn-1.7.2q/nnrpd/commands.c:159:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(PERMauthstring, path); data/inn-1.7.2q/nnrpd/commands.c:173:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(PERMuser, "%s@%s", fields[2], fields[0]); data/inn-1.7.2q/nnrpd/commands.c:174:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(PERMpass, fields[3]); data/inn-1.7.2q/nnrpd/commands.c:175:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(accesslist, fields[4]); data/inn-1.7.2q/nnrpd/group.c:282:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, GRPlast); data/inn-1.7.2q/nnrpd/group.c:315:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, group); data/inn-1.7.2q/nnrpd/group.c:324:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(GRPlast, buff); data/inn-1.7.2q/nnrpd/group.c:360:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, GRPlast); data/inn-1.7.2q/nnrpd/misc.c:46:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(p, line); data/inn-1.7.2q/nnrpd/misc.c:85:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). p += strlen(strcpy(p, *v)); data/inn-1.7.2q/nnrpd/misc.c:198:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s%s", av1, av2); data/inn-1.7.2q/nnrpd/misc.c:341:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(path, save); data/inn-1.7.2q/nnrpd/misc.c:355:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(path, "%s/%s", _PATH_SPOOL, save); data/inn-1.7.2q/nnrpd/newnews.c:47:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s/%s/%s", _PATH_SPOOL, files[0], data/inn-1.7.2q/nnrpd/newnews.c:206:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(line, "%s %s %s %s %s", data/inn-1.7.2q/nnrpd/nnrpd.c:226:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "%s %s", ClientHost, what); data/inn-1.7.2q/nnrpd/nnrpd.c:232:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(p, buff); data/inn-1.7.2q/nnrpd/nnrpd.c:239:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(buff, "(nnrpd) %s %s", ClientHost, what); data/inn-1.7.2q/nnrpd/nnrpd.c:293:8: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(hostname, p); data/inn-1.7.2q/nnrpd/nnrpd.c:359:30: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (!EQ(pwd->pw_passwd, crypt(pass, pwd->pw_passwd))) data/inn-1.7.2q/nnrpd/nnrpd.c:368:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(PERMuser, user ? user : fields[2]); data/inn-1.7.2q/nnrpd/nnrpd.c:369:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(PERMpass, pass ? pass : fields[3]); data/inn-1.7.2q/nnrpd/nnrpd.c:370:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(accesslist, fields[4]); data/inn-1.7.2q/nnrpd/nnrpd.c:405:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(ClientHost, getenv("REMNODE")); data/inn-1.7.2q/nnrpd/nnrpd.c:412:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(ClientHost, MyDECnetDomain); data/inn-1.7.2q/nnrpd/nnrpd.c:427:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ClientHost, inet_ntoa(sin.sin_addr)); data/inn-1.7.2q/nnrpd/nnrpd.c:434:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(buff, inet_ntoa(sin.sin_addr)); data/inn-1.7.2q/nnrpd/nnrpd.c:437:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(ClientHost, inet_ntoa(sin.sin_addr)); data/inn-1.7.2q/nnrpd/nnrpd.c:490:11: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)vprintf(fmt, vp); data/inn-1.7.2q/nnrpd/nnrpd.c:498:8: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. (void)vsprintf(buff, fmt, vp); data/inn-1.7.2q/nnrpd/nnrpd.h:42:23: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define Printf (void)printf data/inn-1.7.2q/nnrpd/nnrpd.h:44:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define Reply (void)printf data/inn-1.7.2q/nnrpd/post.c:132:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(&buff[sizeof buff - 11], &p[i - 10]); data/inn-1.7.2q/nnrpd/post.c:201:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Obsolete \"%s\" header", hp->Name); data/inn-1.7.2q/nnrpd/post.c:205:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Duplicate \"%s\" header", hp->Name); data/inn-1.7.2q/nnrpd/post.c:272:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "\"%s\" is not a valid control message", data/inn-1.7.2q/nnrpd/post.c:296:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Illegal distribution \"%s\"", MaxLength(p,p)); data/inn-1.7.2q/nnrpd/post.c:330:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Can't set system \"%s\" header", hp->Name); data/inn-1.7.2q/nnrpd/post.c:345:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(sendbuff, "%s@%s", data/inn-1.7.2q/nnrpd/post.c:355:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Can't get the time, %s", strerror(errno)); data/inn-1.7.2q/nnrpd/post.c:398:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Can't generate Message-ID, %s", data/inn-1.7.2q/nnrpd/post.c:447:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(orgbuff, p); data/inn-1.7.2q/nnrpd/post.c:458:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(mimeversion, p); data/inn-1.7.2q/nnrpd/post.c:465:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(mimetype, p); data/inn-1.7.2q/nnrpd/post.c:473:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(mimeencoding, p); data/inn-1.7.2q/nnrpd/post.c:490:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Required \"%s\" header is missing", data/inn-1.7.2q/nnrpd/post.c:556:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "No mailing address for \"%s\" -- %s", data/inn-1.7.2q/nnrpd/post.c:563:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, _PATH_SENDMAIL, address); data/inn-1.7.2q/nnrpd/post.c:564:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((F = popen(buff, "w")) == NULL) data/inn-1.7.2q/nnrpd/post.c:598:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Mailer exited with status %d -- %s", data/inn-1.7.2q/nnrpd/post.c:651:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(Error,"%s: %s\r\n", NNTP_NOSUCHGROUP,p); data/inn-1.7.2q/nnrpd/post.c:671:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Postings to \"%s\" are not allowed here.", data/inn-1.7.2q/nnrpd/post.c:678:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, data/inn-1.7.2q/nnrpd/post.c:687:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "No valid newsgroups in \"%s\"", MaxLength(hdr,hdr)); data/inn-1.7.2q/nnrpd/post.c:696:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(distbuff, p); data/inn-1.7.2q/nnrpd/post.c:737:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(buff, CANTSEND, "IHAVE", strerror(errno)); data/inn-1.7.2q/nnrpd/post.c:761:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(CANTSPOOL, "%s and can't write text to local spool file", Error); data/inn-1.7.2q/nnrpd/post.c:867:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(frombuf, p+1); data/inn-1.7.2q/nnrpd/post.c:908:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Error, buff); data/inn-1.7.2q/nnrpd/post.c:910:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(Error, CANTSEND, "connect request", strerror(errno)); data/inn-1.7.2q/nnrpd/post.c:926:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(Error, "Can't authorize with %s", data/inn-1.7.2q/nnrpd/post.c:933:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Error, buff); data/inn-1.7.2q/nnrpd/post.c:948:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(Error, CANTSEND, "headers", strerror(errno)); data/inn-1.7.2q/nnrpd/post.c:957:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void)sprintf(Error, CANTSEND, "article", strerror(errno)); data/inn-1.7.2q/nnrpd/post.c:965:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(Error, buff); data/inn-1.7.2q/syslog/logger.c:71:25: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. char *tag, buf[1024], *getlogin(); data/inn-1.7.2q/syslog/logger.c:103:22: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. openlog(tag ? tag : getlogin(), logflags, 0); data/inn-1.7.2q/syslog/syslog.c:76:24: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). extern char *index(), *strcpy(), *strncpy(), *strcat(); data/inn-1.7.2q/syslog/syslog.c:76:47: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). extern char *index(), *strcpy(), *strncpy(), *strcat(); data/inn-1.7.2q/syslog/syslog.c:98:1: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(va_alist) data/inn-1.7.2q/syslog/syslog.c:143:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void)strcpy(p, LogTag); data/inn-1.7.2q/syslog/syslog.c:171:8: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. (void)vsprintf(p, fmt_cpy, ap); data/inn-1.7.2q/syslog/syslogd.c:144:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define dprintf if (Debug) printf data/inn-1.7.2q/syslog/syslogd.c:327:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(consfile.f_un.f_fname, ctty); data/inn-1.7.2q/syslog/syslogd.c:356:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(line, "cannot create %s", LogName); data/inn-1.7.2q/syslog/syslogd.c:695:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(f->f_prevline, msg); data/inn-1.7.2q/syslog/syslogd.c:720:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(greetings, data/inn-1.7.2q/syslog/syslogd.c:767:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "<%d>%.15s %s", f->f_prevpri, data/inn-1.7.2q/syslog/syslogd.c:972:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(buf, "syslogd: %s: %s", type, xstrerror(errno)); data/inn-1.7.2q/syslog/syslogd.c:974:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(buf, "syslogd: %s", type); data/inn-1.7.2q/syslog/syslogd.c:1153:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(xbuf, "unknown priority name \"%s\"", data/inn-1.7.2q/syslog/syslogd.c:1172:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(xbuf, data/inn-1.7.2q/syslog/syslogd.c:1196:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(f->f_un.f_forw.f_hname, ++p); data/inn-1.7.2q/syslog/syslogd.c:1211:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(f->f_un.f_fname, p); data/inn-1.7.2q/syslog/syslogd.c:1263:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(buf, name); data/inn-1.7.2q/syslog/syslogd.c:1325:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(device + sizeof(_PATH_DEV) - 1, line); data/inn-1.7.2q/syslog/syslogd.c:1329:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(errbuf, "%s: error %d", device, errno); data/inn-1.7.2q/syslog/syslogd.c:1395:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(errbuf, "%s: error %d", errno); data/inn-1.7.2q/backends/actsync.c:581:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(argc,argv,"b:d:g:i:I:kl:mn:o:p:q:s:S:t:Tv:z:")) != EOF) { data/inn-1.7.2q/backends/archive.c:273:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "a:fi:mr")) != EOF) data/inn-1.7.2q/backends/batcher.c:245:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "a:A:b:B:i:N:p:rs:S:v")) != EOF) data/inn-1.7.2q/backends/buffchan.c:406:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "bc:C:d:f:l:L:m:p:rs:u")) != EOF) data/inn-1.7.2q/backends/crosspost.c:242:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "D:ds")) != EOF) data/inn-1.7.2q/backends/cvtbatch.c:51:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "w:")) != EOF) data/inn-1.7.2q/backends/filechan.c:48:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "d:f:m:p:")) != EOF) data/inn-1.7.2q/backends/innxbatch.c:371:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "Dit:T:v")) != EOF) data/inn-1.7.2q/backends/innxmit.c:1171:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "lA:acdMprsSt:T:vP:")) != EOF) data/inn-1.7.2q/backends/nntpget.c:240:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "d:f:n:t:ovu:")) != EOF) data/inn-1.7.2q/backends/nntpget.c:335:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. p = getenv("TMPDIR"); data/inn-1.7.2q/backends/overchan.c:260:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "cD:")) != EOF) data/inn-1.7.2q/backends/rcompress.c:153:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "h:is:")) != EOF) data/inn-1.7.2q/backends/shlock.c:118:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "bcup:f:")) != EOF) data/inn-1.7.2q/backends/shrinkfile.c:51:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((p = getenv("TMPDIR")) == NULL) data/inn-1.7.2q/backends/shrinkfile.c:356:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "m:s:vn")) != EOF) data/inn-1.7.2q/config/subst.c:139:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(ac, av, opts) data/inn-1.7.2q/config/subst.c:513:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "e:f:")) != EOF) data/inn-1.7.2q/expire/convdate.c:61:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "cns")) != EOF) data/inn-1.7.2q/expire/expire.c:969:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "f:h:d:eg:ilnpqr:stv:w:xz:")) != EOF) data/inn-1.7.2q/expire/expireover.c:1155:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "aD:f:nO:svz")) != EOF) data/inn-1.7.2q/expire/grephistory.c:214:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "f:eiltnqs")) != EOF) data/inn-1.7.2q/expire/makeactive.c:257:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "mo")) != EOF) data/inn-1.7.2q/expire/makehistory.c:612:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((tmpdir = getenv("TMPDIR")) == NULL) data/inn-1.7.2q/expire/makehistory.c:617:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "A:a:bf:inors:T:uv")) != EOF) data/inn-1.7.2q/expire/newsrequeue.c:801:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "a:d:h:ln:")) != EOF) data/inn-1.7.2q/expire/prunehistory.c:112:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "f:p")) != EOF) data/inn-1.7.2q/frontends/ctlinnd.c:202:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "hst:")) != EOF) data/inn-1.7.2q/frontends/feedone.c:103:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "m:prt")) != EOF) data/inn-1.7.2q/frontends/getlist.c:52:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "h:")) != EOF) data/inn-1.7.2q/frontends/inews.c:491:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((p = getenv("NAME")) != NULL) { data/inn-1.7.2q/frontends/inews.c:1201:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "DNAVWORShx:a:c:d:e:f:n:r:t:F:o:w:")) != EOF) data/inn-1.7.2q/frontends/innconfval.c:25:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "f")) != EOF) data/inn-1.7.2q/frontends/rnews.c:830:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. UUCPHost = getenv(_ENV_UUCPHOST); data/inn-1.7.2q/frontends/rnews.c:837:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "h:S:NUv")) != EOF) data/inn-1.7.2q/frontends/sys2nf.c:254:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "a:s:d:")) != EOF) data/inn-1.7.2q/include/clibrary.h:106:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv(); data/inn-1.7.2q/innd/innd.c:641:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(ac, av, "ac:Cdfi:l:Lm:o:n:p:rsS:t:uH:T:X:")) != EOF) data/inn-1.7.2q/innd/inndstart.c:156:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((p = getenv("BIND_INADDR")) != NULL) { data/inn-1.7.2q/innd/inndstart.c:160:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((p = getenv("TZ")) != NULL) { data/inn-1.7.2q/lib/getconfig.c:61:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && (p = getenv(_ENV_NNTPSERVER)) != NULL) data/inn-1.7.2q/lib/getconfig.c:64:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && (p = getenv(_ENV_ORGANIZATION)) != NULL) data/inn-1.7.2q/lib/getconfig.c:67:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && (p = getenv(_ENV_FROMHOST)) != NULL) data/inn-1.7.2q/lib/getopt.c:32:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(ac, av, opts) data/inn-1.7.2q/nnrpd/nnrpd.c:405:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. (void) strcpy(ClientHost, getenv("REMNODE")); data/inn-1.7.2q/nnrpd/nnrpd.c:564:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((i = getopt(argc, argv, "S:r:s:t")) != EOF) data/inn-1.7.2q/syslog/logger.c:74:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((ch = getopt(argc, argv, "f:ip:st:")) != EOF) data/inn-1.7.2q/syslog/syslogd.c:300:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((ch = getopt(argc, argv, "df:m:p:")) != EOF) data/inn-1.7.2q/authprogs/auth_pass.c:71:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char password[256]; data/inn-1.7.2q/authprogs/auth_pass.c:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char peername[1024]; data/inn-1.7.2q/authprogs/auth_pass.c:75:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char username[32]; data/inn-1.7.2q/authprogs/auth_pass.c:114:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(peername, "stdin"); data/inn-1.7.2q/backends/actsync.c:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[BUFSIZ]; /* name of directory to probe */ data/inn-1.7.2q/backends/actsync.c:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[BUFSIZ+SMBUF]; /* spool relative path of a file */ data/inn-1.7.2q/backends/actsync.c:208:8: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num = atol(ep->d_name); data/inn-1.7.2q/backends/actsync.c:584:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(optarg)) { data/inn-1.7.2q/backends/actsync.c:608:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(optarg)) { data/inn-1.7.2q/backends/actsync.c:632:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_flag = atoi(optarg); data/inn-1.7.2q/backends/actsync.c:638:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(optarg)) { data/inn-1.7.2q/backends/actsync.c:667:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(optarg)) { data/inn-1.7.2q/backends/actsync.c:781:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(optarg)) { data/inn-1.7.2q/backends/actsync.c:805:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). s_flag = atoi(optarg); data/inn-1.7.2q/backends/actsync.c:811:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(optarg)) { data/inn-1.7.2q/backends/actsync.c:840:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). v_flag = atoi(optarg); data/inn-1.7.2q/backends/actsync.c:850:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). z_flag = atoi(optarg); data/inn-1.7.2q/backends/actsync.c:1031:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[QIO_BUFFER+1]; /* QIO buffer */ data/inn-1.7.2q/backends/actsync.c:1327:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, cur->hi, ((i > WATER_LEN) ? WATER_LEN : i)+1); data/inn-1.7.2q/backends/actsync.c:1369:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, cur->low, ((i > WATER_LEN) ? WATER_LEN : i)+1); data/inn-1.7.2q/backends/actsync.c:2089:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. qsort((char *)grp, grplen, sizeof(grp[0]), merge_cmp); data/inn-1.7.2q/backends/actsync.c:2382:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. qsort((char *)grp, grplen, sizeof(grp[0]), active_cmp); data/inn-1.7.2q/backends/actsync.c:2959:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. qsort((char *)eqgrp, eq_cnt, sizeof(eqgrp[0]), eq_merge_cmp); data/inn-1.7.2q/backends/actsync.c:3061:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. qsort((char *)eqgrp, eq_cnt, sizeof(eqgrp[0]), eq_merge_cmp); data/inn-1.7.2q/backends/actsync.c:3119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ+1]; /* interactive buffer */ data/inn-1.7.2q/backends/actsync.c:3177:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). io[READ_SIDE] = open(DEV_NULL, 0); data/inn-1.7.2q/backends/actsync.c:3184:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). io[WRITE_SIDE] = open(DEV_NULL, 1); data/inn-1.7.2q/backends/actsync.c:3387:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). oldhi = atol(grp->outhi); data/inn-1.7.2q/backends/actsync.c:3388:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). oldlow = atol(grp->outlow); data/inn-1.7.2q/backends/actsync.c:3434:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(hi, "%010ld", newhi); data/inn-1.7.2q/backends/actsync.c:3450:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(low, "%010ld", newlow); data/inn-1.7.2q/backends/archive.c:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Subject[BUFSIZ]; data/inn-1.7.2q/backends/archive.c:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char MessageID[BUFSIZ]; data/inn-1.7.2q/backends/archive.c:175:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/archive.c:178:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((out = fopen(dest, "w")) == NULL) { data/inn-1.7.2q/backends/archive.c:186:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen(dest, "w"); data/inn-1.7.2q/backends/archive.c:196:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((in = fopen(src, "r")) == NULL) { data/inn-1.7.2q/backends/archive.c:260:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/archive.c:261:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/inn-1.7.2q/backends/archive.c:262:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dest[BUFSIZ]; data/inn-1.7.2q/backends/batcher.c:54:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/backends/batcher.c:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/inn-1.7.2q/backends/batcher.c:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/batcher.c:227:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[BUFSIZ]; data/inn-1.7.2q/backends/batcher.c:228:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/batcher.c:251:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ArtsInBatch = atoi(optarg); data/inn-1.7.2q/backends/batcher.c:254:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxArts = atol(optarg); data/inn-1.7.2q/backends/batcher.c:257:21: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). BytesInBatch = atol(optarg); data/inn-1.7.2q/backends/batcher.c:260:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxBytes = atol(optarg); data/inn-1.7.2q/backends/batcher.c:266:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxBatches = atoi(optarg); data/inn-1.7.2q/backends/batcher.c:348:40: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). BytesInArt = CTYPE(isdigit, *p) ? atol(p) : -1; data/inn-1.7.2q/backends/batcher.c:362:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((artfd = open(p, O_RDONLY)) < 0) { data/inn-1.7.2q/backends/batcher.c:368:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((artfd = open(buff, O_RDONLY)) < 0) { data/inn-1.7.2q/backends/buffchan.c:148:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((sp->F = fopen("/dev/null", "w")) == NULL) { data/inn-1.7.2q/backends/buffchan.c:185:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/buffchan.c:416:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). CloseEvery = atoi(optarg); data/inn-1.7.2q/backends/buffchan.c:419:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). CloseSeconds = atoi(optarg); data/inn-1.7.2q/backends/buffchan.c:427:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Fields = atoi(optarg); data/inn-1.7.2q/backends/buffchan.c:430:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). FlushEvery = atoi(optarg); data/inn-1.7.2q/backends/buffchan.c:433:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). FlushSeconds = atoi(optarg); data/inn-1.7.2q/backends/buffchan.c:440:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(optarg, "w")) == NULL) { data/inn-1.7.2q/backends/crosspost.c:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *names[MAXXPOST]; data/inn-1.7.2q/backends/crosspost.c:129:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(syncfiles) fd = open(names[0], O_RDWR); data/inn-1.7.2q/backends/crosspost.c:135:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[SPOOLNAMEBUFF+2]; data/inn-1.7.2q/backends/crosspost.c:183:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[SPOOLNAMEBUFF+2]; data/inn-1.7.2q/backends/filechan.c:26:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[2048]; data/inn-1.7.2q/backends/filechan.c:57:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Fields = atoi(optarg); data/inn-1.7.2q/backends/filechan.c:64:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(optarg, "w")) == NULL) { data/inn-1.7.2q/backends/filechan.c:121:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(p, O_CREAT | O_WRONLY | O_APPEND, BATCHFILE_MODE); data/inn-1.7.2q/backends/innxbatch.c:95:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/innxbatch.c:268:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buf)) { data/inn-1.7.2q/backends/innxbatch.c:354:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/innxbatch.c:386:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ConnectTimeout = atoi(optarg); data/inn-1.7.2q/backends/innxbatch.c:389:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). TotalTimeout = atoi(optarg); data/inn-1.7.2q/backends/innxbatch.c:492:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(XBATCHname, O_RDONLY, 0)) < 0) { data/inn-1.7.2q/backends/innxbatch.c:538:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "xbatch %d", XBATCHsize); data/inn-1.7.2q/backends/innxbatch.c:556:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buff)) { data/inn-1.7.2q/backends/innxmit.c:159:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(History, "r")) == NULL) { data/inn-1.7.2q/backends/innxmit.c:357:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)REMbuffptr, (POINTER)COD, STRLEN(COD)); data/inn-1.7.2q/backends/innxmit.c:366:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)REMbuffptr, (POINTER)p, (SIZE_T)i); data/inn-1.7.2q/backends/innxmit.c:528:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((BATCHfp = fopen(BATCHtemp, "w")) == NULL) { data/inn-1.7.2q/backends/innxmit.c:644:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[BUFSIZ]; data/inn-1.7.2q/backends/innxmit.c:736:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/innxmit.c:814:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buff)) { data/inn-1.7.2q/backends/innxmit.c:859:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[DBZMAXKEY + 1]; data/inn-1.7.2q/backends/innxmit.c:889:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char Encoding[SMBUF + 1]; data/inn-1.7.2q/backends/innxmit.c:890:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ContentType[SMBUF + 1]; data/inn-1.7.2q/backends/innxmit.c:962:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/innxmit.c:992:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/innxmit.c:1040:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/innxmit.c:1054:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). resp = atoi(buff); data/inn-1.7.2q/backends/innxmit.c:1154:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[8192+128]; data/inn-1.7.2q/backends/innxmit.c:1213:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ConnectTimeout = atoi(optarg); data/inn-1.7.2q/backends/innxmit.c:1216:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). TotalTimeout = atoi(optarg); data/inn-1.7.2q/backends/innxmit.c:1244:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open(BATCHname, O_RDWR)) < 0 data/inn-1.7.2q/backends/innxmit.c:1340:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buff)) { data/inn-1.7.2q/backends/innxmit.c:1621:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buff)) { data/inn-1.7.2q/backends/map.c:52:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/map.c:58:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(name, "r")) == NULL) { data/inn-1.7.2q/backends/nntpget.c:32:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Buffer[BUFSIZ]; data/inn-1.7.2q/backends/nntpget.c:170:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/nntpget.c:184:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/nntpget.c:212:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/backends/nntpget.c:213:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mesgid[NNTP_STRLEN]; data/inn-1.7.2q/backends/nntpget.c:214:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tbuff[SMBUF]; data/inn-1.7.2q/backends/nntpget.c:215:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/inn-1.7.2q/backends/nntpget.c:260:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(tbuff, "%02d%02d%02d %02d%02d%02d GMT", data/inn-1.7.2q/backends/nntpget.c:338:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(temp, "w+")) == NULL) { data/inn-1.7.2q/backends/nntpget.c:401:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(buff) != NNTP_SENDIT_VAL) data/inn-1.7.2q/backends/nntpget.c:414:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(buff) != NNTP_ARTICLE_FOLLOWS_VAL) { data/inn-1.7.2q/backends/nntpget.c:464:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i = atoi(buff); data/inn-1.7.2q/backends/nntpget.c:498:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(Update, "w")) == NULL) { data/inn-1.7.2q/backends/overchan.c:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[SPOOLNAMEBUFF]; data/inn-1.7.2q/backends/overchan.c:107:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(file, O_WRONLY | O_CREAT | O_APPEND, ARTFILE_MODE)) < 0) { data/inn-1.7.2q/backends/rcompress.c:37:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern char *memcpy(); data/inn-1.7.2q/backends/rcompress.c:55:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fakelist[2]; data/inn-1.7.2q/backends/rcompress.c:106:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)&server.sin_addr, (char *)*ap, (int)hp->h_length); data/inn-1.7.2q/backends/shlock.c:32:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/shlock.c:35:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(name, O_RDONLY)) < 0) { data/inn-1.7.2q/backends/shlock.c:55:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pid = (PID_T) atol(buff); data/inn-1.7.2q/backends/shlock.c:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[BUFSIZ]; data/inn-1.7.2q/backends/shlock.c:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/backends/shlock.c:131:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pid = (PID_T) atol(optarg); data/inn-1.7.2q/backends/shlock.c:149:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(tmp, "shlock%ld", (long)getpid()); data/inn-1.7.2q/backends/shlock.c:152:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). while ((fd = open(tmp, O_RDWR | O_CREAT | O_EXCL, 0644)) < 0) data/inn-1.7.2q/backends/shlock.c:171:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld\n", (long) pid); data/inn-1.7.2q/backends/shrinkfile.c:47:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/backends/shrinkfile.c:57:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open(buff, O_RDWR | O_CREAT | O_EXCL | O_TRUNC, 0600)) < 0) { data/inn-1.7.2q/backends/shrinkfile.c:160:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ + 1]; data/inn-1.7.2q/backends/shrinkfile.c:176:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(name, "w")) == NULL) { data/inn-1.7.2q/backends/shrinkfile.c:244:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(name, "w")) == NULL) { data/inn-1.7.2q/backends/shrinkfile.c:385:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(p, "r")) == NULL) { data/inn-1.7.2q/config/subst.c:57:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[30]; data/inn-1.7.2q/config/subst.c:61:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Error code %d\n", errno); data/inn-1.7.2q/config/subst.c:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[2]; \ data/inn-1.7.2q/config/subst.c:240:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f1 = fopen(n1, "r")) == NULL) data/inn-1.7.2q/config/subst.c:242:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f2 = fopen(n2, "r")) == NULL) { data/inn-1.7.2q/config/subst.c:373:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char new[FNAMESIZE]; data/inn-1.7.2q/config/subst.c:374:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char old[FNAMESIZE]; data/inn-1.7.2q/config/subst.c:375:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[LINESIZE]; data/inn-1.7.2q/config/subst.c:386:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(new, "substtmp.new"); data/inn-1.7.2q/config/subst.c:387:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(old, "substtmp.old"); data/inn-1.7.2q/config/subst.c:397:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((in = fopen(f, "r")) == NULL) { data/inn-1.7.2q/config/subst.c:402:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((temp = fopen(new, "r")) != NULL) { data/inn-1.7.2q/config/subst.c:408:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((temp = fopen(old, "r")) != NULL) { data/inn-1.7.2q/config/subst.c:413:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). temp = fopen(old, "w"); data/inn-1.7.2q/config/subst.c:414:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen(new, "w"); data/inn-1.7.2q/config/subst.c:503:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[LINESIZE]; data/inn-1.7.2q/config/subst.c:504:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[PARAMSIZE]; data/inn-1.7.2q/config/subst.c:530:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(ctlfile, "r")) == NULL) { data/inn-1.7.2q/dbz/dbz.c:292:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char basebuf[SHISTBUF]; /* only needed if _IOFBF exists */ data/inn-1.7.2q/dbz/dbz.c:347:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern char *memcpy(); data/inn-1.7.2q/dbz/dbz.c:353:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). extern int atoi(); data/inn-1.7.2q/dbz/dbz.c:354:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). extern long atol(); data/inn-1.7.2q/dbz/dbz.c:463:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fn, "w"); data/inn-1.7.2q/dbz/dbz.c:482:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fn, "w"); data/inn-1.7.2q/dbz/dbz.c:580:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fn, "r"); data/inn-1.7.2q/dbz/dbz.c:630:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fn, "w"); data/inn-1.7.2q/dbz/dbz.c:647:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fn, "w"); data/inn-1.7.2q/dbz/dbz.c:684:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dirf = fopen(dirfname, "r+"); data/inn-1.7.2q/dbz/dbz.c:686:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dirf = fopen(dirfname, "r"); data/inn-1.7.2q/dbz/dbz.c:703:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pagf = fopen(pagfname, "r+b"); data/inn-1.7.2q/dbz/dbz.c:705:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pagf = fopen(pagfname, "rb"); data/inn-1.7.2q/dbz/dbz.c:736:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). basef = fopen(name, "r"); data/inn-1.7.2q/dbz/dbz.c:779:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bufpagf = fopen(pagfname, (pagronly) ? "rb" : "r+b"); data/inn-1.7.2q/dbz/dbz.c:925:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DBZMAXKEY + 1]; data/inn-1.7.2q/dbz/dbz.c:956:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DBZMAXKEY + 1]; data/inn-1.7.2q/dbz/dbz.c:1037:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). it = fopen(basefname, "r"); data/inn-1.7.2q/dbz/dbz.c:1061:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DBZMAXKEY + 1]; data/inn-1.7.2q/dbz/dbz.c:1113:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy((POINTER)&value, (POINTER)data.dptr, SOF); data/inn-1.7.2q/dbz/dbz.c:1278:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char getbuf[MAXN]; data/inn-1.7.2q/dbz/dbz.c:1304:9: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return(atol(getbuf)); data/inn-1.7.2q/dbz/dbz.c:1621:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[SOF]; data/inn-1.7.2q/dbz/dbz.c:1659:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[SOF]; data/inn-1.7.2q/dbz/dbz.c:1761:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char cmap[MAPSIZE]; /* relies on init to '\0' */ data/inn-1.7.2q/debian/patches/getmodaddr.c:7:30: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). + if (GMAfp == NULL) GMAfp = fopen(_PATH_MODERATORS, "r"); data/inn-1.7.2q/expire/convdate.c:119:15: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). t = (time_t)atol(p); data/inn-1.7.2q/expire/expire.c:161:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fields[5]; data/inn-1.7.2q/expire/expire.c:195:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ngp->Last = atol(fields[1]); data/inn-1.7.2q/expire/expire.c:232:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(Name, Mode)) == NULL) { data/inn-1.7.2q/expire/expire.c:365:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/expire/expire.c:366:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fields[6]; data/inn-1.7.2q/expire/expire.c:485:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expire.c:641:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fields[4]; data/inn-1.7.2q/expire/expire.c:650:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date[20]; data/inn-1.7.2q/expire/expire.c:666:12: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Arrived = atol(fields[1]); data/inn-1.7.2q/expire/expire.c:672:12: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Arrived = atol(fields[1]); data/inn-1.7.2q/expire/expire.c:676:39: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Expires = EQ(p, HIS_NOEXP) ? 0 : atol(p); data/inn-1.7.2q/expire/expire.c:682:39: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Expires = EQ(p, HIS_NOEXP) ? 0 : atol(p); data/inn-1.7.2q/expire/expire.c:684:15: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Posted = atol(q); data/inn-1.7.2q/expire/expire.c:798:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(date, "%lu", (unsigned long)Arrived); data/inn-1.7.2q/expire/expire.c:940:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/expire/expire.c:1014:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). EXPverbose = atoi(optarg); data/inn-1.7.2q/expire/expire.c:1057:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Expiring process %ld", (long)getpid()); data/inn-1.7.2q/expire/expireover.c:184:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:185:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lockfile[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:199:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). lfd = open(lockfile, O_WRONLY | O_TRUNC | O_CREAT, ARTFILE_MODE); data/inn-1.7.2q/expire/expireover.c:208:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(file, O_RDWR)) < 0) { data/inn-1.7.2q/expire/expireover.c:268:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). lp->Article = atol(p); data/inn-1.7.2q/expire/expireover.c:362:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/expire/expireover.c:365:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(SCHEMA, "r")) == NULL) { data/inn-1.7.2q/expire/expireover.c:421:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[10]; data/inn-1.7.2q/expire/expireover.c:530:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(value, "%ld", t); data/inn-1.7.2q/expire/expireover.c:593:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:594:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lockfile[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:649:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). lfd = open(lockfile, O_WRONLY | O_TRUNC | O_CREAT, ARTFILE_MODE); data/inn-1.7.2q/expire/expireover.c:658:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(file, O_RDWR | O_CREAT, ARTFILE_MODE)) < 0) { data/inn-1.7.2q/expire/expireover.c:710:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). lp->Article = atol(p); data/inn-1.7.2q/expire/expireover.c:793:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char group[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:826:23: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LISTappend(List, atol(p)); data/inn-1.7.2q/expire/expireover.c:850:25: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). List.Articles[0] = atol(p); data/inn-1.7.2q/expire/expireover.c:869:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:896:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LISTappend(List, atol(p)); data/inn-1.7.2q/expire/expireover.c:918:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/expireover.c:940:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LISTappend(List, atol(p)); data/inn-1.7.2q/expire/fastrm.c:653:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dotdot = atoi(p + 1); data/inn-1.7.2q/expire/fastrm.c:661:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sortdirs = atoi(p + 1); data/inn-1.7.2q/expire/fastrm.c:667:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cdval = atoi(p + 1); data/inn-1.7.2q/expire/grephistory.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/expire/grephistory.c:130:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Name[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/grephistory.c:138:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(History, "r")) == NULL) { data/inn-1.7.2q/expire/grephistory.c:207:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Name[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/grephistory.c:291:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(History, "r")) == NULL) { data/inn-1.7.2q/expire/makeactive.c:60:15: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || (j = atol(p)) == 0) data/inn-1.7.2q/expire/makeactive.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/expire/makeactive.c:137:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(ACTIVE, "r")) == NULL) { data/inn-1.7.2q/expire/makeactive.c:165:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). lomark = atol(save2); data/inn-1.7.2q/expire/makeactive.c:166:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). himark = atol(save1); data/inn-1.7.2q/expire/makeactive.c:189:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/expire/makehistory.c:69:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/expire/makehistory.c:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[SMBUF]; data/inn-1.7.2q/expire/makehistory.c:245:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)B.Data, (POINTER)p, (SIZE_T)length + 1); data/inn-1.7.2q/expire/makehistory.c:411:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/makehistory.c:413:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char linkbuff[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/makehistory.c:498:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *av[6]; data/inn-1.7.2q/expire/makehistory.c:591:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[SMBUF]; data/inn-1.7.2q/expire/makehistory.c:593:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tv[2]; data/inn-1.7.2q/expire/makehistory.c:636:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). size = atol(optarg); data/inn-1.7.2q/expire/makehistory.c:722:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((out = fopen(TempTextFile ? TempTextFile : TextFile, mode)) == NULL) { data/inn-1.7.2q/expire/makehistory.c:803:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!Update && (out = fopen(TextFile, "w")) == NULL) { data/inn-1.7.2q/expire/newsrequeue.c:65:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char ARTpathbits[256]; data/inn-1.7.2q/expire/newsrequeue.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date[SMBUF]; data/inn-1.7.2q/expire/newsrequeue.c:169:6: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atol(date) < Epoch) data/inn-1.7.2q/expire/newsrequeue.c:185:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((art = fopen(name, "r")) != NULL) data/inn-1.7.2q/expire/newsrequeue.c:791:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[SPOOLNAMEBUFF]; data/inn-1.7.2q/expire/newsrequeue.c:811:24: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Epoch = (long)t - atol(optarg) * 86400L; data/inn-1.7.2q/expire/newsrequeue.c:851:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(History, "r")) == NULL) { data/inn-1.7.2q/expire/prunehistory.c:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/expire/prunehistory.c:135:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((rfp = fopen(History, "r")) == NULL) { data/inn-1.7.2q/expire/prunehistory.c:140:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((wfd = open(History, O_WRONLY)) < 0) { data/inn-1.7.2q/frontends/ctlinnd.c:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *nv[4]; data/inn-1.7.2q/frontends/ctlinnd.c:194:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/ctlinnd.c:214:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ICCsettimeout(atoi(optarg)); data/inn-1.7.2q/frontends/decode.c:30:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char Buffer[4]; data/inn-1.7.2q/frontends/decode.c:41:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b3[3]; data/inn-1.7.2q/frontends/decode.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b13[13]; data/inn-1.7.2q/frontends/decode.c:69:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b3[3]; data/inn-1.7.2q/frontends/decode.c:124:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b12[12]; data/inn-1.7.2q/frontends/decode.c:125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c12[12]; data/inn-1.7.2q/frontends/encode.c:33:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char Buffer[13]; data/inn-1.7.2q/frontends/encode.c:84:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b4[4]; data/inn-1.7.2q/frontends/encode.c:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b3[3]; data/inn-1.7.2q/frontends/feedone.c:64:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/feedone.c:92:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/feedone.c:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mesgid[SMBUF]; data/inn-1.7.2q/frontends/feedone.c:118:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(mesgid, "<%ld@%ld>", data/inn-1.7.2q/frontends/feedone.c:131:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(av[0], "r")) == NULL) data/inn-1.7.2q/frontends/feedone.c:173:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(buff) != i) { data/inn-1.7.2q/frontends/feedone.c:200:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(buff) != i) { data/inn-1.7.2q/frontends/getlist.c:43:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[512 + 1]; data/inn-1.7.2q/frontends/inews.c:124:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN + 2]; data/inn-1.7.2q/frontends/inews.c:146:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(buff) != NNTP_GOODBYE_ACK_VAL) { data/inn-1.7.2q/frontends/inews.c:321:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char localfrom[SMBUF]; data/inn-1.7.2q/frontends/inews.c:323:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/inews.c:324:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char remotefrom[SMBUF]; data/inn-1.7.2q/frontends/inews.c:330:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || atoi(buff) != NNTP_HEAD_FOLLOWS_VAL) { data/inn-1.7.2q/frontends/inews.c:420:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[SMBUF]; data/inn-1.7.2q/frontends/inews.c:484:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/inews.c:485:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outbuff[SMBUF]; data/inn-1.7.2q/frontends/inews.c:577:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/inews.c:578:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char from[SMBUF]; data/inn-1.7.2q/frontends/inews.c:628:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d %3.3s %d %02d:%02d:%02d %c%04d", data/inn-1.7.2q/frontends/inews.c:738:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d", linecount); data/inn-1.7.2q/frontends/inews.c:772:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/inews.c:778:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(buff, "r")) == NULL) { data/inn-1.7.2q/frontends/inews.c:884:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/inews.c:952:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/inews.c:1095:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(buff); data/inn-1.7.2q/frontends/inews.c:1112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/inn-1.7.2q/frontends/inews.c:1113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/inews.c:1121:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open(temp, O_WRONLY | O_CREAT, BATCHFILE_MODE)) < 0 data/inn-1.7.2q/frontends/inews.c:1181:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN + 2]; data/inn-1.7.2q/frontends/inews.c:1182:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char SpoolMessage[NNTP_STRLEN + 2]; data/inn-1.7.2q/frontends/inews.c:1277:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i = atoi(buff); data/inn-1.7.2q/frontends/inews.c:1286:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((j = atoi(buff)) != NNTP_BAD_COMMAND_VAL) data/inn-1.7.2q/frontends/inews.c:1416:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(buff) != NNTP_POSTEDOK_VAL) { data/inn-1.7.2q/frontends/rnews.c:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/rnews.c:206:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(buff, "w")) == NULL) { data/inn-1.7.2q/frontends/rnews.c:231:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/rnews.c:236:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[40]; data/inn-1.7.2q/frontends/rnews.c:285:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buff)) { data/inn-1.7.2q/frontends/rnews.c:297:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(_PATH_RNEWS_DUP_LOG, "a")) != NULL) { data/inn-1.7.2q/frontends/rnews.c:322:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi(buff)) { data/inn-1.7.2q/frontends/rnews.c:483:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[sizeof _PATH_RNEWSPROGS + 1 + SMBUF + 1]; data/inn-1.7.2q/frontends/rnews.c:486:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/rnews.c:542:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). artsize = atoi(&buff[9]); data/inn-1.7.2q/frontends/rnews.c:613:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/rnews.c:614:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[10]; data/inn-1.7.2q/frontends/rnews.c:644:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(InputFile, O_RDONLY)) < 0) { data/inn-1.7.2q/frontends/rnews.c:698:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/inn-1.7.2q/frontends/rnews.c:699:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/rnews.c:707:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((spfd = open(temp, O_WRONLY | O_CREAT, BATCHFILE_MODE)) < 0) { data/inn-1.7.2q/frontends/rnews.c:815:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/frontends/sys2nf.c:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/frontends/sys2nf.c:37:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(act, "r")) == NULL) { data/inn-1.7.2q/frontends/sys2nf.c:244:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[256]; data/inn-1.7.2q/frontends/sys2nf.c:274:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). for (F = fopen(TEMPFILE, "w"); p && *p == '#'; p = *sites++) data/inn-1.7.2q/frontends/sys2nf.c:315:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(TEMPFILE, "r")) == NULL) data/inn-1.7.2q/include/clibrary.h:112:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). extern long atol(); data/inn-1.7.2q/include/configdata.h:119:16: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. #define FORK() vfork() data/inn-1.7.2q/include/mymemory.h:7:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern POINTER memcpy(); data/inn-1.7.2q/include/myserver.h:35:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char ser_line[NNTP_STRLEN + 2]; data/inn-1.7.2q/innd/art.c:81:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char ARTcclass[256]; data/inn-1.7.2q/innd/art.c:159:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/art.c:167:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(SCHEMA, "r")) == NULL) data/inn-1.7.2q/innd/art.c:361:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(name, O_RDONLY)) < 0) data/inn-1.7.2q/innd/art.c:467:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *NULLPATH[1] = { NULL }; data/inn-1.7.2q/innd/art.c:538:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytesbuff[SMBUF]; data/inn-1.7.2q/innd/art.c:550:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, ARTFILE_MODE)) < 0) { data/inn-1.7.2q/innd/art.c:574:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(Data->Lines, "Lines: %d\n", Data->LinesValue); data/inn-1.7.2q/innd/art.c:603:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(Data->Size, "%ld", Data->SizeValue); data/inn-1.7.2q/innd/art.c:643:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(bytesbuff, "Bytes: %ld\n", size); data/inn-1.7.2q/innd/art.c:679:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SMBUF]; data/inn-1.7.2q/innd/art.c:775:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)hp->Value, (POINTER)p, (SIZE_T)i); data/inn-1.7.2q/innd/art.c:877:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SMBUF]; data/inn-1.7.2q/innd/art.c:952:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (*p && (delta = i - atoi(p)) != 0 && abs(delta) > LINECOUNT_FUZZ) { data/inn-1.7.2q/innd/art.c:1079:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/art.c:1125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF+16]; data/inn-1.7.2q/innd/art.c:1223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/art.c:1224:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *av[6]; data/inn-1.7.2q/innd/art.c:1520:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ngp->Filenum = atol(q + 1); data/inn-1.7.2q/innd/art.c:1727:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/innd/art.c:1742:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char linkname[SPOOLNAMEBUFF]; data/inn-1.7.2q/innd/art.c:1748:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ControlWord[SMBUF]; data/inn-1.7.2q/innd/art.c:1782:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(Data.TimeReceived, "%lu", Now.time); data/inn-1.7.2q/innd/cc.c:151:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[32]; data/inn-1.7.2q/innd/cc.c:156:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Unknown %d", Mode); data/inn-1.7.2q/innd/cc.c:239:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Data.Arrived = atol(av[1]); data/inn-1.7.2q/innd/cc.c:242:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Data.Expires = atol(av[2]); data/inn-1.7.2q/innd/cc.c:245:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Data.Posted = atol(av[3]); data/inn-1.7.2q/innd/cc.c:474:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(CCreply.Data, "1 Found %d errors -- see syslog", errors); data/inn-1.7.2q/innd/cc.c:752:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/innd/cc.c:766:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(buff, "0 Server ")); data/inn-1.7.2q/innd/cc.c:771:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, "Unknown %d", Mode); data/inn-1.7.2q/innd/cc.c:775:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "running")); data/inn-1.7.2q/innd/cc.c:778:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "paused ")); data/inn-1.7.2q/innd/cc.c:782:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "throttled ")); data/inn-1.7.2q/innd/cc.c:788:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "Rejecting ")); data/inn-1.7.2q/innd/cc.c:792:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "Allowing remote connections")); data/inn-1.7.2q/innd/cc.c:814:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "Not reserved")); data/inn-1.7.2q/innd/cc.c:818:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "Readers ")); data/inn-1.7.2q/innd/cc.c:820:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "follow ")); data/inn-1.7.2q/innd/cc.c:822:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "separate ")); data/inn-1.7.2q/innd/cc.c:824:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "enabled")); data/inn-1.7.2q/innd/cc.c:832:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "Tcl filtering ")); data/inn-1.7.2q/innd/cc.c:834:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "enabled")); data/inn-1.7.2q/innd/cc.c:836:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "disabled")); data/inn-1.7.2q/innd/cc.c:840:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "Perl filtering ")); data/inn-1.7.2q/innd/cc.c:842:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "enabled")); data/inn-1.7.2q/innd/cc.c:844:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "disabled")); data/inn-1.7.2q/innd/cc.c:886:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((cp = CHANfromdescriptor(atoi(p))) == NULL) data/inn-1.7.2q/innd/cc.c:948:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(TIMES, O_WRONLY | O_APPEND | O_CREAT, 0664)) < 0) { data/inn-1.7.2q/innd/cc.c:1039:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Cutoff = atoi(p) * 24 * 60 * 60; data/inn-1.7.2q/innd/cc.c:1043:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxIncoming = atoi(p); data/inn-1.7.2q/innd/cc.c:1047:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LargestArticle = atol(p); data/inn-1.7.2q/innd/cc.c:1055:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxOutgoing = atoi(p); data/inn-1.7.2q/innd/cc.c:1059:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). TimeOut.tv_sec = atol(p); data/inn-1.7.2q/innd/cc.c:1063:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). RemoteLimit = atoi(p); data/inn-1.7.2q/innd/cc.c:1067:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). RemoteTotal = atoi(p); data/inn-1.7.2q/innd/cc.c:1073:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). RemoteTimer = (time_t) atoi(p); data/inn-1.7.2q/innd/cc.c:1451:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). else if ((s = atoi(p)) <= 0) data/inn-1.7.2q/innd/cc.c:1536:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((cp = CHANfromdescriptor(atoi(p))) == NULL) data/inn-1.7.2q/innd/cc.c:1590:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BIG_BUFFER + 2]; data/inn-1.7.2q/innd/cc.c:1591:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char copy[BIG_BUFFER + 2]; data/inn-1.7.2q/innd/cc.c:1592:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[SC_MAXFIELDS + 2]; data/inn-1.7.2q/innd/cc.c:1715:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tbuff,&protocol,sizeof (protocol)) ; data/inn-1.7.2q/innd/cc.c:1719:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tbuff,&bufflen,sizeof (bufflen)) ; data/inn-1.7.2q/innd/cc.c:1739:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open(argv[0], O_WRONLY | O_NDELAY)) < 0) data/inn-1.7.2q/innd/cc.c:1807:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open(CCpath, O_RDWR)) < 0) { data/inn-1.7.2q/innd/chan.c:57:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)bp->Data, (POINTER)p, (SIZE_T)length); data/inn-1.7.2q/innd/chan.c:278:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SMBUF]; data/inn-1.7.2q/innd/chan.c:286:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "?%d(#%d@%d)?", cp->Type, cp->fd, cp - CHANtable); data/inn-1.7.2q/innd/chan.c:289:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "any:%d", cp->fd); data/inn-1.7.2q/innd/chan.c:292:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "free:%d", cp->fd); data/inn-1.7.2q/innd/chan.c:295:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "remconn:%d", cp->fd); data/inn-1.7.2q/innd/chan.c:306:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "localconn:%d", cp->fd); data/inn-1.7.2q/innd/chan.c:309:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "control:%d", cp->fd); data/inn-1.7.2q/innd/his.c:28:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((HISwritefp = fopen(HIShistpath, "a")) == NULL) { data/inn-1.7.2q/innd/his.c:35:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((HISreadfd = open(HIShistpath, O_RDONLY)) < 0) { data/inn-1.7.2q/innd/icd.c:33:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)(iovp)->iov_base, (POINTER)base, \ data/inn-1.7.2q/innd/icd.c:171:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(BACKUP, O_WRONLY | O_TRUNC | O_CREAT, 0664)) < 0) { data/inn-1.7.2q/innd/icd.c:189:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(ICDactpath, O_WRONLY | O_TRUNC | O_CREAT, ARTFILE_MODE); data/inn-1.7.2q/innd/icd.c:267:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/icd.c:342:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ICDactfd = open(ICDactpath, O_RDWR)) < 0) { data/inn-1.7.2q/innd/innd.c:135:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[80]; data/inn-1.7.2q/innd/innd.c:146:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 4], "..."); data/inn-1.7.2q/innd/innd.c:151:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 14], "..."); data/inn-1.7.2q/innd/innd.c:157:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 17], "..."); data/inn-1.7.2q/innd/innd.c:159:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 4], "..."); data/inn-1.7.2q/innd/innd.c:409:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[sizeof LOG + sizeof ERRLOG + 4 + 1]; data/inn-1.7.2q/innd/innd.c:463:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/innd.c:588:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/innd.c:650:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Cutoff = atoi(optarg) * 24 * 60 * 60; data/inn-1.7.2q/innd/innd.c:662:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). RemoteLimit = atoi(optarg); data/inn-1.7.2q/innd/innd.c:665:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxIncoming = atoi(optarg); data/inn-1.7.2q/innd/innd.c:668:23: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LargestArticle = atol(optarg); data/inn-1.7.2q/innd/innd.c:697:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MaxOutgoing = atoi(optarg); data/inn-1.7.2q/innd/innd.c:703:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(optarg); data/inn-1.7.2q/innd/innd.c:719:23: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). TimeOut.tv_sec = atol(optarg); data/inn-1.7.2q/innd/innd.c:722:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). RemoteTotal = atoi(optarg); data/inn-1.7.2q/innd/innd.c:734:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). RemoteTimer = atoi(optarg); data/inn-1.7.2q/innd/innd.c:782:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open("/dev/null", O_RDWR)) < 0) { data/inn-1.7.2q/innd/innd.c:819:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((i = open("/dev/tty", O_RDWR)) >= 0) { data/inn-1.7.2q/innd/innd.c:833:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((Log = fopen(LOG, "a")) == NULL) { data/inn-1.7.2q/innd/innd.c:844:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((Errlog = fopen(ERRLOG, "a")) == NULL) { data/inn-1.7.2q/innd/innd.c:872:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(PID, "r")) != NULL) { data/inn-1.7.2q/innd/innd.c:874:22: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). && ((pid = (PID_T) atol(buff)) > 0) data/inn-1.7.2q/innd/innd.c:910:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(PID, "w")) == NULL) { data/inn-1.7.2q/innd/innd.h:230:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FileFlags[FEED_MAXFLAGS + 1]; data/inn-1.7.2q/innd/innd.h:285:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Lines[SMBUF]; data/inn-1.7.2q/innd/innd.h:287:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Size[SMBUF]; data/inn-1.7.2q/innd/innd.h:289:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Name[SPOOLNAMEBUFF]; data/inn-1.7.2q/innd/innd.h:291:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char TimeReceived[33]; data/inn-1.7.2q/innd/innd.h:348:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)&bp_->Data[i_], (POINTER)p_parm, (SIZE_T)l_); \ data/inn-1.7.2q/innd/inndstart.c:70:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pflag[SMBUF]; data/inn-1.7.2q/innd/inndstart.c:71:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/innd/inndstart.c:110:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(pflag, "-p%d", i); data/inn-1.7.2q/innd/nc.c:67:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char *NCfreelist[5]; /* Free string list */ data/inn-1.7.2q/innd/nc.c:243:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(response) == NNTP_TOOKIT_VAL) { data/inn-1.7.2q/innd/nc.c:246:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[4]; data/inn-1.7.2q/innd/nc.c:247:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d", NNTP_OK_RECID_VAL); data/inn-1.7.2q/innd/nc.c:400:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF+16]; data/inn-1.7.2q/innd/nc.c:650:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). wp->Size = atoi(p); data/inn-1.7.2q/innd/nc.c:747:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[16]; data/inn-1.7.2q/innd/nc.c:748:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d StreamOK.", NNTP_OK_STREAM_VAL); data/inn-1.7.2q/innd/nc.c:869:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/nc.c:923:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/nc.c:924:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *av[2]; data/inn-1.7.2q/innd/nc.c:1050:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[4]; data/inn-1.7.2q/innd/nc.c:1051:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d", NNTP_ERR_FAILID_VAL); data/inn-1.7.2q/innd/nc.c:1140:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d Article exceeds local limit of %ld bytes", data/inn-1.7.2q/innd/nc.c:1201:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF], buff2[SMBUF]; data/inn-1.7.2q/innd/nc.c:1209:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(buff, O_WRONLY|O_CREAT|O_EXCL, ARTFILE_MODE); data/inn-1.7.2q/innd/nc.c:1286:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)bp->Data, (POINTER)&bp->Data[cp->Rest], (SIZE_T)bp->Used); data/inn-1.7.2q/innd/nc.c:1348:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/newsfeeds.c:252:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->MaxSize = atol(p); data/inn-1.7.2q/innd/newsfeeds.c:256:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->MinSize = atol(p); data/inn-1.7.2q/innd/newsfeeds.c:269:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->StartWriting = atoi(p); data/inn-1.7.2q/innd/newsfeeds.c:273:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->StopWriting = atoi(p); data/inn-1.7.2q/innd/newsfeeds.c:288:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->Groupcount = atoi(p); data/inn-1.7.2q/innd/newsfeeds.c:294:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->Hops = atoi(p); data/inn-1.7.2q/innd/newsfeeds.c:300:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->Flushpoint = atol(p); data/inn-1.7.2q/innd/newsfeeds.c:313:23: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sp->StartSpooling = atol(p); data/inn-1.7.2q/innd/ng.c:123:17: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ngp->Last = atol(ngp->LastString); data/inn-1.7.2q/innd/ng.c:361:14: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). himark = atol(f2); data/inn-1.7.2q/innd/ng.c:369:15: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || (l = atol(p)) == 0) data/inn-1.7.2q/innd/ng.c:378:9: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). l = atol(f2); data/inn-1.7.2q/innd/ng.c:388:9: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). l = atol(f3); data/inn-1.7.2q/innd/perl.c:44:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[256]; data/inn-1.7.2q/innd/rc.c:27:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((POINTER)dest, (POINTER)src, (SIZE_T)sizeof (INADDR)) data/inn-1.7.2q/innd/rc.c:172:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/rc.c:398:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/rc.c:426:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(filename, "r")) == NULL) { data/inn-1.7.2q/innd/rc.c:554:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[sizeof _PATH_INNDHOSTS + sizeof ".nolimit"]; data/inn-1.7.2q/innd/rc.c:573:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SMBUF]; data/inn-1.7.2q/innd/rc.c:631:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/rc.c:763:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char optbuf[BUFSIZ / 3], *cp; data/inn-1.7.2q/innd/rc.c:764:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lbuf[BUFSIZ], *lp; data/inn-1.7.2q/innd/rc.c:777:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(lp, " %2.2x", *cp); data/inn-1.7.2q/innd/site.c:51:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/innd/site.c:55:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). i = open(name, O_APPEND | O_CREAT | O_WRONLY, BATCHFILE_MODE); data/inn-1.7.2q/innd/site.c:59:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). i = open(buff, O_APPEND | O_CREAT | O_WRONLY, BATCHFILE_MODE); data/inn-1.7.2q/innd/site.c:188:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/innd/site.c:192:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(name, O_APPEND | O_CREAT | O_WRONLY, BATCHFILE_MODE); data/inn-1.7.2q/innd/site.c:196:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(buff, O_APPEND | O_CREAT | O_WRONLY, BATCHFILE_MODE); data/inn-1.7.2q/innd/site.c:337:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pbuff[12]; data/inn-1.7.2q/innd/site.c:404:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pbuff, "%ld", Data->Posted); data/inn-1.7.2q/innd/site.c:469:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/innd/site.c:517:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(Data->Name, O_RDONLY); data/inn-1.7.2q/innd/site.c:699:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(sp->Param, O_APPEND | O_CREAT | O_WRONLY, BATCHFILE_MODE); data/inn-1.7.2q/innd/site.c:1095:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/innd/site.c:1140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/innd/site.c:1159:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, "unknown feed type %d", sp->Type); data/inn-1.7.2q/innd/site.c:1164:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "file")); data/inn-1.7.2q/innd/site.c:1166:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, " buffered(%ld)", sp->Buffer.Left); data/inn-1.7.2q/innd/site.c:1170:18: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, " no channel?")); data/inn-1.7.2q/innd/site.c:1172:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, " open fd=%d, in mem %ld", cp->fd, cp->Out.Left); data/inn-1.7.2q/innd/site.c:1177:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "channel")); data/inn-1.7.2q/innd/site.c:1180:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "exploder")); data/inn-1.7.2q/innd/site.c:1183:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, " pid=%ld", (long) sp->pid); data/inn-1.7.2q/innd/site.c:1187:18: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, " spooling")); data/inn-1.7.2q/innd/site.c:1189:18: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, " no channel?")); data/inn-1.7.2q/innd/site.c:1191:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, " fd=%d, in mem %ld", cp->fd, cp->Out.Left); data/inn-1.7.2q/innd/site.c:1196:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "recursive funnel")); data/inn-1.7.2q/innd/site.c:1199:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "log only")); data/inn-1.7.2q/innd/site.c:1202:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "program")); data/inn-1.7.2q/innd/site.c:1204:18: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, " with names")); data/inn-1.7.2q/innd/site.c:1233:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, "\tChannel created %.12s", data/inn-1.7.2q/innd/site.c:1236:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, ", last active %.12s\n", data/inn-1.7.2q/innd/tcl.c:163:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/inn-1.7.2q/innd/tcl.c:165:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%08x", data/inn-1.7.2q/lib/clientactive.c:15:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char CApathname[sizeof _PATH_TEMPACTIVE]; data/inn-1.7.2q/lib/clientactive.c:30:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((CAfp = fopen(_PATH_CLIENTACTIVE, "r")) != NULL) { data/inn-1.7.2q/lib/clientactive.c:50:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/lib/clientactive.c:56:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(pathname, "w")) == NULL) data/inn-1.7.2q/lib/clientactive.c:84:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(pathname, "r"); data/inn-1.7.2q/lib/clientlib.c:17:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ser_line[NNTP_STRLEN + 2]; data/inn-1.7.2q/lib/clientlib.c:29:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[256]; data/inn-1.7.2q/lib/clientlib.c:47:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line2[NNTP_STRLEN]; data/inn-1.7.2q/lib/clientlib.c:55:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(ser_line); data/inn-1.7.2q/lib/clientlib.c:62:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(line2) != NNTP_BAD_COMMAND_VAL) data/inn-1.7.2q/lib/clientlib.c:66:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(ser_line); data/inn-1.7.2q/lib/clientlib.c:90:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(ser_line) == response) { data/inn-1.7.2q/lib/clientlib.c:153:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/lib/defdist.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/lib/defdist.c:43:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[sizeof _PATH_TEMPACTIVE + 10]; data/inn-1.7.2q/lib/defdist.c:46:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(_PATH_DISTPATS, "r")) != NULL) data/inn-1.7.2q/lib/defdist.c:98:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ep->Weight = atoi(buff); data/inn-1.7.2q/lib/defdist.c:172:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/lib/genid.c:21:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SMBUF]; data/inn-1.7.2q/lib/genid.c:24:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sec32[10]; data/inn-1.7.2q/lib/genid.c:25:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pid32[10]; data/inn-1.7.2q/lib/getconfig.c:14:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char ConfigBuff[SMBUF] = ""; data/inn-1.7.2q/lib/getconfig.c:27:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(_PATH_CONFIG, "r")) != NULL) { data/inn-1.7.2q/lib/getfqdn.c:19:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SMBUF]; data/inn-1.7.2q/lib/getfqdn.c:25:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[SMBUF + 2]; data/inn-1.7.2q/lib/getmodaddr.c:15:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char GMApathname[sizeof _PATH_TEMPMODERATORS]; data/inn-1.7.2q/lib/getmodaddr.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/lib/getmodaddr.c:50:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(pathname, "w")) == NULL) data/inn-1.7.2q/lib/getmodaddr.c:78:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(pathname, "r"); data/inn-1.7.2q/lib/getmodaddr.c:100:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char address[SMBUF]; data/inn-1.7.2q/lib/getmodaddr.c:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/lib/getmodaddr.c:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[SMBUF]; data/inn-1.7.2q/lib/getmodaddr.c:115:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). GMAfp = fopen(_PATH_MODERATORS, "r"); data/inn-1.7.2q/lib/getopt.c:12:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[2]; \ data/inn-1.7.2q/lib/inet_ntoa.c:61:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[18]; data/inn-1.7.2q/lib/inet_ntoa.c:65:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d.%d.%d.%d", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3])); data/inn-1.7.2q/lib/inndcomm.c:31:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char ICCsockname[sizeof _PATH_TEMPSOCK]; data/inn-1.7.2q/lib/inndcomm.c:104:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ICCfd = open(ICCsockname, O_RDWR)) < 0) { data/inn-1.7.2q/lib/inndcomm.c:145:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/lib/inndcomm.c:148:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(_PATH_SERVERPID, "r")) != NULL) { data/inn-1.7.2q/lib/inndcomm.c:150:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pid = (PID_T) atol(buff); data/inn-1.7.2q/lib/inndcomm.c:244:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buff,&protocol,sizeof (protocol)) ; data/inn-1.7.2q/lib/inndcomm.c:247:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buff,&rlen,sizeof (rlen)) ; data/inn-1.7.2q/lib/inndcomm.c:260:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(_PATH_NEWSCONTROL, O_WRONLY)) < 0) { data/inn-1.7.2q/lib/inndcomm.c:384:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i = atoi(buff); data/inn-1.7.2q/lib/inndcomm.c:405:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[2]; data/inn-1.7.2q/lib/inndcomm.c:420:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[2]; data/inn-1.7.2q/lib/inndcomm.c:435:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[2]; data/inn-1.7.2q/lib/inndcomm.c:450:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[2]; data/inn-1.7.2q/lib/innvers.c:24:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[SIZE + 1]; data/inn-1.7.2q/lib/innvers.c:30:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. p += strlen(strcpy(p, "INN")); data/inn-1.7.2q/lib/localopen.c:34:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mybuff[NNTP_STRLEN + 2]; data/inn-1.7.2q/lib/localopen.c:68:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). j = atoi(buff); data/inn-1.7.2q/lib/lock.c:31:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[72]; data/inn-1.7.2q/lib/lock.c:48:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[72]; data/inn-1.7.2q/lib/lock.c:56:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "ctlinnd go"); data/inn-1.7.2q/lib/malloc.c:347:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)bcopy(cp, res, (int)((nbytes < onb) ? nbytes : onb)); data/inn-1.7.2q/lib/memcpy.c:66:1: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst0, src0, length) data/inn-1.7.2q/lib/memcpy.c:73:1: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(src0, dst0, length) data/inn-1.7.2q/lib/memmove.c:66:1: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst0, src0, length) data/inn-1.7.2q/lib/memmove.c:73:1: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(src0, dst0, length) data/inn-1.7.2q/lib/perl.c:115:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[2] ; data/inn-1.7.2q/lib/perl.c:156:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv [3] ; data/inn-1.7.2q/lib/qio.c:62:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(name, O_RDONLY)) < 0) data/inn-1.7.2q/lib/radix32.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[10]; data/inn-1.7.2q/lib/readin.c:85:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(name, O_RDONLY)) < 0) data/inn-1.7.2q/lib/remopen.c:42:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fakelist[2]; data/inn-1.7.2q/lib/remopen.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mybuff[NNTP_STRLEN + 2]; data/inn-1.7.2q/lib/remopen.c:87:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). server.sin_port = htons(atoi(nntp_port)); data/inn-1.7.2q/lib/remopen.c:122:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). j = atoi(buff); data/inn-1.7.2q/lib/remopen.c:157:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(errbuff, "What server?"); data/inn-1.7.2q/lib/remopen.c:189:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(buff, "Text unavailable"); data/inn-1.7.2q/lib/sendpass.c:27:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/lib/sendpass.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char input[SMBUF]; data/inn-1.7.2q/lib/sendpass.c:40:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(_PATH_NNTPPASS, "r")) == NULL) data/inn-1.7.2q/lib/sendpass.c:74:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || atoi(input) != NNTP_AUTH_NEXT_VAL) data/inn-1.7.2q/lib/sendpass.c:84:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || atoi(input) != NNTP_AUTH_OK_VAL) data/inn-1.7.2q/lib/strerror.c:22:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[30]; data/inn-1.7.2q/lib/strerror.c:26:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Error code %d\n", e); data/inn-1.7.2q/lib/wildmat.c:149:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char p[80]; data/inn-1.7.2q/lib/wildmat.c:150:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[80]; data/inn-1.7.2q/lib/xfopena.c:22:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(p, O_WRONLY | O_APPEND | O_CREAT, 0666); data/inn-1.7.2q/nnrpd/article.c:81:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/nnrpd/article.c:84:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(SCHEMA, "r")) == NULL) data/inn-1.7.2q/nnrpd/article.c:166:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char save_artid[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/article.c:171:21: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (save_artnum == atol(name) && QIOrewind(ARTqp) != -1) { data/inn-1.7.2q/nnrpd/article.c:189:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). save_artnum = atol(name); data/inn-1.7.2q/nnrpd/article.c:218:8: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *ap = atol(q); data/inn-1.7.2q/nnrpd/article.c:357:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN + 2]; data/inn-1.7.2q/nnrpd/article.c:375:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || atoi(buff) != NNTP_NOTHING_FOLLOWS_VAL) data/inn-1.7.2q/nnrpd/article.c:423:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/nnrpd/article.c:424:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char idbuff[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/article.c:484:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", ARTnumbers[ARTindex]); data/inn-1.7.2q/nnrpd/article.c:500:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", ARTnumbers[ARTindex]); data/inn-1.7.2q/nnrpd/article.c:516:29: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ARTindex = ARTfind((ARTNUM)atol(buff)); data/inn-1.7.2q/nnrpd/article.c:528:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/article.c:529:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char idbuff[SMBUF]; data/inn-1.7.2q/nnrpd/article.c:569:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", ARTnumbers[ARTindex]); data/inn-1.7.2q/nnrpd/article.c:577:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", ARTnumbers[ARTindex]); data/inn-1.7.2q/nnrpd/article.c:584:29: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ARTindex = ARTfind((ARTNUM)atol(buff)); data/inn-1.7.2q/nnrpd/article.c:598:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[40]; data/inn-1.7.2q/nnrpd/article.c:624:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%d", data/inn-1.7.2q/nnrpd/article.c:657:23: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rp->Low = rp->High = atol(av[1]); data/inn-1.7.2q/nnrpd/article.c:663:15: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rp->Low = atol(av[1]); data/inn-1.7.2q/nnrpd/article.c:665:32: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (*p == '\0' || (rp->High = atol(p)) < rp->Low) data/inn-1.7.2q/nnrpd/article.c:745:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/article.c:796:49: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). for ( ; OVERarticle < artnum; OVERarticle = atol(OVERline)) data/inn-1.7.2q/nnrpd/article.c:831:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[10]; data/inn-1.7.2q/nnrpd/article.c:937:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(value, "%ld", t); data/inn-1.7.2q/nnrpd/article.c:995:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/article.c:1050:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", i); data/inn-1.7.2q/nnrpd/article.c:1074:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/article.c:1101:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", i); data/inn-1.7.2q/nnrpd/article.c:1126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/article.c:1183:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "%ld", i); data/inn-1.7.2q/nnrpd/commands.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[BIG_BUFFER], *fields[6], *p; data/inn-1.7.2q/nnrpd/commands.c:190:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char User[30]; data/inn-1.7.2q/nnrpd/commands.c:191:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char Password[30]; data/inn-1.7.2q/nnrpd/commands.c:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char accesslist[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/commands.c:197:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(PERMuser, "<none>"); data/inn-1.7.2q/nnrpd/commands.c:302:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *grplist[2]; data/inn-1.7.2q/nnrpd/commands.c:458:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *grplist[2]; data/inn-1.7.2q/nnrpd/commands.c:507:6: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atol(q) < date || (gp = GRPfind(p)) == NULL) data/inn-1.7.2q/nnrpd/commands.c:557:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char idbuff[SMBUF]; data/inn-1.7.2q/nnrpd/group.c:146:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gp->High = atol(p); data/inn-1.7.2q/nnrpd/group.c:155:12: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gp->Low = atol(q); data/inn-1.7.2q/nnrpd/group.c:267:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *grplist[2]; data/inn-1.7.2q/nnrpd/group.c:269:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/group.c:357:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/loadave.c:21:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ProcLoadAve=fopen("/proc/loadavg", "r"))==NULL) data/inn-1.7.2q/nnrpd/loadave.c:52:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open("/dev/kmem", 0, 0); data/inn-1.7.2q/nnrpd/misc.c:194:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[6 + 6 + 1]; data/inn-1.7.2q/nnrpd/misc.c:269:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char path[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/misc.c:274:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/misc.c:310:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((hfp = fopen(HISTORY, "r")) == NULL) { data/inn-1.7.2q/nnrpd/misc.c:418:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[BUFSIZ]; data/inn-1.7.2q/nnrpd/newnews.c:26:50: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ((p = strchr(line, HIS_FIELDSEP)) == NULL ? 0 : atol(++p)) data/inn-1.7.2q/nnrpd/newnews.c:41:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/newnews.c:198:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/newnews.c:252:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(HISTORY, "r")) == NULL) { data/inn-1.7.2q/nnrpd/nnrpd.c:220:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/nnrpd/nnrpd.c:236:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BUFSIZ]; data/inn-1.7.2q/nnrpd/nnrpd.c:319:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/nnrpd.c:320:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fields[5]; data/inn-1.7.2q/nnrpd/nnrpd.c:322:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(ACCESS, "r")) == NULL) { data/inn-1.7.2q/nnrpd/nnrpd.c:387:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/nnrpd/nnrpd.c:400:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(ClientHost, "stdin"); data/inn-1.7.2q/nnrpd/nnrpd.c:484:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[2048]; data/inn-1.7.2q/nnrpd/nnrpd.c:545:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/nnrpd/nnrpd.c:552:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char accesslist[BIG_BUFFER]; data/inn-1.7.2q/nnrpd/nnrpd.h:95:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char ClientHost[SMBUF]; data/inn-1.7.2q/nnrpd/nnrpd.h:96:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char LogName[256] ; data/inn-1.7.2q/nnrpd/nnrpd.h:101:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char PERMpass[20]; data/inn-1.7.2q/nnrpd/nnrpd.h:102:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char PERMuser[20]; data/inn-1.7.2q/nnrpd/nnrpd.h:112:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. EXTERN char GRPlast[SPOOLNAMEBUFF]; data/inn-1.7.2q/nnrpd/perl.c:44:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[256]; data/inn-1.7.2q/nnrpd/post.c:21:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. STATIC char Error[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:115:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[80]; data/inn-1.7.2q/nnrpd/post.c:126:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 4], "..."); data/inn-1.7.2q/nnrpd/post.c:131:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 14], "..."); data/inn-1.7.2q/nnrpd/post.c:137:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 17], "..."); data/inn-1.7.2q/nnrpd/post.c:139:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(&buff[sizeof buff - 4], "..."); data/inn-1.7.2q/nnrpd/post.c:225:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(Error, "Article has no body -- just headers"); data/inn-1.7.2q/nnrpd/post.c:313:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char datebuff[40]; data/inn-1.7.2q/nnrpd/post.c:314:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char orgbuff[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:315:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char linebuff[40]; data/inn-1.7.2q/nnrpd/post.c:316:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char sendbuff[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:317:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char mimeversion[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:318:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char mimetype[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:319:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char mimeencoding[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:362:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(datebuff, "%d %3.3s %d %02d:%02d:%02d GMT", data/inn-1.7.2q/nnrpd/post.c:479:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(linebuff, "%d", linecount); data/inn-1.7.2q/nnrpd/post.c:552:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:616:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char distbuff[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:622:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *grplist[2]; data/inn-1.7.2q/nnrpd/post.c:712:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN]; data/inn-1.7.2q/nnrpd/post.c:740:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(buff); data/inn-1.7.2q/nnrpd/post.c:752:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char CANTSPOOL[NNTP_STRLEN+2]; data/inn-1.7.2q/nnrpd/post.c:756:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/inn-1.7.2q/nnrpd/post.c:757:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[BUFSIZ]; data/inn-1.7.2q/nnrpd/post.c:767:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((F = fopen(temp, "w")) == NULL) { data/inn-1.7.2q/nnrpd/post.c:824:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NNTP_STRLEN + 2], frombuf[SMBUF]; data/inn-1.7.2q/nnrpd/post.c:855:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (idbuff,"(mailed to moderator)") ; data/inn-1.7.2q/nnrpd/post.c:880:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(Error, data/inn-1.7.2q/nnrpd/post.c:964:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((i = atoi(buff)) != NNTP_TOOKIT_VAL) { data/inn-1.7.2q/syslog/logger.c:55:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[30]; data/inn-1.7.2q/syslog/logger.c:59:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Error code %d\n", e); data/inn-1.7.2q/syslog/logger.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tag, buf[1024], *getlogin(); data/inn-1.7.2q/syslog/logger.c:122:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(*argv++, p, len); data/inn-1.7.2q/syslog/logger.c:174:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return (atoi(name)); data/inn-1.7.2q/syslog/syslog.c:89:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[30]; data/inn-1.7.2q/syslog/syslog.c:93:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Error code %d\n", e); data/inn-1.7.2q/syslog/syslog.c:122:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tbuf[2048], fmt_cpy[1024], *stdp, *ctime(); data/inn-1.7.2q/syslog/syslog.c:138:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(tbuf, "<%d>%.15s ", pri, ctime(&now) + 4); data/inn-1.7.2q/syslog/syslog.c:147:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(p, "[%ld]", (long) getpid()); data/inn-1.7.2q/syslog/syslog.c:196:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(_PATH_CONSOLE, O_WRONLY, 0)) < 0) data/inn-1.7.2q/syslog/syslog.c:198:8: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. (void)strcat(tbuf, "\r\n"); data/inn-1.7.2q/syslog/syslogd.c:159:1: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(b1, b2, length) data/inn-1.7.2q/syslog/syslogd.c:224:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_uname[MAXUNAMES][UT_NAMESIZE+1]; data/inn-1.7.2q/syslog/syslogd.c:226:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_hname[MAXHOSTNAMELEN+1]; data/inn-1.7.2q/syslog/syslogd.c:229:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_fname[MAXPATHLEN]; data/inn-1.7.2q/syslog/syslogd.c:231:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_prevline[MAXSVLINE]; /* last message logged */ data/inn-1.7.2q/syslog/syslogd.c:232:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_lasttime[16]; /* time of last occurrence */ data/inn-1.7.2q/syslog/syslogd.c:233:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_prevhost[MAXHOSTNAMELEN+1]; /* host from which recd. */ data/inn-1.7.2q/syslog/syslogd.c:261:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *TypeNames[7] = { data/inn-1.7.2q/syslog/syslogd.c:270:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char LocalHostName[MAXHOSTNAMELEN+1]; /* our hostname */ data/inn-1.7.2q/syslog/syslogd.c:296:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MSG_BSIZE + 1]; data/inn-1.7.2q/syslog/syslogd.c:309:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MarkInterval = atoi(optarg) * 60; data/inn-1.7.2q/syslog/syslogd.c:390:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fklog = open(_PATH_KLOG, O_RDONLY, 0)) >= 0) data/inn-1.7.2q/syslog/syslogd.c:402:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(PidFile, "w"); data/inn-1.7.2q/syslog/syslogd.c:482:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAXLINE + 1]; data/inn-1.7.2q/syslog/syslogd.c:531:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAXLINE + 1]; data/inn-1.7.2q/syslog/syslogd.c:535:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(line, "vmunix: "); data/inn-1.7.2q/syslog/syslogd.c:641:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f->f_file = open(ctty, O_WRONLY, 0); data/inn-1.7.2q/syslog/syslogd.c:715:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAXLINE + 1], repbuf[80], greetings[200]; data/inn-1.7.2q/syslog/syslogd.c:748:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(repbuf, "last message repeated %d times", data/inn-1.7.2q/syslog/syslogd.c:807:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f->f_file = open(f->f_un.f_fname, data/inn-1.7.2q/syslog/syslogd.c:853:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((uf = fopen(_PATH_UTMP, "r")) == NULL) { data/inn-1.7.2q/syslog/syslogd.c:955:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buff[30]; data/inn-1.7.2q/syslog/syslogd.c:959:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(buff, "Error code %d\n", errno); data/inn-1.7.2q/syslog/syslogd.c:969:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/inn-1.7.2q/syslog/syslogd.c:984:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/inn-1.7.2q/syslog/syslogd.c:993:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void) sprintf(buf, "exiting on signal %d", sig); data/inn-1.7.2q/syslog/syslogd.c:1012:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cline[BUFSIZ]; data/inn-1.7.2q/syslog/syslogd.c:1040:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((cf = fopen(ConfFile, "r")) == NULL) { data/inn-1.7.2q/syslog/syslogd.c:1121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXLINE]; data/inn-1.7.2q/syslog/syslogd.c:1151:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xbuf[200]; data/inn-1.7.2q/syslog/syslogd.c:1170:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xbuf[200]; data/inn-1.7.2q/syslog/syslogd.c:1206:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(hp->h_addr, (char *) &f->f_un.f_forw.f_addr.sin_addr, hp->h_length); data/inn-1.7.2q/syslog/syslogd.c:1212:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f->f_file = open(p, O_WRONLY|O_APPEND, 0)) < 0) { data/inn-1.7.2q/syslog/syslogd.c:1258:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[40]; data/inn-1.7.2q/syslog/syslogd.c:1261:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return (atoi(name)); data/inn-1.7.2q/syslog/syslogd.c:1287:31: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int devnull = open("/dev/null", O_RDWR, 0); data/inn-1.7.2q/syslog/syslogd.c:1313:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char device[64] = _PATH_DEV; data/inn-1.7.2q/syslog/syslogd.c:1314:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char errbuf[1024]; data/inn-1.7.2q/syslog/syslogd.c:1326:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) < 0) { data/inn-1.7.2q/syslog/syslogd.c:1343:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(iov, localiov, data/inn-1.7.2q/syslog/syslogd.c:1368:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void) sprintf(errbuf, data/inn-1.7.2q/authprogs/auth_pass.c:84:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username, argv[1], sizeof(username)-1); data/inn-1.7.2q/authprogs/auth_pass.c:90:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(password, argv[2], sizeof(password)-1); data/inn-1.7.2q/authprogs/auth_pass.c:96:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(username)-1; data/inn-1.7.2q/authprogs/auth_pass.c:100:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(password)-1; data/inn-1.7.2q/authprogs/auth_pass.c:122:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(peername, hp->h_name, sizeof(peername)); data/inn-1.7.2q/backends/actsync.c:126:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dir_len = strlen(name); data/inn-1.7.2q/backends/actsync.c:222:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file_len = strlen(ep->d_name); data/inn-1.7.2q/backends/actsync.c:228:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, dir, dir_len); data/inn-1.7.2q/backends/actsync.c:230:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path+dir_len+1, ep->d_name, file_len); data/inn-1.7.2q/backends/actsync.c:1161:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cur->name, line, QIOlength(qp)); data/inn-1.7.2q/backends/actsync.c:1231:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (s_flag > 0 && strlen(cur->name) > s_flag) { data/inn-1.7.2q/backends/actsync.c:1425:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(&(cur->type[1])) > s_flag) { data/inn-1.7.2q/backends/actsync.c:1703:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (p = &line[strlen(line)-1]; data/inn-1.7.2q/backends/actsync.c:1745:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/backends/actsync.c:1753:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cur->pat, p, i); data/inn-1.7.2q/backends/actsync.c:1830:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p+1); data/inn-1.7.2q/backends/actsync.c:1838:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cur->epat, p+1, i); data/inn-1.7.2q/backends/actsync.c:3277:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (buf[strlen(buf)-1] == '\n') { data/inn-1.7.2q/backends/archive.c:270:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/archive.c:328:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Name = dest + strlen(dest); data/inn-1.7.2q/backends/batcher.c:242:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/batcher.c:297:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Input = NEW(char, STRLEN(BATCHDIR) + 1 + strlen(av[1]) + 1); data/inn-1.7.2q/backends/batcher.c:335:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(line); data/inn-1.7.2q/backends/batcher.c:408:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BytesInCB += strlen(InitialString) + 1; data/inn-1.7.2q/backends/batcher.c:409:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BytesWritten += strlen(InitialString) + 1; data/inn-1.7.2q/backends/batcher.c:458:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BytesInCB += strlen(buff) + 1; data/inn-1.7.2q/backends/batcher.c:459:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BytesWritten += strlen(buff) + 1; data/inn-1.7.2q/backends/batcher.c:471:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((i = read(artfd, (POINTER)data, datasize)) > 0 || errno == EINTR) data/inn-1.7.2q/backends/buffchan.c:396:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/crosspost.c:239:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/filechan.c:45:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/innxbatch.c:201:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(FromServer, p, size-1); data/inn-1.7.2q/backends/innxbatch.c:368:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/innxbatch.c:519:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). err = read(fd, p, i); data/inn-1.7.2q/backends/innxmit.c:167:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.dsize = strlen(MessageID) + 1; data/inn-1.7.2q/backends/innxmit.c:198:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (i = 2; (c = getc(F)) != EOF && c != '\n'; ) data/inn-1.7.2q/backends/innxmit.c:205:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) != EOF && c != '\n') data/inn-1.7.2q/backends/innxmit.c:293:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(Article) >= SPOOLNAMEBUFF) { data/inn-1.7.2q/backends/innxmit.c:676:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read(FromServer, buffer, sizeof buffer); data/inn-1.7.2q/backends/innxmit.c:868:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*p == '\0' || (int)strlen(p) > DBZMAXKEY) data/inn-1.7.2q/backends/innxmit.c:899:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*p == '\0' || (int)strlen(p) > sizeof Encoding) data/inn-1.7.2q/backends/innxmit.c:910:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*p == '\0' || (int)strlen(p) > sizeof ContentType) data/inn-1.7.2q/backends/innxmit.c:966:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!REMwrite(buff, (int)strlen(buff), FALSE)) { data/inn-1.7.2q/backends/innxmit.c:1010:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!REMwrite(buff, (int)strlen(buff), FALSE)) { data/inn-1.7.2q/backends/innxmit.c:1168:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/innxmit.c:1178:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). AltPath = NEW(char, SPOOLNAMEBUFF + strlen(AltSpool)); data/inn-1.7.2q/backends/innxmit.c:1241:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BATCHname = NEW(char, STRLEN(BATCHDIR) + 1 + strlen(av[1]) + 1); data/inn-1.7.2q/backends/innxmit.c:1262:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BATCHtemp = NEW(char, strlen(BATCHname) + STRLEN("/bchXXXXXX") + 1); data/inn-1.7.2q/backends/innxmit.c:1325:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!REMwrite(modestream, (int)strlen(modestream), FALSE)) { data/inn-1.7.2q/backends/innxmit.c:1457:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (MessageID != NULL && (strlen(MessageID) > NNTP_STRLEN - 12)) { data/inn-1.7.2q/backends/innxmit.c:1597:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!REMwrite(buff, (int)strlen(buff), FALSE)) { data/inn-1.7.2q/backends/nntpget.c:82:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). || (sp->Count = read(sp->Rfd, sp->Buffer, sizeof sp->Buffer)) < 0) data/inn-1.7.2q/backends/nntpget.c:237:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/nntpget.c:322:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!SITEwrite(Remote, buff, (int)strlen(buff)) data/inn-1.7.2q/backends/nntpget.c:395:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!SITEwrite(Local, buff, (int)strlen(buff)) data/inn-1.7.2q/backends/nntpget.c:407:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!SITEwrite(Remote, buff, (int)strlen(buff)) data/inn-1.7.2q/backends/nntpget.c:438:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!SITEwrite(Local, buff, (int)strlen(buff))) { data/inn-1.7.2q/backends/overchan.c:94:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). iov[i++].iov_len = strlen(Art); data/inn-1.7.2q/backends/overchan.c:98:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). iov[i++].iov_len = strlen(Rest); data/inn-1.7.2q/backends/overchan.c:257:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/rcompress.c:196:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((i = read(s, p, BUFFER_SIZE)) > 0) data/inn-1.7.2q/backends/rcompress.c:204:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((i = read(0, p, BUFFER_SIZE)) > 0) data/inn-1.7.2q/backends/shlock.c:44:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, (char *)&pid, sizeof pid) != sizeof pid) { data/inn-1.7.2q/backends/shlock.c:50:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((i = read(fd, buff, sizeof buff - 1)) <= 0) { data/inn-1.7.2q/backends/shlock.c:115:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/backends/shlock.c:172:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(buff); data/inn-1.7.2q/backends/shrinkfile.c:88:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((c = fgetc(F)) == EOF) { data/inn-1.7.2q/backends/shrinkfile.c:219:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) != '\n') data/inn-1.7.2q/backends/shrinkfile.c:290:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q = &p[strlen(p) - 1]; data/inn-1.7.2q/backends/shrinkfile.c:353:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/config/subst.c:107:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((new = malloc(strlen(p) + 1)) == NULL) { data/inn-1.7.2q/config/subst.c:123:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)write(2, av[0], (TYPE)strlen(av[0])); \ data/inn-1.7.2q/config/subst.c:124:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)write(2, s, (TYPE)strlen(s)); \ data/inn-1.7.2q/config/subst.c:246:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(f1)) != EOF) data/inn-1.7.2q/config/subst.c:247:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(f2) != c) { data/inn-1.7.2q/config/subst.c:252:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(f2) != EOF) { data/inn-1.7.2q/config/subst.c:305:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(s1) + strlen(s2) + strlen(s3) + 1; data/inn-1.7.2q/config/subst.c:305:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(s1) + strlen(s2) + strlen(s3) + 1; data/inn-1.7.2q/config/subst.c:305:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(s1) + strlen(s2) + strlen(s3) + 1; data/inn-1.7.2q/config/subst.c:578:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buff) > sizeof name - 4) { data/inn-1.7.2q/config/subst.c:585:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tp->Length = strlen(tp->Name); data/inn-1.7.2q/dbz/dbz.c:808:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = malloc((size_t)strlen(s1) + (size_t)strlen(s2) + 1); data/inn-1.7.2q/dbz/dbz.c:808:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = malloc((size_t)strlen(s1) + (size_t)strlen(s2) + 1); data/inn-1.7.2q/dbz/dbz.c:1198:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = (df != NULL) ? getc(df) : EOF; data/inn-1.7.2q/dbz/dbz.c:1201:35: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (df != NULL && pf != NULL && getc(pf) != EOF) data/inn-1.7.2q/dbz/dbz.c:1221:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(df) != 'd' || getc(df) != 'b' || getc(df) != 'z') data/inn-1.7.2q/dbz/dbz.c:1221:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(df) != 'd' || getc(df) != 'b' || getc(df) != 'z') data/inn-1.7.2q/dbz/dbz.c:1221:44: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(df) != 'd' || getc(df) != 'b' || getc(df) != 'z') data/inn-1.7.2q/dbz/dbz.c:1227:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(df)) == ' ') data/inn-1.7.2q/dbz/dbz.c:1241:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(df) != '\n') data/inn-1.7.2q/dbz/dbz.c:1257:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(df) != '\n') data/inn-1.7.2q/dbz/dbz.c:1281:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(f)) == ' ') data/inn-1.7.2q/dbz/dbz.c:1290:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(f)) != EOF && c != '\n' && c != ' ') data/inn-1.7.2q/dbz/dbz.c:1300:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(getbuf, "-1234567890") != strlen(getbuf)) { data/inn-1.7.2q/debian/patches/clientactive.c:2:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). the server. Then inews tries to read the distrib.pats file from the server data/inn-1.7.2q/expire/expire.c:383:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buff + strlen(buff); data/inn-1.7.2q/expire/expire.c:658:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(fields[0]) >= (DBZMAXKEY-1) ) { data/inn-1.7.2q/expire/expire.c:701:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Offset += strlen(fields[0]) + 1 + strlen(fields[1]) + 1; data/inn-1.7.2q/expire/expire.c:701:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Offset += strlen(fields[0]) + 1 + strlen(fields[1]) + 1; data/inn-1.7.2q/expire/expire.c:742:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += strlen(strcpy(q, p)); data/inn-1.7.2q/expire/expire.c:771:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += strlen(strcpy(q, first)); data/inn-1.7.2q/expire/expire.c:776:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += strlen(strcpy(q, p)); data/inn-1.7.2q/expire/expire.c:802:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Offset += strlen(fields[0]) + 1 data/inn-1.7.2q/expire/expire.c:803:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(date) + 1 + STRLEN(HIS_NOEXP) + 1; data/inn-1.7.2q/expire/expire.c:816:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Offset += strlen(fields[0]) + 1 + strlen(fields[1]) + 1 data/inn-1.7.2q/expire/expire.c:816:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Offset += strlen(fields[0]) + 1 + strlen(fields[1]) + 1 data/inn-1.7.2q/expire/expire.c:817:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(New.Data) + 1; data/inn-1.7.2q/expire/expire.c:838:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.dsize = strlen(key.dptr) + 1; data/inn-1.7.2q/expire/expire.c:959:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/expire/expireover.c:390:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fp->Length = strlen(buff); data/inn-1.7.2q/expire/expireover.c:483:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen(p); data/inn-1.7.2q/expire/expireover.c:497:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lasthp->Length += strlen(line); data/inn-1.7.2q/expire/expireover.c:522:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ov_size = strlen(name) + ARTfieldsize + 2; data/inn-1.7.2q/expire/expireover.c:531:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen(value); data/inn-1.7.2q/expire/expireover.c:544:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ov_size += strlen(hp->Header); data/inn-1.7.2q/expire/expireover.c:558:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = B.Data + strlen(strcpy(B.Data, name)); data/inn-1.7.2q/expire/expireover.c:562:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, hp->Header)); data/inn-1.7.2q/expire/expireover.c:630:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lp->Length = strlen(p); data/inn-1.7.2q/expire/expireover.c:938:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!CTYPE(isdigit, p[0]) || strspn(p, "0123456789") != strlen(p)) data/inn-1.7.2q/expire/expireover.c:1152:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/expire/fastrm.c:128:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(name); data/inn-1.7.2q/expire/fastrm.c:165:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dlen = strlen(line); data/inn-1.7.2q/expire/fastrm.c:378:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. (void)strcat(abs, "/"); data/inn-1.7.2q/expire/fastrm.c:427:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prefix_len = strlen(p); data/inn-1.7.2q/expire/fastrm.c:461:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prefix_len = strlen(prefix_dir); data/inn-1.7.2q/expire/fastrm.c:485:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prefix_len = strlen(abs); data/inn-1.7.2q/expire/fastrm.c:654:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (dotdot >= strlen(DotDot)/(SIZE_T)3) data/inn-1.7.2q/expire/fastrm.c:655:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dotdot = strlen(DotDot)/(SIZE_T)3 - 1; data/inn-1.7.2q/expire/fastrm.c:688:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*p != '/' || bad_path(p) || strlen(p) >= (SIZE_T)MAX_DIR_LEN) { data/inn-1.7.2q/expire/grephistory.c:36:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) == ' ') data/inn-1.7.2q/expire/grephistory.c:45:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) != EOF && c != ' ' && c != '\n') data/inn-1.7.2q/expire/grephistory.c:73:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (i = 2; (c = getc(F)) != EOF && c != '\n'; ) data/inn-1.7.2q/expire/grephistory.c:107:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) != EOF && c != '\n') data/inn-1.7.2q/expire/grephistory.c:264:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.dptr = NEW(char, 1 + strlen(av[0]) + 1 + 1); data/inn-1.7.2q/expire/makeactive.c:59:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!CTYPE(isdigit, p[0]) || strspn(p, "0123456789") != strlen(p) data/inn-1.7.2q/expire/makeactive.c:254:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/expire/makehistory.c:232:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (p[0] != '<' || p[strlen(p) - 1] != '>') data/inn-1.7.2q/expire/makehistory.c:236:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(p); data/inn-1.7.2q/expire/makehistory.c:364:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.dsize = strlen(MessageID) + 1; data/inn-1.7.2q/expire/makehistory.c:430:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q = &buff[strlen(buff)]; data/inn-1.7.2q/expire/makehistory.c:436:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!CTYPE(isdigit, *p) || strspn(p, "0123456789") != strlen(p)) data/inn-1.7.2q/expire/makehistory.c:614:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/expire/makehistory.c:653:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tflag = NEW(char, 3 + strlen(optarg) + 1); data/inn-1.7.2q/expire/makehistory.c:776:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = 50 + strlen(TempTextFile ? TempTextFile : TextFile) + strlen(temp); data/inn-1.7.2q/expire/makehistory.c:776:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = 50 + strlen(TempTextFile ? TempTextFile : TextFile) + strlen(temp); data/inn-1.7.2q/expire/makehistory.c:832:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(q); data/inn-1.7.2q/expire/makehistory.c:853:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(line); data/inn-1.7.2q/expire/newsrequeue.c:94:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) == ' ' || c == '<') data/inn-1.7.2q/expire/newsrequeue.c:103:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) != EOF && c != ' ' && c != '\n') data/inn-1.7.2q/expire/newsrequeue.c:131:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.dsize = strlen(id) + 1; data/inn-1.7.2q/expire/newsrequeue.c:150:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((c = getc(F)) == EOF || c != '<') data/inn-1.7.2q/expire/newsrequeue.c:155:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(F)) != EOF && c != '\n') data/inn-1.7.2q/expire/newsrequeue.c:162:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (p = date; (c = getc(F)) != EOF && CTYPE(isdigit, c); ) data/inn-1.7.2q/expire/newsrequeue.c:174:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (i = 2; (c = getc(F)) != EOF && c != '\n'; ) data/inn-1.7.2q/expire/newsrequeue.c:521:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/expire/prunehistory.c:197:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (i = 2; (c = getc(rfp)) != EOF && c != '\n'; ) data/inn-1.7.2q/frontends/ctlinnd.c:276:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length += strlen(p) + 1; data/inn-1.7.2q/frontends/ctlinnd.c:280:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, av[i])); data/inn-1.7.2q/frontends/decode.c:128:43: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (i = 12, cnt = 0, first = 1; (c = getchar()) != EOF; ) { data/inn-1.7.2q/frontends/encode.c:113:23: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (p = b3; (c = getchar()) != EOF; ) { data/inn-1.7.2q/frontends/inews.c:196:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (p = start + strlen(start); p > start && CTYPE(isspace, p[-1]); ) data/inn-1.7.2q/frontends/inews.c:492:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(outbuff, p, SMBUF); data/inn-1.7.2q/frontends/inews.c:495:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(outbuff) == 0) { data/inn-1.7.2q/frontends/inews.c:675:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(Exclusions) + STRLEN(PATHFLUFF); data/inn-1.7.2q/frontends/inews.c:678:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i += strlen(p) + 1; data/inn-1.7.2q/frontends/inews.c:691:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i += strlen(p) + 1; data/inn-1.7.2q/frontends/inews.c:816:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(article); data/inn-1.7.2q/frontends/inews.c:920:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(article); data/inn-1.7.2q/frontends/inews.c:975:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/frontends/inews.c:1064:28: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (p = article; (i = getchar()) != EOF; *p++ = (char)i) data/inn-1.7.2q/frontends/inews.c:1120:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(0); data/inn-1.7.2q/frontends/inews.c:1198:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/frontends/inews.c:1228:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Exclusions = NEW(char, strlen(optarg) + 1 + 1); data/inn-1.7.2q/frontends/inews.c:1298:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hp->Size = strlen(hp->Name); data/inn-1.7.2q/frontends/inews.c:1311:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Length = strlen(article); data/inn-1.7.2q/frontends/inews.c:1327:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (hp->Value && (int)strlen(hp->Value) + hp->Size > NNTP_STRLEN) { data/inn-1.7.2q/frontends/inews.c:1332:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(OtherHeaders[i]) > NNTP_STRLEN) { data/inn-1.7.2q/frontends/rnews.c:210:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(article); data/inn-1.7.2q/frontends/rnews.c:255:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(path, p, sizeof path); data/inn-1.7.2q/frontends/rnews.c:423:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((i = read(fd, p, left)) <= 0) { data/inn-1.7.2q/frontends/rnews.c:458:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, p, 1) != 1) { data/inn-1.7.2q/frontends/rnews.c:497:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((i = read(*fdp, &buff[0], 1)) < 0) { data/inn-1.7.2q/frontends/rnews.c:512:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((i = read(*fdp, &buff[1], 1)) < 0) { data/inn-1.7.2q/frontends/rnews.c:652:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((i = strlen(InputFile)) > 6) data/inn-1.7.2q/frontends/rnews.c:657:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(hostname, InputFile, i); data/inn-1.7.2q/frontends/rnews.c:706:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(0); data/inn-1.7.2q/frontends/rnews.c:713:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (status = 0, count = 0; (i = read(fd, buff, sizeof buff)) != 0; ) { data/inn-1.7.2q/frontends/rnews.c:831:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/frontends/sys2nf.c:119:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = strlen(p) - 1, gp = Groups; (g = *gp++) != NULL; ) data/inn-1.7.2q/frontends/sys2nf.c:141:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = strlen(p), count = 0, gp = Groups; (g = *gp++) != NULL; ) data/inn-1.7.2q/frontends/sys2nf.c:183:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (len + strlen(s) + 3 > 72) { data/inn-1.7.2q/frontends/sys2nf.c:198:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(s); data/inn-1.7.2q/include/macros.h:46:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcpy(NEW(char, strlen(p) + 1), p) data/inn-1.7.2q/include/macros.h:113:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define AF_UNIX_SOCKSIZE(S) (sizeof S.sun_family + strlen(S.sun_path) + 1) data/inn-1.7.2q/include/macros.h:123:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RECVorREAD(fd, p, s) read((fd), (p), (s)) data/inn-1.7.2q/include/mystring.h:9:14: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. extern char *strncat(); data/inn-1.7.2q/include/mystring.h:10:14: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). extern char *strncpy(); data/inn-1.7.2q/include/mystring.h:19:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). extern int strlen(); data/inn-1.7.2q/innd/art.c:291:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hp->Size = strlen(hp->Name); data/inn-1.7.2q/innd/art.c:480:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/innd/art.c:575:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(Data->Lines); data/inn-1.7.2q/innd/art.c:604:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Data->SizeLength = strlen(Data->Size); data/inn-1.7.2q/innd/art.c:644:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = strlen(bytesbuff), vp = iov; vp < end; vp++) data/inn-1.7.2q/innd/art.c:657:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BUFFset(&Headers, bytesbuff, strlen(bytesbuff)); data/inn-1.7.2q/innd/art.c:915:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Data->MessageIDLength = strlen(p); data/inn-1.7.2q/innd/art.c:1318:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j += 1 + strlen(p); data/inn-1.7.2q/innd/art.c:1480:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/art.c:1540:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, name)); data/inn-1.7.2q/innd/art.c:1660:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bp->Used += strlen(strcpy(p, sp->Name)); data/inn-1.7.2q/innd/art.c:1781:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Data.FeedsiteLength = strlen(Data.Feedsite); data/inn-1.7.2q/innd/art.c:1783:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Data.TimeReceivedLength = strlen(Data.TimeReceived); data/inn-1.7.2q/innd/art.c:1887:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/innd/art.c:1953:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(ControlWord, HDR(ControlHeader), sizeof ControlWord); data/inn-1.7.2q/innd/art.c:1966:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((j = strlen(p) - 4) > 0 data/inn-1.7.2q/innd/art.c:2197:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, Data.Name)); data/inn-1.7.2q/innd/art.c:2198:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Data.NameLength = strlen(Data.Name); data/inn-1.7.2q/innd/art.c:2227:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, linkname)); data/inn-1.7.2q/innd/cc.c:190:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = 1 + strlen(p) + 1 + 1; data/inn-1.7.2q/innd/cc.c:237:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(av[1], DIGITS) != strlen(av[1])) data/inn-1.7.2q/innd/cc.c:240:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(av[2], DIGITS) != strlen(av[2])) data/inn-1.7.2q/innd/cc.c:243:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(av[3], DIGITS) != strlen(av[3])) data/inn-1.7.2q/innd/cc.c:301:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(av[0]); data/inn-1.7.2q/innd/cc.c:362:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(Rest); data/inn-1.7.2q/innd/cc.c:766:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(buff, "0 Server ")); data/inn-1.7.2q/innd/cc.c:772:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/cc.c:775:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "running")); data/inn-1.7.2q/innd/cc.c:778:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "paused ")); data/inn-1.7.2q/innd/cc.c:779:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, ModeReason)); data/inn-1.7.2q/innd/cc.c:782:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "throttled ")); data/inn-1.7.2q/innd/cc.c:783:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, ModeReason)); data/inn-1.7.2q/innd/cc.c:788:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "Rejecting ")); data/inn-1.7.2q/innd/cc.c:789:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, RejectReason)); data/inn-1.7.2q/innd/cc.c:792:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "Allowing remote connections")); data/inn-1.7.2q/innd/cc.c:805:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/cc.c:811:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/cc.c:814:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "Not reserved")); data/inn-1.7.2q/innd/cc.c:818:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "Readers ")); data/inn-1.7.2q/innd/cc.c:820:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "follow ")); data/inn-1.7.2q/innd/cc.c:822:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "separate ")); data/inn-1.7.2q/innd/cc.c:824:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "enabled")); data/inn-1.7.2q/innd/cc.c:827:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/cc.c:832:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "Tcl filtering ")); data/inn-1.7.2q/innd/cc.c:834:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "enabled")); data/inn-1.7.2q/innd/cc.c:836:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "disabled")); data/inn-1.7.2q/innd/cc.c:840:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "Perl filtering ")); data/inn-1.7.2q/innd/cc.c:842:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "enabled")); data/inn-1.7.2q/innd/cc.c:844:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "disabled")); data/inn-1.7.2q/innd/cc.c:847:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(buff); data/inn-1.7.2q/innd/cc.c:898:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BUFFappend(&CCreply, p, strlen(p)); data/inn-1.7.2q/innd/cc.c:924:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (Name[0] == '.' || strspn(Name, "0123456789") == strlen(Name)) data/inn-1.7.2q/innd/cc.c:940:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(Name) + strlen(Rest) > (SIZE_T)(SMBUF - 24)) data/inn-1.7.2q/innd/cc.c:940:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(Name) + strlen(Rest) > (SIZE_T)(SMBUF - 24)) data/inn-1.7.2q/innd/cc.c:959:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buff = NEW(char, strlen(Name) + 1 + 20 + 1 + strlen(who) + 1 + 1); data/inn-1.7.2q/innd/cc.c:959:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buff = NEW(char, strlen(Name) + 1 + 20 + 1 + strlen(who) + 1 + 1); data/inn-1.7.2q/innd/cc.c:962:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xwrite(fd, buff, strlen(buff)) < 0) { data/inn-1.7.2q/innd/cc.c:1095:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(reason) > MAX_REASON_LEN) /* MAX_REASON_LEN is as big as is safe */ data/inn-1.7.2q/innd/cc.c:1174:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(p) > MAX_REASON_LEN) /* MAX_REASON_LEN is as big as is safe */ data/inn-1.7.2q/innd/cc.c:1247:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(av[0]) > MAX_REASON_LEN) /* MAX_REASON_LEN is as big as is safe */ data/inn-1.7.2q/innd/cc.c:1363:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(p) > MAX_REASON_LEN) /* MAX_REASON_LEN is as big as is safe */ data/inn-1.7.2q/innd/cc.c:1711:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(p) + HEADER_SIZE ; data/inn-1.7.2q/innd/chan.c:579:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(cp->fd, &bp->Data[bp->Used], data/inn-1.7.2q/innd/his.c:104:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/innd/his.c:160:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(HISreadfd, data/inn-1.7.2q/innd/icd.c:241:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ICDiovset(&iov[1], Rest, strlen(Rest)); data/inn-1.7.2q/innd/icd.c:272:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(Name) + strlen(Rest) > (SIZE_T)(SMBUF - 24)) { data/inn-1.7.2q/innd/icd.c:272:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(Name) + strlen(Rest) > (SIZE_T)(SMBUF - 24)) { data/inn-1.7.2q/innd/icd.c:278:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ICDiovset(&iov[1], buff, strlen(buff)); data/inn-1.7.2q/innd/innd.c:103:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, n1)); data/inn-1.7.2q/innd/innd.c:139:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/innd/innd.c:145:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, sizeof buff - 4); data/inn-1.7.2q/innd/innd.c:150:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, sizeof buff - 14); data/inn-1.7.2q/innd/innd.c:156:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, sizeof buff - 17); data/inn-1.7.2q/innd/innd.c:158:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(&buff[sizeof buff - 14], &q[-5], 10); data/inn-1.7.2q/innd/innd.c:428:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mask = umask(033); data/inn-1.7.2q/innd/innd.c:433:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(mask); data/inn-1.7.2q/innd/innd.c:714:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(optarg) >= SMBUF - 4) data/inn-1.7.2q/innd/innd.c:767:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Path.Used = strlen(path) + 1; data/inn-1.7.2q/innd/innd.c:772:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Xref.Size = STRLEN("Xref: ") + strlen(path) + 1; data/inn-1.7.2q/innd/innd.c:777:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Xref.Used = strlen(Xref.Data); data/inn-1.7.2q/innd/innd.c:792:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(NEWSUMASK); data/inn-1.7.2q/innd/nc.c:157:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). WCHANappend(cp, text, (int)strlen(text)); /* text in buffer */ data/inn-1.7.2q/innd/nc.c:197:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). WCHANappend(cp, text, (int)strlen(text)); data/inn-1.7.2q/innd/nc.c:699:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end = p + strlen(p); data/inn-1.7.2q/innd/nc.c:703:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end = p + strlen(p); data/inn-1.7.2q/innd/nc.c:813:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = 3 + 1 + strlen(p); data/inn-1.7.2q/innd/nc.c:1364:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dp->Size = strlen(dp->Name); data/inn-1.7.2q/innd/nc.c:1497:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msglen = strlen(p) + 5; /* 3 digits + space + id + null */ data/inn-1.7.2q/innd/nc.c:1546:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msglen = strlen(p) + 5; /* 3 digits + space + id + null */ data/inn-1.7.2q/innd/newsfeeds.c:98:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(site," \t") == strlen (site)) data/inn-1.7.2q/innd/newsfeeds.c:213:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sp->NameLength = strlen(sp->Name); data/inn-1.7.2q/innd/newsfeeds.c:282:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sp->SpoolName = NEW(char, STRLEN(BATCH) + 1 + strlen(p) + 1); data/inn-1.7.2q/innd/newsfeeds.c:387:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sp->Param = NEW(char, STRLEN(BATCH) + 1 + strlen(f4) + 1); data/inn-1.7.2q/innd/newsfeeds.c:394:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sp->SpoolName = NEW(char, STRLEN(BATCH) + 1 + strlen(sp->Name) + 1); data/inn-1.7.2q/innd/newsfeeds.c:481:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length += 1 + strlen(sp->Name); data/inn-1.7.2q/innd/ng.c:103:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(ngp->Name, p, (SIZE_T)i); data/inn-1.7.2q/innd/ng.c:108:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(ngp->Dir, p, (SIZE_T)i); data/inn-1.7.2q/innd/ng.c:296:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/innd/ng.c:368:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!CTYPE(isdigit, p[0]) || strspn(p, "0123456789") != strlen(p) data/inn-1.7.2q/innd/perl.c:54:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hv_store(hdr, (char *) hp->Name, strlen(hp->Name), newSVpv(hp->Value, 0), 0); data/inn-1.7.2q/innd/perl.c:90:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, p, sizeof(buf) - 1); data/inn-1.7.2q/innd/rc.c:338:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). WCHANset(new, reject_message, (int)strlen(reject_message)); data/inn-1.7.2q/innd/rc.c:472:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((k = strlen(buff)) > 2) { data/inn-1.7.2q/innd/site.c:320:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BUFFappend(bp, text, (int)strlen(text)); data/inn-1.7.2q/innd/site.c:405:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BUFFappend(bp, pbuff, strlen(pbuff)); data/inn-1.7.2q/innd/site.c:490:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(sp->Param) + sp->FNLnames.Used; data/inn-1.7.2q/innd/site.c:491:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (i + strlen(Data->Name) >= sizeof buff) { data/inn-1.7.2q/innd/site.c:493:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sp->Name, i + strlen(Data->Name), Data->Name); data/inn-1.7.2q/innd/site.c:1105:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buff + strlen(buff); data/inn-1.7.2q/innd/site.c:1149:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1154:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1160:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1164:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "file")); data/inn-1.7.2q/innd/site.c:1167:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1170:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, " no channel?")); data/inn-1.7.2q/innd/site.c:1173:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1177:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "channel")); data/inn-1.7.2q/innd/site.c:1180:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "exploder")); data/inn-1.7.2q/innd/site.c:1184:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1187:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, " spooling")); data/inn-1.7.2q/innd/site.c:1189:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, " no channel?")); data/inn-1.7.2q/innd/site.c:1192:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1196:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "recursive funnel")); data/inn-1.7.2q/innd/site.c:1199:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "log only")); data/inn-1.7.2q/innd/site.c:1202:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "program")); data/inn-1.7.2q/innd/site.c:1204:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, " with names")); data/inn-1.7.2q/innd/site.c:1212:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1218:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1223:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1230:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1235:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1238:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/innd/site.c:1242:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/lib/clientlib.c:91:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &ser_line[strlen(ser_line) - 1]; data/inn-1.7.2q/lib/clientlib.c:140:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &buff[strlen(buff)]; data/inn-1.7.2q/lib/getconfig.c:29:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(value); data/inn-1.7.2q/lib/getdtab.c:71:14: [1] (obsolete) ulimit: This C routine is considered obsolete (as opposed to the shell command by the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2), setrlimit(2), and sysconf(3) instead. if ((size = ulimit(4, 0L)) < 0) data/inn-1.7.2q/lib/getfqdn.c:49:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(temp, buff, sizeof(temp) - 1); data/inn-1.7.2q/lib/getfqdn.c:51:8: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. (void)strncat(temp, ".", sizeof(temp) - strlen(temp) - 1); data/inn-1.7.2q/lib/getfqdn.c:51:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)strncat(temp, ".", sizeof(temp) - strlen(temp) - 1); data/inn-1.7.2q/lib/getfqdn.c:58:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(hp->h_name) < sizeof buff - 1) data/inn-1.7.2q/lib/getfqdn.c:70:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(p) < sizeof buff - 1) data/inn-1.7.2q/lib/getfqdn.c:79:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buff) + 1 + strlen(p) > sizeof buff - 1) data/inn-1.7.2q/lib/getfqdn.c:79:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buff) + 1 + strlen(p) > sizeof buff - 1) data/inn-1.7.2q/lib/getfqdn.c:82:11: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. (void)strcat(buff, "."); data/inn-1.7.2q/lib/getopt.c:14:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)write(2, av[0], strlen(av[0])); \ data/inn-1.7.2q/lib/getopt.c:15:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)write(2, s, strlen(s)); \ data/inn-1.7.2q/lib/inndcomm.c:78:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mask = umask(0); data/inn-1.7.2q/lib/inndcomm.c:82:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(mask); data/inn-1.7.2q/lib/inndcomm.c:87:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(mask); data/inn-1.7.2q/lib/inndcomm.c:95:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mask = umask(0); data/inn-1.7.2q/lib/inndcomm.c:98:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(mask); data/inn-1.7.2q/lib/inndcomm.c:103:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(mask); data/inn-1.7.2q/lib/inndcomm.c:211:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bufsiz = strlen(ICCsockname) + 1 + 1; data/inn-1.7.2q/lib/inndcomm.c:213:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bufsiz += 1 + strlen(p); data/inn-1.7.2q/lib/inndcomm.c:230:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (p = buff + strlen(buff), i = 0; (q = argv[i]) != NULL; i++) { data/inn-1.7.2q/lib/inndcomm.c:232:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, q)); data/inn-1.7.2q/lib/innvers.c:30:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, "INN")); data/inn-1.7.2q/lib/innvers.c:32:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, RELEASE)); data/inn-1.7.2q/lib/innvers.c:34:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, PATCHLEVEL)); data/inn-1.7.2q/lib/innvers.c:36:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, DATE)); data/inn-1.7.2q/lib/innvers.c:41:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, q)); data/inn-1.7.2q/lib/perl.c:183:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). argv[0] = NEW (char,strlen (function) + strlen ("undef &%s")) ; data/inn-1.7.2q/lib/perl.c:183:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). argv[0] = NEW (char,strlen (function) + strlen ("undef &%s")) ; data/inn-1.7.2q/lib/qio.c:92:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(qp->fd, qp->Buffer, (SIZE_T)qp->Size); data/inn-1.7.2q/lib/qio.c:138:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(qp->fd, p, (SIZE_T)(&qp->Buffer[qp->Size] - p)); data/inn-1.7.2q/lib/readin.c:28:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((count = read(fd, p, (SIZE_T)i)) <= 0) data/inn-1.7.2q/nnrpd/article.c:110:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fp->Length = strlen(buff); data/inn-1.7.2q/nnrpd/article.c:214:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(_PATH_SPOOL) + 1; data/inn-1.7.2q/nnrpd/article.c:487:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(av[1], "0123456789") != strlen(av[1])) { data/inn-1.7.2q/nnrpd/article.c:723:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/nnrpd/article.c:733:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, i); data/inn-1.7.2q/nnrpd/article.c:871:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hp->Length += strlen(p); data/inn-1.7.2q/nnrpd/article.c:898:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen(p); data/inn-1.7.2q/nnrpd/article.c:929:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ov_size = strlen(name) + ARTfieldsize + 2; data/inn-1.7.2q/nnrpd/article.c:938:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen(value); data/inn-1.7.2q/nnrpd/article.c:951:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ov_size += strlen(hp->Header); data/inn-1.7.2q/nnrpd/article.c:965:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buff + strlen(strcpy(buff, name)); data/inn-1.7.2q/nnrpd/article.c:971:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, hp->Header)); data/inn-1.7.2q/nnrpd/commands.c:149:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(pan[PIPE_READ], path, sizeof(path)); data/inn-1.7.2q/nnrpd/commands.c:157:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PERMauthstring = malloc(strlen(path) + 1); data/inn-1.7.2q/nnrpd/commands.c:223:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(User, av[2], sizeof User - 1); data/inn-1.7.2q/nnrpd/commands.c:238:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(Password, av[2], sizeof Password - 1); data/inn-1.7.2q/nnrpd/commands.c:611:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/inn-1.7.2q/nnrpd/loadave.c:67:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). || read(fd, (char *)avenrun, sizeof avenrun) != sizeof avenrun) { data/inn-1.7.2q/nnrpd/misc.c:44:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(line); data/inn-1.7.2q/nnrpd/misc.c:80:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i += strlen(*v) + 1; data/inn-1.7.2q/nnrpd/misc.c:85:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(strcpy(p, *v)); data/inn-1.7.2q/nnrpd/misc.c:196:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(av1) != 6 || strlen(av2) != 6) data/inn-1.7.2q/nnrpd/misc.c:196:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(av1) != 6 || strlen(av2) != 6) data/inn-1.7.2q/nnrpd/misc.c:444:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read(STDIN, buffer, sizeof buffer); data/inn-1.7.2q/nnrpd/newnews.c:48:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). files[0] + strlen(files[0]) + 1); data/inn-1.7.2q/nnrpd/newnews.c:156:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (getc(F) != '\n' && ++middle <= upper) data/inn-1.7.2q/nnrpd/nnrpd.c:227:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(buff); data/inn-1.7.2q/nnrpd/nnrpd.c:240:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)pstat(PSTAT_SETCMD, un, strlen(buff), 0, 0); data/inn-1.7.2q/nnrpd/nnrpd.c:266:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(hostname, hp->h_name, i); data/inn-1.7.2q/nnrpd/nnrpd.c:292:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. (void)strcat(hostname, "."); data/inn-1.7.2q/nnrpd/nnrpd.c:396:19: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. (void)strcpy(ClientHost, "?"); /* so stats generation looks correct. */ data/inn-1.7.2q/nnrpd/nnrpd.c:411:12: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. (void)strcat(ClientHost, "."); data/inn-1.7.2q/nnrpd/nnrpd.c:441:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (LogName,ClientHost,sizeof(LogName) - 1) ; data/inn-1.7.2q/nnrpd/nnrpd.c:499:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buff + strlen(buff) - 1; data/inn-1.7.2q/nnrpd/nnrpd.c:558:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TITLEend = argv[argc - 1] + strlen(argv[argc - 1]) - 1; data/inn-1.7.2q/nnrpd/nnrpd.c:610:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (LogName,"?") ; data/inn-1.7.2q/nnrpd/nnrpd.c:714:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(buff) > 40) data/inn-1.7.2q/nnrpd/perl.c:56:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hv_store(hdr, (char *) hp->Name, strlen(hp->Name), newSVpv(hp->Value, 0), 0); data/inn-1.7.2q/nnrpd/perl.c:75:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, p, sizeof(buf) - 1); data/inn-1.7.2q/nnrpd/post.c:119:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(p); data/inn-1.7.2q/nnrpd/post.c:125:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, sizeof buff - 4); data/inn-1.7.2q/nnrpd/post.c:130:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, sizeof buff - 14); data/inn-1.7.2q/nnrpd/post.c:136:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(buff, p, sizeof buff - 17); data/inn-1.7.2q/nnrpd/post.c:138:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(&buff[sizeof buff - 14], &q[-5], 10); data/inn-1.7.2q/nnrpd/post.c:154:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (p = start + strlen(start); p > start && CTYPE(isspace, p[-1]); ) data/inn-1.7.2q/nnrpd/post.c:589:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(article); data/inn-1.7.2q/nnrpd/post.c:792:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(article); data/inn-1.7.2q/nnrpd/post.c:837:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hp->Size = strlen(hp->Name); data/inn-1.7.2q/nnrpd/post.c:862:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(frombuf, HDR(_from), sizeof(frombuf) - 1); data/inn-1.7.2q/nnrpd/post.c:879:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(article) > LOCAL_MAX_ARTSIZE) { data/inn-1.7.2q/nnrpd/post.c:973:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(idbuff, HDR(_messageid), SMBUF - 1); data/inn-1.7.2q/syslog/logger.c:112:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(*argv); data/inn-1.7.2q/syslog/syslog.c:76:35: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). extern char *index(), *strcpy(), *strncpy(), *strcat(); data/inn-1.7.2q/syslog/syslog.c:78:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). extern size_t strlen(); data/inn-1.7.2q/syslog/syslog.c:173:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cnt = strlen(tbuf); data/inn-1.7.2q/syslog/syslog.c:225:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(SyslogAddr.sa_data, _PATH_LOGNAME, data/inn-1.7.2q/syslog/syslogd.c:351:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(sunx.sun_path, LogName, sizeof sunx.sun_path); data/inn-1.7.2q/syslog/syslogd.c:429:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(fklog, line, sizeof(line) - 1); data/inn-1.7.2q/syslog/syslogd.c:536:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lp = line + strlen(line); data/inn-1.7.2q/syslog/syslogd.c:617:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msglen = strlen(msg); data/inn-1.7.2q/syslog/syslogd.c:669:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(f->f_lasttime, timestamp, 15); data/inn-1.7.2q/syslog/syslogd.c:689:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(f->f_lasttime, timestamp, 15); data/inn-1.7.2q/syslog/syslogd.c:690:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(f->f_prevhost, from, data/inn-1.7.2q/syslog/syslogd.c:723:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v->iov_len = strlen(greetings); data/inn-1.7.2q/syslog/syslogd.c:737:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v->iov_len = strlen(v->iov_base); data/inn-1.7.2q/syslog/syslogd.c:745:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v->iov_len = strlen(msg); data/inn-1.7.2q/syslog/syslogd.c:750:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v->iov_len = strlen(repbuf); data/inn-1.7.2q/syslog/syslogd.c:769:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(line); data/inn-1.7.2q/syslog/syslogd.c:1233:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(f->f_un.f_uname[i], p, UT_NAMESIZE); ANALYSIS SUMMARY: Hits = 1723 Lines analyzed = 48463 in approximately 2.21 seconds (21913 lines/second) Physical Source Lines of Code (SLOC) = 35542 Hits@level = [0] 1462 [1] 435 [2] 749 [3] 48 [4] 482 [5] 9 Hits@level+ = [0+] 3185 [1+] 1723 [2+] 1288 [3+] 539 [4+] 491 [5+] 9 Hits/KSLOC@level+ = [0+] 89.6123 [1+] 48.4779 [2+] 36.2388 [3+] 15.1652 [4+] 13.8146 [5+] 0.253222 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.