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/sl-modem-2.9.11~20110321/drivers/kernel-ver.c
Examining data/sl-modem-2.9.11~20110321/drivers/old_st7554.c
Examining data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c
Examining data/sl-modem-2.9.11~20110321/drivers/sysdep_amr.c
Examining data/sl-modem-2.9.11~20110321/drivers/st7554.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_param.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_timer.h
Examining data/sl-modem-2.9.11~20110321/modem/modem_debug.h
Examining data/sl-modem-2.9.11~20110321/modem/modem_defs.h
Examining data/sl-modem-2.9.11~20110321/modem/modem.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_test.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_dp.h
Examining data/sl-modem-2.9.11~20110321/modem/modem_homolog.h
Examining data/sl-modem-2.9.11~20110321/modem/modem_comp.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_ec.c
Examining data/sl-modem-2.9.11~20110321/modem/dp_sinus.c
Examining data/sl-modem-2.9.11~20110321/modem/homolog_data.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_param.h
Examining data/sl-modem-2.9.11~20110321/modem/modem_pack.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_datafile.c
Examining data/sl-modem-2.9.11~20110321/modem/sysdep_common.c
Examining data/sl-modem-2.9.11~20110321/modem/dp_dummy.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_timer.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_at.c
Examining data/sl-modem-2.9.11~20110321/modem/modem.h
Examining data/sl-modem-2.9.11~20110321/modem/modem_cmdline.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_debug.c
Examining data/sl-modem-2.9.11~20110321/modem/modem_main.c
Examining data/sl-modem-2.9.11~20110321/ungrab-winmodem/ungrab-winmodem.c

FINAL RESULTS:

data/sl-modem-2.9.11~20110321/modem/modem_main.c:711:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			ret = chown(pty_name, -1, grp->gr_gid);
data/sl-modem-2.9.11~20110321/modem/modem_main.c:719:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	ret = chmod(pty_name, modem_perm);
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:366:8:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	ret = vsprintf(p, fmt, args);
data/sl-modem-2.9.11~20110321/drivers/sysdep_amr.c:105:4:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	i=vsprintf(buf,fmt,args);
data/sl-modem-2.9.11~20110321/modem/modem.c:68:32:  [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 MODEM_INFO(fmt,arg...) printf(fmt , ##arg) ; dprintf(fmt , ##arg)
data/sl-modem-2.9.11~20110321/modem/modem_at.c:625:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(strval, "+%s=", cmd);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:681:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(strval, "+%s=", cmd);
data/sl-modem-2.9.11~20110321/modem/modem_cmdline.c:56:25:  [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.
#define PR_INFO(fmt...) fprintf(stderr, fmt )
data/sl-modem-2.9.11~20110321/modem/modem_debug.c:106:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(debug_temp + i, sizeof(debug_temp) - i, fmt, args);
data/sl-modem-2.9.11~20110321/modem/modem_debug.h:84:30:  [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.
     __attribute__ ((format (printf, 1, 2)));
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:219:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	i = sprintf(print_buf,"(va/vs/vr %d/%d/%d) %s: %s %s",
data/sl-modem-2.9.11~20110321/modem/modem_main.c:79:27:  [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.
#define INFO(fmt,args...) fprintf(stderr, fmt , ##args );
data/sl-modem-2.9.11~20110321/modem/modem_main.c:80:26:  [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.
#define ERR(fmt,args...) fprintf(stderr, "error: " fmt , ##args );
data/sl-modem-2.9.11~20110321/modem/modem_main.c:980:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path_name,"/var/lib/slmodem/data.%s",basename(dev_name));
data/sl-modem-2.9.11~20110321/modem/modem_test.c:58:27:  [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.
#define INFO(fmt,args...) fprintf(stderr, fmt , ##args );
data/sl-modem-2.9.11~20110321/modem/modem_test.c:59:26:  [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.
#define ERR(fmt,args...) fprintf(stderr, "error: " fmt , ##args );
data/sl-modem-2.9.11~20110321/modem/modem_test.c:62:30:  [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(stderr, "main: " fmt , ##args );
data/sl-modem-2.9.11~20110321/modem/modem_timer.c:53:22:  [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.
#define WARN(fmt...) fprintf(stderr, fmt);
data/sl-modem-2.9.11~20110321/modem/sysdep_common.c:71: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).
	return strcpy(d,s);
data/sl-modem-2.9.11~20110321/modem/sysdep_common.c:75:9:  [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).
	return strcat(d,s);
data/sl-modem-2.9.11~20110321/modem/sysdep_common.c:100:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        return vsnprintf(str, size, format, ap);
data/sl-modem-2.9.11~20110321/modem/sysdep_common.c:108:4:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	i=vsprintf(buf,fmt,args);
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:207: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 ibuf[2048];
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:208: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 obuf[2048];
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:351: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 temp[4096];
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.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.
	len = sprintf(p, "<%c%03ld.%06ld> ",
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:695: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[8];
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:696: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(buf, "slamr%d", i);
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:724: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[8];
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:726: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(buf, "slamr%d", amrmo->num);
data/sl-modem-2.9.11~20110321/drivers/old_st7554.c:243:3:  [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(db->buf + db->head, buffer, cnt);
data/sl-modem-2.9.11~20110321/drivers/old_st7554.c:1299: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[8];
data/sl-modem-2.9.11~20110321/drivers/old_st7554.c:1300: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(buf, "slusb%d", s->minor);
data/sl-modem-2.9.11~20110321/drivers/old_st7554.c:1333: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[8];
data/sl-modem-2.9.11~20110321/drivers/old_st7554.c:1335: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(buf, "slusb%d", s->minor);
data/sl-modem-2.9.11~20110321/drivers/st7554.c:282:3:  [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(db->buf + db->head, buffer, cnt);
data/sl-modem-2.9.11~20110321/drivers/sysdep_amr.c:82: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.
	return memcpy(d,s,l);
data/sl-modem-2.9.11~20110321/modem/modem.c:301: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 rate_str[16];
data/sl-modem-2.9.11~20110321/modem/modem.c:303: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(rate_str,"%d",m->tx_rate);
data/sl-modem-2.9.11~20110321/modem/modem.c:312: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 rate_str[16];
data/sl-modem-2.9.11~20110321/modem/modem.c:313:4:  [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(rate_str," %d",m->rx_rate);
data/sl-modem-2.9.11~20110321/modem/modem.c:911:17:  [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(buf, m->xmit.buf + m->xmit.tail, cnt);
data/sl-modem-2.9.11~20110321/modem/modem.c:1857:17:  [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(m->xmit.buf + m->xmit.head, buf, cnt);
data/sl-modem-2.9.11~20110321/modem/modem.h:166: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 obuf[1024];
data/sl-modem-2.9.11~20110321/modem/modem.h:285:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sregs[256];   /* s-registers */
data/sl-modem-2.9.11~20110321/modem/modem.h:289: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 at_line[64];
data/sl-modem-2.9.11~20110321/modem/modem.h:290: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 at_cmd[64];
data/sl-modem-2.9.11~20110321/modem/modem.h:304: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 dial_string[128];
data/sl-modem-2.9.11~20110321/modem/modem.h:382: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[256];
data/sl-modem-2.9.11~20110321/modem/modem_at.c:249: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 str[10];
data/sl-modem-2.9.11~20110321/modem/modem_at.c:250:4:  [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(str,"s%.2d=%.3d ",i,m->sregs[i]);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:318: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 strval[8];
data/sl-modem-2.9.11~20110321/modem/modem_at.c:319: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.
			int l = sprintf(strval,"%d",val);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:388: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 strval[8];
data/sl-modem-2.9.11~20110321/modem/modem_at.c:402: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.
				n = sprintf(strval,"%x,",h->id);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:420:7:  [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.
		n = sprintf(strval,"%x",m->homolog->id);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:436: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 strval[32];
data/sl-modem-2.9.11~20110321/modem/modem_at.c:455: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(strval,"%d",drv->id);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:459:4:  [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(strval,"(%u-%u),",MODEM_MIN_RATE,MODEM_MAX_RATE);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:502:7:  [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.
		n = sprintf(strval,"%d,%d,%u,%u",MODEM_DP(m),MODEM_AUTOMODE(m),
data/sl-modem-2.9.11~20110321/modem/modem_at.c:614: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 strval[32];
data/sl-modem-2.9.11~20110321/modem/modem_at.c:631: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(strval, "%d-%d", prm->min, prm->max);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:687:4:  [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(strval, "%d", *prm->val);
data/sl-modem-2.9.11~20110321/modem/modem_comp.c:103: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 _str[COMP_MAX_STRING+1];
data/sl-modem-2.9.11~20110321/modem/modem_comp.c:214:2:  [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(c->obuf+c->olen,c->str_data,c->str_len);
data/sl-modem-2.9.11~20110321/modem/modem_comp.c:835:17:  [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(buf,c->obuf+c->ohead,ret);
data/sl-modem-2.9.11~20110321/modem/modem_datafile.c:75: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(file_name, 0, 0);
data/sl-modem-2.9.11~20110321/modem/modem_datafile.c:102:2:  [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(info,&dr->dsp_info,sizeof(*info));
data/sl-modem-2.9.11~20110321/modem/modem_datafile.c:116: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(file_name,O_CREAT|O_WRONLY,(S_IRUSR|S_IWUSR));
data/sl-modem-2.9.11~20110321/modem/modem_datafile.c:126:2:  [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(&dr->dsp_info,info,sizeof(*info));
data/sl-modem-2.9.11~20110321/modem/modem_debug.c:100: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 debug_temp[512];
data/sl-modem-2.9.11~20110321/modem/modem_debug.c:141: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_name[PATH_MAX];
data/sl-modem-2.9.11~20110321/modem/modem_debug.h:75: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     data[0];
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:190: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 print_buf[(LAPM_MAX_INFO_SIZE+3)*2];
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:257: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.
			i += sprintf(str_buf + i,"HDLC_OPTFUNC = 0x%x, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:262: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.
			i += sprintf(str_buf + i,"TX_INFOSIZE = %u, ",pval>>3);
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:266: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.
			i += sprintf(str_buf + i,"RX_INFOSIZE = %u, ",pval>>3);
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:269: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.
			i += sprintf(str_buf + i,"TX_WINSIZE = %u, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:273: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.
			i += sprintf(str_buf + i,"RX_WINSIZE = %u, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:277: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.
			i += sprintf(str_buf + i,"??, ");
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:299: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.
			i += sprintf(str_buf + i,"PARAM_SETID = 0x%x, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:303: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.
			i += sprintf(str_buf + i,"V42BIS_REQUEST = 0x%x, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:307: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.
			i += sprintf(str_buf + i,"V42BIS_CWNUM = %d, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:311: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.
			i += sprintf(str_buf + i,"V42BIS_MAXSTR = %d, ",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:315: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.
			i += sprintf(str_buf + i,"??, ");
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:329: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.
	i = sprintf(print_buf,"XID: FID %02x;\n",*buf);
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:342: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.
			i += sprintf(print_buf+i,"GI_PARAMS(%d): ",glen);
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:346: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.
			i += sprintf(print_buf+i,"GI_PRIVATE_PARAMS(%d): ",glen);
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:350: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.
			i += sprintf(print_buf+i,"unknown GI = 0x%x (%d) ??\n",
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:404:3:  [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(f->buf+2,info,len);
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:868:3:  [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(l->rx_buf,f->buf+3+ret,l->rx_count);
data/sl-modem-2.9.11~20110321/modem/modem_main.c:130: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  inbuf[4096];
data/sl-modem-2.9.11~20110321/modem/modem_main.c:131: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 outbuf[4096];
data/sl-modem-2.9.11~20110321/modem/modem_main.c:148: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 card_name[32];
data/sl-modem-2.9.11~20110321/modem/modem_main.c:156: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(card_name, "hw:%d", card_num);
data/sl-modem-2.9.11~20110321/modem/modem_main.c:639: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(dev_name,O_RDWR);
data/sl-modem-2.9.11~20110321/modem/modem_main.c:661: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 link_name[PATH_MAX];
data/sl-modem-2.9.11~20110321/modem/modem_main.c:944: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 path_name[PATH_MAX];
data/sl-modem-2.9.11~20110321/modem/modem_main.c:964: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(link_name,"/dev/ttySL%d", device.num);
data/sl-modem-2.9.11~20110321/modem/modem_pack.c:115:2:  [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(bit_buf,(1<<nbits)-1,bit_cnt);
data/sl-modem-2.9.11~20110321/modem/modem_test.c:97: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 inbuf[4096];
data/sl-modem-2.9.11~20110321/modem/modem_test.c:98: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 outbuf[4096];
data/sl-modem-2.9.11~20110321/modem/sysdep_common.c:91: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.
	return memcpy(d,s,l);
data/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:356: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).
	if (!fmt || !(len = strlen(fmt)))
data/sl-modem-2.9.11~20110321/drivers/sysdep_amr.c:87: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).
	return strlen(s);
data/sl-modem-2.9.11~20110321/drivers/sysdep_amr.c:92:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	return strncpy(d,s,l);
data/sl-modem-2.9.11~20110321/modem/modem.c:285: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).
				modem_put_chars(m,msg,strlen(msg));
data/sl-modem-2.9.11~20110321/modem/modem.c:291: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).
				modem_put_chars(m,msg,strlen(msg));
data/sl-modem-2.9.11~20110321/modem/modem.c:297: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).
				modem_put_chars(m,msg,strlen(msg));
data/sl-modem-2.9.11~20110321/modem/modem.c:304: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).
				modem_put_chars(m,rate_str,strlen(rate_str));
data/sl-modem-2.9.11~20110321/modem/modem.c:309: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).
		modem_put_chars(m,msg,strlen(msg));
data/sl-modem-2.9.11~20110321/modem/modem.c:314: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).
			modem_put_chars(m,rate_str,strlen(rate_str));
data/sl-modem-2.9.11~20110321/modem/modem.c:319: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).
		modem_put_chars(m,msg,strlen(msg));
data/sl-modem-2.9.11~20110321/modem/modem.c:827: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).
			m->at_count = strlen(m->at_line);
data/sl-modem-2.9.11~20110321/modem/modem.c:845: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).
			if (strlen(m->at_cmd) < 2 ||
data/sl-modem-2.9.11~20110321/modem/modem_at.c:173: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).
						strlen(m->dial_string));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:183:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m->dial_string,p,sizeof(m->dial_string));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:222: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).
		modem_send_to_tty(m,modem_name,strlen(modem_name));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:224: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).
		modem_send_to_tty(m,modem_version,strlen(modem_version));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:226: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).
		modem_send_to_tty(m,modem_author,strlen(modem_author));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:232: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).
		modem_send_to_tty(m,s,strlen(s));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:235: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).
		modem_send_to_tty(m,s,strlen(s));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:241: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).
		modem_send_to_tty(m, s, strlen(s));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:244: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).
		modem_send_to_tty(m, s, strlen(s));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:251: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).
			modem_send_to_tty(m,str,strlen(str));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:278: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).
		modem_send_to_tty(m,s,strlen(s));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:282: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).
		modem_send_to_tty(m,modem_name,strlen(modem_name));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:399: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).
			modem_send_to_tty(m,gci_string,strlen(gci_string));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:456: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).
				modem_send_to_tty(m,strval,strlen(strval));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:460: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).
			modem_send_to_tty(m,strval,strlen(strval));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:461: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).
			modem_send_to_tty(m,strval,strlen(strval)-1);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:626: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).
			modem_send_to_tty(m, strval, strlen(strval));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:628: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).
				modem_send_to_tty(m, prefix, strlen(prefix));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:632: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).
				modem_send_to_tty(m, strval, strlen(strval));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:638: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).
				modem_send_to_tty(m, suffix, strlen(suffix));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:644: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(strncmp(p,prefix,strlen(prefix)))
data/sl-modem-2.9.11~20110321/modem/modem_at.c:646: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).
			p += strlen(prefix);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:647: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).
			*len += strlen(prefix);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:668: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(strncmp(p,suffix,strlen(suffix)))
data/sl-modem-2.9.11~20110321/modem/modem_at.c:670: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).
			*len += strlen(suffix);
data/sl-modem-2.9.11~20110321/modem/modem_at.c:682: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).
		modem_send_to_tty(m, strval, strlen(strval));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:684: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).
			modem_send_to_tty(m, prefix, strlen(prefix));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:688: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).
			modem_send_to_tty(m, strval, strlen(strval));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:694: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).
			modem_send_to_tty(m, suffix, strlen(suffix));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:1114: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).
						modem_send_to_tty(m,modem_author,strlen(modem_author));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:1118:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						modem_send_to_tty(m,modem_name,strlen(modem_name));
data/sl-modem-2.9.11~20110321/modem/modem_at.c:1122:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						modem_send_to_tty(m,modem_version,strlen(modem_version));
data/sl-modem-2.9.11~20110321/modem/modem_cmdline.c:175: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(!strncmp(p,opt->name,strlen(opt->name)) ||
data/sl-modem-2.9.11~20110321/modem/modem_cmdline.c:178: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(!strncmp(p,opt->name,strlen(opt->name)))
data/sl-modem-2.9.11~20110321/modem/modem_cmdline.c:179: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).
					q = p + strlen(opt->name);
data/sl-modem-2.9.11~20110321/modem/modem_datafile.c:88:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd,(char *)dr,sizeof(*dr));
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:282:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	i += sprintf(str_buf+i,"\n");
data/sl-modem-2.9.11~20110321/modem/modem_ec.c:320:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	i += sprintf(str_buf+i,"\n");
data/sl-modem-2.9.11~20110321/modem/modem_main.c:612:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = read(dev->fd, buf, size*2);
data/sl-modem-2.9.11~20110321/modem/modem_main.c:897:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			count = read(m->pty,inbuf,count);
data/sl-modem-2.9.11~20110321/modem/modem_main.c:1049: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(100000);
data/sl-modem-2.9.11~20110321/modem/modem_test.c:258:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				count = read(t->in,inbuf,sizeof(inbuf)/2);
data/sl-modem-2.9.11~20110321/modem/modem_test.c:327:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				count = read(pty,inbuf,count);
data/sl-modem-2.9.11~20110321/modem/sysdep_common.c:67: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).
	return strlen(s);

ANALYSIS SUMMARY:

Hits = 159
Lines analyzed = 14763 in approximately 0.39 seconds (37886 lines/second)
Physical Source Lines of Code (SLOC) = 11033
Hits@level = [0]   7 [1]  56 [2]  81 [3]   0 [4]  20 [5]   2
Hits@level+ = [0+] 166 [1+] 159 [2+] 103 [3+]  22 [4+]  22 [5+]   2
Hits/KSLOC@level+ = [0+] 15.0458 [1+] 14.4113 [2+] 9.33563 [3+] 1.99402 [4+] 1.99402 [5+] 0.181274
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.