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/seyon-2.20c/SeMisc.c Examining data/seyon-2.20c/MultiList.h Examining data/seyon-2.20c/MultiListP.h Examining data/seyon-2.20c/SeSig.c Examining data/seyon-2.20c/SeSig.h Examining data/seyon-2.20c/authPic.h Examining data/seyon-2.20c/Seyon.ad.h Examining data/seyon-2.20c/progIcon.h Examining data/seyon-2.20c/SeGeneric.c Examining data/seyon-2.20c/seyon.h Examining data/seyon-2.20c/SeIo.c Examining data/seyon-2.20c/SeParse.h Examining data/seyon-2.20c/config.h Examining data/seyon-2.20c/MultiList.c Examining data/seyon-2.20c/SeActions.c Examining data/seyon-2.20c/SeDial.c Examining data/seyon-2.20c/SeErr.c Examining data/seyon-2.20c/SeInit.c Examining data/seyon-2.20c/SePort.c Examining data/seyon-2.20c/SeScan.c Examining data/seyon-2.20c/SeSet.c Examining data/seyon-2.20c/SeString.c Examining data/seyon-2.20c/SeSubs.c Examining data/seyon-2.20c/SeSubsX.c Examining data/seyon-2.20c/SeTerm.c Examining data/seyon-2.20c/SeTrans.c Examining data/seyon-2.20c/SeWin.c Examining data/seyon-2.20c/SeDecl.h Examining data/seyon-2.20c/SeScript.c Examining data/seyon-2.20c/SeSupp.c Examining data/seyon-2.20c/Seyon.c FINAL RESULTS: data/seyon-2.20c/MultiList.c:91:21: [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). #define StrCopy(s) strcpy(TypeAlloc(char,strlen(s)+1),s) data/seyon-2.20c/MultiList.c:92:32: [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). #define StrCopyRetLength(s,lp) strcpy(TypeAlloc(char,(*lp=(strlen(s)+1))),s) data/seyon-2.20c/MultiList.c:1440:4: [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(buffer,string); data/seyon-2.20c/SeActions.c:325:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((lptr = line), "%s %s", param[0], param[1]); data/seyon-2.20c/SeDial.c:673:14: [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. length = fprintf(devnull, qres.dialDirFormat, data/seyon-2.20c/SeDial.c:689:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(disItemsBuf, qres.dialDirFormat, data/seyon-2.20c/SeInit.c:76:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(captureFile, "%s/%s", buffer, qres.captureFile); data/seyon-2.20c/SeInit.c:241:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msgStr, "%s %s rev. %s\n%s\n%s\n%s", "Seyon version", VERSION, data/seyon-2.20c/SePort.c:1051:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lckf, "%s/%s%s", LF_PATH, LF_PREFIX, (modemname + 1)); data/seyon-2.20c/SePort.c:1061:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lckf, "%s/%s%s", LF_PATH, LF_PREFIX, (modem_port)); data/seyon-2.20c/SePort.c:1075:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lckf,"%s/%s%03u.%03u.%03u", LF_PATH, LF_PREFIX, major(mbuf.st_dev), data/seyon-2.20c/SePort.c:1085:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ltmp, "%s/%s%d", LF_PATH, "LTMP.", pid); data/seyon-2.20c/SeString.c:113: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). return strcpy(dest, bufptr); data/seyon-2.20c/SeString.c:169:18: [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. length = fprintf(devnull, fmt, a, b, c); data/seyon-2.20c/SeString.c:173:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(strBuf, fmt, a, b, c); data/seyon-2.20c/SeSubs.c:76:5: [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. fprintf(tfp, fmt, a, b, c); data/seyon-2.20c/SeSubs.c:255:4: [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(shell, shell, (char*)NULL); data/seyon-2.20c/SeSubs.c:261:9: [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(shell, shell, "-c", scmd, (char*)NULL); data/seyon-2.20c/SeSubs.c:419: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). line[i] = strcpy((char *)malloc(sizeof(buffer)), SSpc(buffer)); data/seyon-2.20c/SeSubsX.c:96:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(vermsg, "Welcome to Seyon version %s.%s", VERSION, REVISION); data/seyon-2.20c/Seyon.c:198:9: [4] (shell) execvp: 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. execvp(arg[0], arg); data/seyon-2.20c/Seyon.c:204:9: [4] (shell) execvp: 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. execvp(arg[0], arg); data/seyon-2.20c/Seyon.c:321:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(startupAction + strlen(startupAction), data/seyon-2.20c/SeActions.c:171:53: [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 (termWindowId == NULL) termWindowId = (String)getenv("WINDOWID"); data/seyon-2.20c/SeActions.c:254:53: [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 (termWindowId == NULL) termWindowId = (String)getenv("WINDOWID"); data/seyon-2.20c/SeSubs.c:225:24: [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. shell = (char*)getenv("SHELL"); data/seyon-2.20c/SeSubs.c:327:25: [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 ((home = (char *) getenv("HOME")) == NULL) data/seyon-2.20c/config.h:213: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. extern char *getenv(); data/seyon-2.20c/SeActions.c:173:45: [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). XIconifyWindow(XtDisplay(widget), (Window)atol(termWindowId), data/seyon-2.20c/SeActions.c:256:41: [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). XMapRaised(XtDisplay(widget), (Window)atol(termWindowId)); data/seyon-2.20c/SeActions.c:352: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). sleep(atoi(*param)); data/seyon-2.20c/SeActions.c:387: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 actionName[SM_BUF], data/seyon-2.20c/SeDecl.h:405: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 captureFile[REG_BUF], data/seyon-2.20c/SeDial.c:46: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 number[LIT_BUF]; data/seyon-2.20c/SeDial.c:47: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 name[LIT_BUF]; data/seyon-2.20c/SeDial.c:48: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 baud[10]; data/seyon-2.20c/SeDial.c:52: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 prefix[LIT_BUF]; data/seyon-2.20c/SeDial.c:53: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 suffix[LIT_BUF]; data/seyon-2.20c/SeDial.c:54: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 script[SM_BUF]; data/seyon-2.20c/SeDial.c:60: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 *script_file, data/seyon-2.20c/SeDial.c:85: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 phoneFile[REG_BUF]; data/seyon-2.20c/SeDial.c:329: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 phoneNumber[SM_BUF]; data/seyon-2.20c/SeDial.c:438: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 *ptr, data/seyon-2.20c/SeDial.c:463: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 svar[TIN_BUF], data/seyon-2.20c/SeDial.c:466: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(svar, "%d", *var); /* safe */ data/seyon-2.20c/SeDial.c:467: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(sdef, "%d", def); /* safe */ data/seyon-2.20c/SeDial.c:472: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). *var = atoi(svar); data/seyon-2.20c/SeDial.c:512: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 modemResponse[SM_BUF], data/seyon-2.20c/SeDial.c:571: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(dialMsg, "%1.1d ", dialTry); data/seyon-2.20c/SeDial.c:617: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 *buf, data/seyon-2.20c/SeDial.c:620: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 filename[LRG_BUF]; data/seyon-2.20c/SeDial.c:665: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). devnull = fopen("/dev/null", "r+"); data/seyon-2.20c/SeGeneric.c:32: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 buffer[REG_BUF + 1], data/seyon-2.20c/SeGeneric.c:76: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 num[TIN_BUF], *numPtr; data/seyon-2.20c/SeGeneric.c:89: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). intArr[i] = atoi(num); data/seyon-2.20c/SeGeneric.c:140: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 readBuf[BUFSIZ], data/seyon-2.20c/SeInit.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 buffer[REG_BUF]; data/seyon-2.20c/SeInit.c:118: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 qKBuf[LRG_BUF]; data/seyon-2.20c/SeInit.c:160: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. sprintf(qKBuf, "quickKey%d", i+1); /* qKBuf is large enough here... */ data/seyon-2.20c/SeInit.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 msgStr[LRG_BUF]; data/seyon-2.20c/SeMisc.c:38: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 captureFile[REG_BUF]; data/seyon-2.20c/SeMisc.c:130: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 ((cfp = fopen(captureFile, "a")) == NULL) { data/seyon-2.20c/SeMisc.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 fullname[REG_BUF]; data/seyon-2.20c/SeMisc.c:234: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 ((fp = fopen(fullname, "r")) == NULL) { data/seyon-2.20c/SePort.c:97: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 modem_port[REG_BUF]; /* modem port device file string */ data/seyon-2.20c/SePort.c:381: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). if (atol(baud[baudIndex]) == retBaud) data/seyon-2.20c/SePort.c:620: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). switch (atol(s)) { /* range than in sgtty.h */ data/seyon-2.20c/SePort.c:794: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 ((mfd = open(modem, O_RDWR | O_NDELAY)) < 0) data/seyon-2.20c/SePort.c:1007: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 lckf[SM_BUF]; data/seyon-2.20c/SePort.c:1008: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 ltmp[SM_BUF]; data/seyon-2.20c/SePort.c:1035: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 pidstr[20], data/seyon-2.20c/SePort.c:1100: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(pidstr, "%10d\n", pid); data/seyon-2.20c/SePort.c:1121: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 ((lfd = open(lckf, O_RDONLY)) != -1) { data/seyon-2.20c/SePort.c:1126: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). lckpid = atol(lckpidstr); data/seyon-2.20c/SeScan.c:207: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 intstr[4]; int next = 0; data/seyon-2.20c/SeScan.c:227: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 special[26] = data/seyon-2.20c/SeScript.c:28: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 scriptDirectory[REG_BUF]; data/seyon-2.20c/SeScript.c:96: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 *scriptDir, data/seyon-2.20c/SeScript.c:142: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 wf[MAX_LINE]; data/seyon-2.20c/SeScript.c:215: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). waitfor_time = atoi(word); data/seyon-2.20c/SeScript.c:302:18: [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). pause_time = atoi(word); data/seyon-2.20c/SeScript.c:320: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 label[WBSIZE]; data/seyon-2.20c/SeScript.c:538: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 ((cf = fopen(captureFile, "a")) == NULL) { data/seyon-2.20c/SeSet.c:69: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 value[SM_BUF]; data/seyon-2.20c/SeSet.c:307: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 kw[SM_BUF]; data/seyon-2.20c/SeSet.c:595:18: [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). MdmSetGetCSize(atoi(word)); data/seyon-2.20c/SeSet.c:602: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). MdmSetGetParity(atoi(word)); data/seyon-2.20c/SeSet.c:609: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). MdmSetGetStopBits(atoi(word)); data/seyon-2.20c/SeString.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 buf[TIN_BUF]; data/seyon-2.20c/SeString.c:30: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, "%d", num); data/seyon-2.20c/SeString.c:101: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 buffer[REG_BUF], data/seyon-2.20c/SeString.c:133: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 strBuf[LRG_BUF]; data/seyon-2.20c/SeString.c:147: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 strBuf[LRG_BUF]; data/seyon-2.20c/SeString.c:163:19: [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). devnull = fopen("/dev/null", "r+"); data/seyon-2.20c/SeSubs.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 buf[REG_BUF]; data/seyon-2.20c/SeSubs.c:106: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[REG_BUF]; data/seyon-2.20c/SeSubs.c:128: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[REG_BUF]; data/seyon-2.20c/SeSubs.c:217: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 cmd[REG_BUF], data/seyon-2.20c/SeSubs.c:317: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 *home, data/seyon-2.20c/SeSubs.c:368: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 *fullname, data/seyon-2.20c/SeSubs.c:376:19: [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 ((fp = fopen(fullname, "r")) != NULL) { data/seyon-2.20c/SeSubs.c:383: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 ((fp = fopen(fullname, "r")) != NULL) { data/seyon-2.20c/SeSubs.c:390: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 ((fp = fopen(name, "r")) != NULL) { data/seyon-2.20c/SeSubs.c:415: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[REG_BUF + 1]; data/seyon-2.20c/SeSubsX.c:48: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 buf[10]; data/seyon-2.20c/SeSubsX.c:74: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(buf, "%02ld:%02ld", onlineTime / 60, onlineTime % 60); data/seyon-2.20c/SeSubsX.c:88: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 vermsg[SM_BUF]; data/seyon-2.20c/SeSubsX.c:111: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 msg[80]; data/seyon-2.20c/SeSubsX.c:112: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 arg[90]; data/seyon-2.20c/SeSupp.c:26: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 line[WBSIZE]; /* Input line */ data/seyon-2.20c/SeSupp.c:27: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 word[WBSIZE]; /* Parsed word */ data/seyon-2.20c/SeSupp.c:174: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 nextWord[LRG_BUF], *linePtr; data/seyon-2.20c/SeTerm.c:180: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 buf[BUFSIZ], c; data/seyon-2.20c/SeTrans.c:29: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 name[LIT_BUF]; data/seyon-2.20c/SeTrans.c:30: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 command[REG_BUF]; data/seyon-2.20c/SeTrans.c:48: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 protocolsFile[REG_BUF]; data/seyon-2.20c/SeTrans.c:80: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 lastUploadFile[REG_BUF]; data/seyon-2.20c/SeTrans.c:91: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 fullCommand[LRG_BUF]; data/seyon-2.20c/SeTrans.c:95: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 ((transCurItemIndex = atoi(actionData[0]) - 1) < 0 || data/seyon-2.20c/SeTrans.c:185: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 *buf, data/seyon-2.20c/SeWin.c:371: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 getValueDefValue[REG_BUF]; data/seyon-2.20c/Seyon.c:82: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 *arg[REG_BUF], data/seyon-2.20c/Seyon.c:90: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 large_string[LRG_BUF]; data/seyon-2.20c/Seyon.c:95: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 modemList[LRG_BUF], data/seyon-2.20c/Seyon.c:231: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 ((tfp = fopen("/dev/tty", "r+")) == NULL) { data/seyon-2.20c/MultiList.c:79: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). #define FontW(f,s) (XTextWidth(f,s,strlen(s)) + 1) data/seyon-2.20c/MultiList.c:88: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). #define XtStrlen(s) ((s) ? strlen(s) : 0) data/seyon-2.20c/MultiList.c:91: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). #define StrCopy(s) strcpy(TypeAlloc(char,strlen(s)+1),s) data/seyon-2.20c/MultiList.c:92:60: [1] (buffer) strlen: Does not handle 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 StrCopyRetLength(s,lp) strcpy(TypeAlloc(char,(*lp=(strlen(s)+1))),s) data/seyon-2.20c/MultiList.c:1090: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). strlen(MultiListItemString(item))); data/seyon-2.20c/MultiList.c:1430: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). byte_count = byte_count + strlen(string) + 1; data/seyon-2.20c/MultiList.c:1436:16: [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. if (i != 0) strcat(buffer,"\n"); data/seyon-2.20c/SeActions.c:323: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 = 1 + strlen(param[0]) + strlen(param[1]); data/seyon-2.20c/SeActions.c:323: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). length = 1 + strlen(param[0]) + strlen(param[1]); data/seyon-2.20c/SeActions.c:428:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(actionName, stringData, sizeof(actionName)); data/seyon-2.20c/SeActions.c:433:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((argsArray[numArgs] = args[numArgs]), stringData, SM_BUF); data/seyon-2.20c/SeDial.c:92:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(phoneFile, qres.phoneFile, REG_BUF); data/seyon-2.20c/SeDial.c:331:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(phoneNumber, XawDialogGetValueString(dialog), SM_BUF); data/seyon-2.20c/SeDial.c:344:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(phone_number, phoneNumber, SM_BUF); data/seyon-2.20c/SeDial.c:443: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). ptr += strlen(keyword); data/seyon-2.20c/SeDial.c:445:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, ptr, REG_BUF); data/seyon-2.20c/SeDial.c:447:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(var, wrd, sizeof(*var)); data/seyon-2.20c/SeDial.c:450:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(var, "CURRENT", sizeof(*var)); data/seyon-2.20c/SeDial.c:453:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(var, def, sizeof(*var)); data/seyon-2.20c/SeDial.c:499:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(dialMsg, "TIMEOUT", SM_BUF); data/seyon-2.20c/SeDial.c:539:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dialString, FmtString("\r%s %s%s", ddItems[k]->prefix, data/seyon-2.20c/SeDial.c:557:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dialString, FmtString("\r%s %s%s", qres.dialPrefix, phone_number, data/seyon-2.20c/SeDial.c:564:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(dialMsg, "Dialing ", length_remaining); data/seyon-2.20c/SeDial.c:565:25: [1] (buffer) strlen: Does not handle 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_remaining -= strlen("Dialing "); data/seyon-2.20c/SeDial.c:566:5: [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. strncat(dialMsg, itemName, length_remaining); data/seyon-2.20c/SeDial.c:569:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(dialMsg, "Redialing ", length_remaining); data/seyon-2.20c/SeDial.c:570:25: [1] (buffer) strlen: Does not handle 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_remaining -= strlen("Redialing "); data/seyon-2.20c/SeDial.c:573:5: [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. strncat(dialMsg, itemName, length_remaining); data/seyon-2.20c/SeDial.c:593: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). strncmp(modemResponse, bufPtr, strlen(bufPtr)) == 0) { data/seyon-2.20c/SeDial.c:602: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). strncmp(modemResponse, bufPtr, strlen(bufPtr)) == 0) { data/seyon-2.20c/SeDial.c:603:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dialMsg, modemResponse, SM_BUF); data/seyon-2.20c/SeDial.c:626:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, fname, REG_BUF); data/seyon-2.20c/SeGeneric.c:40: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). buffer[strlen(buffer) - 1] = '\0'; data/seyon-2.20c/SeGeneric.c:113:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read(fd, buf, BUFSIZ); data/seyon-2.20c/SeGeneric.c:245:1: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(usec) data/seyon-2.20c/SeInit.c:75: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(REG_BUF > (1 + strlen(buffer) + strlen(qres.captureFile))) data/seyon-2.20c/SeInit.c:75: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). if(REG_BUF > (1 + strlen(buffer) + strlen(qres.captureFile))) data/seyon-2.20c/SeMisc.c:252:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc(fp)) != EOF) { data/seyon-2.20c/SeMisc.c:254:35: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. if (c == '\r' || c == '\n') usleep(MDELAY); data/seyon-2.20c/SePort.c:134:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(MDELAY); data/seyon-2.20c/SePort.c:152:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(MDELAY); data/seyon-2.20c/SePort.c:363:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(modem_port, s, sizeof(modem_port)); data/seyon-2.20c/SePort.c:994:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(MDELAY); data/seyon-2.20c/SePort.c:1015:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(modem_port, modem, REG_BUF); data/seyon-2.20c/SePort.c:1050: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( SM_BUF > (1 + strlen(LF_PATH) + strlen(LF_PREFIX) + strlen(modemname))) data/seyon-2.20c/SePort.c:1050:45: [1] (buffer) strlen: Does not handle 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( SM_BUF > (1 + strlen(LF_PATH) + strlen(LF_PREFIX) + strlen(modemname))) data/seyon-2.20c/SePort.c:1050:65: [1] (buffer) strlen: Does not handle 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( SM_BUF > (1 + strlen(LF_PATH) + strlen(LF_PREFIX) + strlen(modemname))) data/seyon-2.20c/SePort.c:1060: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( SM_BUF > (1 + strlen(LF_PATH) + strlen(LF_PREFIX) + strlen(modem_port))) data/seyon-2.20c/SePort.c:1060:45: [1] (buffer) strlen: Does not handle 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( SM_BUF > (1 + strlen(LF_PATH) + strlen(LF_PREFIX) + strlen(modem_port))) data/seyon-2.20c/SePort.c:1060:65: [1] (buffer) strlen: Does not handle 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( SM_BUF > (1 + strlen(LF_PATH) + strlen(LF_PREFIX) + strlen(modem_port))) data/seyon-2.20c/SePort.c:1074: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( SM_BUF > (10 + strlen(LF_PATH) + strlen(LF_PREFIX))) data/seyon-2.20c/SePort.c:1074: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). if( SM_BUF > (10 + strlen(LF_PATH) + strlen(LF_PREFIX))) data/seyon-2.20c/SePort.c:1084: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( SM_BUF > (11 + strlen(LF_PATH))) data/seyon-2.20c/SePort.c:1124:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (nb = 0; nb < 20 && read(lfd, lckpidstr + nb, sizeof(char)); nb++); data/seyon-2.20c/SePort.c:1128:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(lfd, (char *)&lckpid, sizeof(lckpid)) == sizeof(lckpid)) { data/seyon-2.20c/SeScan.c:24: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). parseBufLen = strlen(line); data/seyon-2.20c/SeScript.c:103:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, scriptFileName, REG_BUF); data/seyon-2.20c/SeScript.c:134:12: [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. lptr = strcpy(line, ""); data/seyon-2.20c/SeScript.c:169: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 (word[strlen(word) - 1] == ':') /* Ignore labels */ data/seyon-2.20c/SeScript.c:207:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wf, word, MAX_LINE); data/seyon-2.20c/SeScript.c:336:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(label, word, WBSIZE); data/seyon-2.20c/SeScript.c:348: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). if (word[i = (strlen(word) - 1)] != ':') data/seyon-2.20c/SeSet.c:204:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vptr->value, modem_port, SM_BUF); data/seyon-2.20c/SeSet.c:685:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(source[0], (char*)¶m, sizeof(param)) == -1) data/seyon-2.20c/SeSig.c:164:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(pipefd[0], &sig_value, 1); data/seyon-2.20c/SeString.c:90: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). for (i = strlen(str) - 1; isspace(str[i]) && i; i--); data/seyon-2.20c/SeString.c:104:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, source, REG_BUF); data/seyon-2.20c/SeString.c:123: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). length = strlen(str); data/seyon-2.20c/SeString.c:190:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(str1) - strlen(str2) + 1; data/seyon-2.20c/SeString.c:190: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). int len = strlen(str1) - strlen(str2) + 1; data/seyon-2.20c/SeSubs.c:86:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(buf, "\r>> Error: ",REG_BUF); data/seyon-2.20c/SeSubs.c:87:5: [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. strncat(buf, msg, REG_BUF-12); data/seyon-2.20c/SeSubs.c:108:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(buf, "\r>> Warning: ",REG_BUF); data/seyon-2.20c/SeSubs.c:109:5: [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. strncat(buf, msg, REG_BUF-14); data/seyon-2.20c/SeSubs.c:130:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(buf, "\r>> Notice: ",REG_BUF); data/seyon-2.20c/SeSubs.c:131:5: [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. strncat(buf, msg, REG_BUF-13); data/seyon-2.20c/SeSubs.c:329:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, home, size); data/seyon-2.20c/SeSubs.c:330: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). buf += strlen(home); data/seyon-2.20c/SeSubs.c:377:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fname, fullname, size); data/seyon-2.20c/SeSubs.c:384:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fname, fullname, size); data/seyon-2.20c/SeSubs.c:391:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fname, name, REG_BUF); data/seyon-2.20c/SeSubs.c:460:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(pd[0], data, size); data/seyon-2.20c/SeSubsX.c:177:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(procRequest.msg, msg, 80); data/seyon-2.20c/SeSubsX.c:192:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(procRequest.msg, msg, 80); data/seyon-2.20c/SeSubsX.c:193:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(procRequest.arg, arg, 90); data/seyon-2.20c/SeSupp.c:213: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); /* Purge newline if found */ data/seyon-2.20c/SeTrans.c:54:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(protocolsFile, qres.protocolsFile, REG_BUF); data/seyon-2.20c/SeTrans.c:104:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fullCommand, protItems[transCurItemIndex]->command, LRG_BUF); data/seyon-2.20c/SeTrans.c:117: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). length_remaining = LRG_BUF - strlen(fullCommand); data/seyon-2.20c/SeTrans.c:118:4: [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. strncat(fullCommand, " ", length_remaining); data/seyon-2.20c/SeTrans.c:120:4: [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. strncat(fullCommand, actionData[1], length_remaining); data/seyon-2.20c/SeTrans.c:146:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lastUploadFile, XawDialogGetValueString(dialog), REG_BUF); data/seyon-2.20c/SeWin.c:380:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(getValueDefValue, XawDialogGetValueString(dialog), REG_BUF); data/seyon-2.20c/SeWin.c:942:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000L); data/seyon-2.20c/Seyon.c:120: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). strncmp(argv[i], "-noemulator", max(4, strlen(argv[i]))); i++); data/seyon-2.20c/Seyon.c:126:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncmp(argv[i], "-emulator", max(3, strlen(argv[i]))); i++); data/seyon-2.20c/Seyon.c:128:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(termEmu, argv[i+1], REG_BUF); data/seyon-2.20c/Seyon.c:130:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(termEmu, SEYON_EMU_NAME, REG_BUF); data/seyon-2.20c/Seyon.c:134: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). strncmp(argv[i], "-nodefargs", max(5, strlen(argv[i]))); i++); data/seyon-2.20c/Seyon.c:166:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(arg[n], argv[0], LRG_BUF); data/seyon-2.20c/Seyon.c:167: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). length_remaining -= strlen(argv[0]); data/seyon-2.20c/Seyon.c:168: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). length = strlen(" -noemulator"); data/seyon-2.20c/Seyon.c:171:4: [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 string. strncat(arg[n], " -noemulator", length_remaining); data/seyon-2.20c/Seyon.c:180: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). length = strlen(argv[i]) + 1; data/seyon-2.20c/Seyon.c:183: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. strncat(arg[n]," ", 1); data/seyon-2.20c/Seyon.c:184: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. strncat(arg[n],argv[i], length_remaining); data/seyon-2.20c/Seyon.c:270:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(modemList, qres.modems, LRG_BUF); data/seyon-2.20c/Seyon.c:314:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(startupAction, qres.startupAction, LRG_BUF); data/seyon-2.20c/Seyon.c:315:25: [1] (buffer) strlen: Does not handle 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_remaining -= strlen(startupAction); data/seyon-2.20c/Seyon.c:318: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). length = strlen(" RunScript();") + strlen(qres.script); data/seyon-2.20c/Seyon.c:318: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). length = strlen(" RunScript();") + strlen(qres.script); data/seyon-2.20c/Seyon.c:321: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). sprintf(startupAction + strlen(startupAction), data/seyon-2.20c/Seyon.c:333: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). length = strlen(" DialEntries(Default);"); data/seyon-2.20c/Seyon.c:336:4: [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 string. strncat(startupAction, " DialEntries(Default);", length); data/seyon-2.20c/Seyon.c:392:9: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); ANALYSIS SUMMARY: Hits = 240 Lines analyzed = 12950 in approximately 0.35 seconds (36498 lines/second) Physical Source Lines of Code (SLOC) = 9174 Hits@level = [0] 30 [1] 115 [2] 97 [3] 5 [4] 23 [5] 0 Hits@level+ = [0+] 270 [1+] 240 [2+] 125 [3+] 28 [4+] 23 [5+] 0 Hits/KSLOC@level+ = [0+] 29.431 [1+] 26.1609 [2+] 13.6255 [3+] 3.0521 [4+] 2.50709 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) 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.