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/scmxx-0.9.0/src/helper/console.c
Examining data/scmxx-0.9.0/src/helper/output.c
Examining data/scmxx-0.9.0/src/helper/mem.c
Examining data/scmxx-0.9.0/src/helper/file.c
Examining data/scmxx-0.9.0/src/helper/num.c
Examining data/scmxx-0.9.0/src/helper/str_array.c
Examining data/scmxx-0.9.0/src/helper/str_list.c
Examining data/scmxx-0.9.0/src/helper/gsmnum.c
Examining data/scmxx-0.9.0/src/helper/str.c
Examining data/scmxx-0.9.0/src/adr2vcf/adr2vcf.h
Examining data/scmxx-0.9.0/src/adr2vcf/opt.c
Examining data/scmxx-0.9.0/src/adr2vcf/opt.h
Examining data/scmxx-0.9.0/src/adr2vcf/adr2vcf.c
Examining data/scmxx-0.9.0/src/options.h
Examining data/scmxx-0.9.0/src/smi/smifile.h
Examining data/scmxx-0.9.0/src/smi/opt.c
Examining data/scmxx-0.9.0/src/smi/opt.h
Examining data/scmxx-0.9.0/src/smi/smi_dec.c
Examining data/scmxx-0.9.0/src/smi/smifile.c
Examining data/scmxx-0.9.0/src/options/configfile.c
Examining data/scmxx-0.9.0/src/options/getopt.c
Examining data/scmxx-0.9.0/src/options/popt.c
Examining data/scmxx-0.9.0/src/options/common.c
Examining data/scmxx-0.9.0/src/disclaimer.h
Examining data/scmxx-0.9.0/src/smspdu.h
Examining data/scmxx-0.9.0/src/atcommand.h
Examining data/scmxx-0.9.0/src/scmxx/tty_bluetooth.c
Examining data/scmxx-0.9.0/src/scmxx/ttyaccess.c
Examining data/scmxx-0.9.0/src/scmxx/actions.c
Examining data/scmxx-0.9.0/src/scmxx/scmxx.c
Examining data/scmxx-0.9.0/src/scmxx/s35_pbook.c
Examining data/scmxx-0.9.0/src/scmxx/memtypes.c
Examining data/scmxx-0.9.0/src/scmxx/pbookphone.c
Examining data/scmxx-0.9.0/src/scmxx/ttyaccess.h
Examining data/scmxx-0.9.0/src/scmxx/scmxx.h
Examining data/scmxx-0.9.0/src/scmxx/pbookphone.h
Examining data/scmxx-0.9.0/src/scmxx/memtypes.h
Examining data/scmxx-0.9.0/src/scmxx/pbookfile.c
Examining data/scmxx-0.9.0/src/scmxx/dial.c
Examining data/scmxx-0.9.0/src/scmxx/tty_bluetooth.h
Examining data/scmxx-0.9.0/src/scmxx/keypad.c
Examining data/scmxx-0.9.0/src/scmxx/pbookfile.h
Examining data/scmxx-0.9.0/src/scmxx/tty_serial.c
Examining data/scmxx-0.9.0/src/scmxx/pbmaskgsm.c
Examining data/scmxx-0.9.0/src/scmxx/scmxx_opt.c
Examining data/scmxx-0.9.0/src/scmxx/tty_serial.h
Examining data/scmxx-0.9.0/src/scmxx/pinfile.c
Examining data/scmxx-0.9.0/src/scmxx/lock.c
Examining data/scmxx-0.9.0/src/scmxx/pbmaskgsm.h
Examining data/scmxx-0.9.0/src/scmxx/scmxx_opt.h
Examining data/scmxx-0.9.0/src/scmxx/s35_files.c
Examining data/scmxx-0.9.0/src/scmxx/s35_sms.c
Examining data/scmxx-0.9.0/src/atcommand/siemens.c
Examining data/scmxx-0.9.0/src/atcommand/cached.c
Examining data/scmxx-0.9.0/src/atcommand/common.c
Examining data/scmxx-0.9.0/src/atcommand/generic.c
Examining data/scmxx-0.9.0/src/charsets.h
Examining data/scmxx-0.9.0/src/apoconv/apoheader.c
Examining data/scmxx-0.9.0/src/apoconv/apo_main.c
Examining data/scmxx-0.9.0/src/apoconv/apoconv.c
Examining data/scmxx-0.9.0/src/apoconv/apo_data.c
Examining data/scmxx-0.9.0/src/apoconv/apoheader.h
Examining data/scmxx-0.9.0/src/apoconv/apoconv.h
Examining data/scmxx-0.9.0/src/versit.h
Examining data/scmxx-0.9.0/src/helper.h
Examining data/scmxx-0.9.0/src/smspdu/smspdu_print.c
Examining data/scmxx-0.9.0/src/smspdu/smspdu_enc.c
Examining data/scmxx-0.9.0/src/smspdu/smsud_enc.c
Examining data/scmxx-0.9.0/src/smspdu/smsudh.c
Examining data/scmxx-0.9.0/src/smspdu/smspdu_dec.c
Examining data/scmxx-0.9.0/src/smspdu/smsud_dec.c
Examining data/scmxx-0.9.0/src/smspdu/smsstructs.c
Examining data/scmxx-0.9.0/src/smspdu/smsudh.h
Examining data/scmxx-0.9.0/src/smspdu/smssort.c
Examining data/scmxx-0.9.0/src/smspdu/smscoding.h
Examining data/scmxx-0.9.0/src/w32compat.h
Examining data/scmxx-0.9.0/src/charsets/local_dec.c
Examining data/scmxx-0.9.0/src/charsets/ucs2_enc.c
Examining data/scmxx-0.9.0/src/charsets/gsm_dec.c
Examining data/scmxx-0.9.0/src/charsets/ucs4_enc.c
Examining data/scmxx-0.9.0/src/charsets/local_enc.c
Examining data/scmxx-0.9.0/src/charsets/gsm_enc.c
Examining data/scmxx-0.9.0/src/charsets/ucs2.c
Examining data/scmxx-0.9.0/src/charsets/ucs4.c
Examining data/scmxx-0.9.0/src/charsets/ucs2_dec.c
Examining data/scmxx-0.9.0/src/charsets/ucs2.h
Examining data/scmxx-0.9.0/src/charsets/ucs4.h
Examining data/scmxx-0.9.0/src/charsets/gsm.c
Examining data/scmxx-0.9.0/src/charsets/ucs4_dec.c
Examining data/scmxx-0.9.0/src/charsets/local.c
Examining data/scmxx-0.9.0/src/charsets/gsm.h
Examining data/scmxx-0.9.0/src/versit/vcard_out.c
Examining data/scmxx-0.9.0/src/versit/encoding.c
Examining data/scmxx-0.9.0/src/versit/encoding.h
Examining data/scmxx-0.9.0/src/pinfile.h

FINAL RESULTS:

data/scmxx-0.9.0/src/apoconv/apo_main.c:46:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,"%s%s%c%02u%c%02u%c%02u",
data/scmxx-0.9.0/src/apoconv/apo_main.c:98:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer,"%s%02X%c%02X",prefix,i,DIR_SEPERATOR,k);
data/scmxx-0.9.0/src/atcommand/generic.c:56:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\",%u,%u",current_keys,duration,pause);
data/scmxx-0.9.0/src/atcommand/generic.c:79:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",,\"%s\"",lock,newpin);
data/scmxx-0.9.0/src/atcommand/generic.c:83:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",\"%s\"",lock,oldpin);
data/scmxx-0.9.0/src/atcommand/generic.c:85:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",\"%s\",\"%s\"",lock,oldpin,newpin);
data/scmxx-0.9.0/src/atcommand/generic.c:106:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d,\"%s\",%d",lock,mode,password,class);
data/scmxx-0.9.0/src/atcommand/generic.c:108:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d,,%d",lock,mode,class);
data/scmxx-0.9.0/src/atcommand/generic.c:111:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d,\"%s\"",lock,mode,password);
data/scmxx-0.9.0/src/atcommand/generic.c:113:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d",lock,mode);
data/scmxx-0.9.0/src/atcommand/generic.c:136:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"%d,\"\",%d,\"%s\"",
data/scmxx-0.9.0/src/atcommand/generic.c:139:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"%d,\"%s\",%d,\"\"",
data/scmxx-0.9.0/src/atcommand/generic.c:142:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"%d,\"%s\",%d,\"%s\"",
data/scmxx-0.9.0/src/atcommand/generic.c:168:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\"",mem);
data/scmxx-0.9.0/src/atcommand/generic.c:197:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"%d,\"%s\",%d",slot,number,numtype(number));
data/scmxx-0.9.0/src/atcommand/generic.c:234:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\"",mem1);
data/scmxx-0.9.0/src/atcommand/generic.c:236:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",\"%s\"",mem1,mem2);
data/scmxx-0.9.0/src/atcommand/generic.c:238:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",\"%s\",\"%s\"",mem1,mem2,mem3);
data/scmxx-0.9.0/src/atcommand/generic.c:269:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\"",charset);
data/scmxx-0.9.0/src/atcommand/generic.c:281:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\",%d",number,numtype(number));
data/scmxx-0.9.0/src/atcommand/generic.c:291:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\"",pin);
data/scmxx-0.9.0/src/atcommand/siemens.c:72:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",,\"%s\"",lock,newpin);
data/scmxx-0.9.0/src/atcommand/siemens.c:76:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",\"%s\"",lock,oldpin);
data/scmxx-0.9.0/src/atcommand/siemens.c:78:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",\"%s\",\"%s\"",lock,oldpin,newpin);
data/scmxx-0.9.0/src/atcommand/siemens.c:102:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d,\"%s\",%d",lock,mode,password,class);
data/scmxx-0.9.0/src/atcommand/siemens.c:104:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d,,%d",lock,mode,class);
data/scmxx-0.9.0/src/atcommand/siemens.c:107:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d,\"%s\"",lock,mode,password);
data/scmxx-0.9.0/src/atcommand/siemens.c:109:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(parmlist,"\"%s\",%d",lock,mode);
data/scmxx-0.9.0/src/atcommand/siemens.c:129:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",%d",ftype,slot);
data/scmxx-0.9.0/src/atcommand/siemens.c:131:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",%d,%d",ftype,slot,part);
data/scmxx-0.9.0/src/atcommand/siemens.c:133:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(parmlist,"\"%s\",%d,%d,%d",ftype,slot,part,total);
data/scmxx-0.9.0/src/atcommand/siemens.c:147:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\",%d",ftype,slot);
data/scmxx-0.9.0/src/atcommand/siemens.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parmlist,"\"%s\"",mem);
data/scmxx-0.9.0/src/helper.h:34:71:  [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 print_verbose(level,m, ...) { if (verbosity_get() >= level) { fprintf(stderr,m,__VA_ARGS__); fflush(stderr); } }
data/scmxx-0.9.0/src/options/configfile.c:77:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(retval,"%s%s.%s/%s",
data/scmxx-0.9.0/src/scmxx/keypad.c:35:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(keylist,"C%sS",number);
data/scmxx-0.9.0/src/scmxx/lock.c:246:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%s",(code)? _("on") : _("off"));
data/scmxx-0.9.0/src/scmxx/memtypes.c:275:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%*s%d-%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:281:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%*s%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:285:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      } else sprintf(entry[1],"%*s%s",roundup2(table[1].width-4),"","none");
data/scmxx-0.9.0/src/scmxx/memtypes.c:290:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[2],"%*s%d-%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:296:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[2],"%*s%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:300:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      } else sprintf(entry[2],"%*s%s",roundup2(table[2].width-4),"","none");
data/scmxx-0.9.0/src/scmxx/memtypes.c:451:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(entry[1],"%*s%d-%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:457:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%*s%s",
data/scmxx-0.9.0/src/scmxx/memtypes.c:462:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%*s%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:471:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(entry[2],"%*s%s",
data/scmxx-0.9.0/src/scmxx/memtypes.c:476:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(entry[2],"%*s%s",
data/scmxx-0.9.0/src/scmxx/memtypes.c:484:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(entry[3],"%*s%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:494:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(entry[4],"%*s%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:636:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(entry[i],"%*s%s",
data/scmxx-0.9.0/src/scmxx/memtypes.c:659:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(entry[1],"%*s%d-%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:664:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%*s%s",
data/scmxx-0.9.0/src/scmxx/memtypes.c:668:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(entry[1],"%*s%d",
data/scmxx-0.9.0/src/scmxx/memtypes.c:675:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(entry[2],"%*s%d/%d",
data/scmxx-0.9.0/src/scmxx/pbookphone.c:72:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text,"%s(%u)",(mem)?mem:"",entries[i-1]->slot);
data/scmxx-0.9.0/src/scmxx/pbookphone.c:294:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(text,"%s(%d-%d)",mem,min,max);
data/scmxx-0.9.0/src/scmxx/pinfile.c:248:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(retval,"%s,%s",puk,pin);
data/scmxx-0.9.0/src/scmxx/s35_files.c:390:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(parsestr,"\"%s\",%lu,%%d,%%d",ftype,slot);
data/scmxx-0.9.0/src/scmxx/s35_files.c:410:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (2 != sscanf(temp,parsestr,&current[0],&totals[0]))
data/scmxx-0.9.0/src/scmxx/s35_files.c:416:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	pipefd=popen(pipe,"w");
data/scmxx-0.9.0/src/scmxx/s35_sms.c:554:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    pipefd = popen(pipe,"w");
data/scmxx-0.9.0/src/smspdu/smsud_enc.c:212:3:  [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,
data/scmxx-0.9.0/src/smspdu/smsud_enc.c:218:3:  [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,
data/scmxx-0.9.0/src/smspdu/smsud_enc.c:227:7:  [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, delayMessage, i);
data/scmxx-0.9.0/src/smspdu/smsudh.c:52:3:  [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(fp,ngettext("%d %s message waiting","%d %s messages waiting",data[1]),data[1],type);
data/scmxx-0.9.0/src/versit/vcard_out.c:32:3:  [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(h->fp,"BEGIN:VCARD"VERSIT_LINE_END);
data/scmxx-0.9.0/src/versit/vcard_out.c:33:3:  [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(h->fp,"VERSION:%s"VERSIT_LINE_END,(h->version==VCARD_VERSION_21)?"2.1":"3.0");
data/scmxx-0.9.0/src/versit/vcard_out.c:39:3:  [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(h->fp,"END:VCARD"VERSIT_LINE_END);
data/scmxx-0.9.0/src/versit/vcard_out.c:147: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(HANDLE(h)->fp,":%s"VERSIT_LINE_END,temp);
data/scmxx-0.9.0/src/versit/vcard_out.c:164: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(HANDLE(h)->fp,":%s;%s"VERSIT_LINE_END,
data/scmxx-0.9.0/src/versit/vcard_out.c:185: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(HANDLE(h)->fp,":;;%s;%s;;%s;%s"VERSIT_LINE_END,
data/scmxx-0.9.0/src/versit/vcard_out.c:203: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(HANDLE(h)->fp,":%s"VERSIT_LINE_END,(v)?v:"");
data/scmxx-0.9.0/src/versit/vcard_out.c:233: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(HANDLE(h)->fp,":%04d-%02d-%02d"VERSIT_LINE_END,
data/scmxx-0.9.0/src/versit/vcard_out.c:250:3:  [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(HANDLE(h)->fp,":%s"VERSIT_LINE_END,url);
data/scmxx-0.9.0/src/versit/vcard_out.c:263:3:  [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(HANDLE(h)->fp,":%s"VERSIT_LINE_END,nick);  
data/scmxx-0.9.0/src/versit/vcard_out.c:272:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(temp,"X-%s%s-%s",part1prefix,type,part2);
data/scmxx-0.9.0/src/helper/console.c:62:16:  [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.
  char* cols = getenv("COLUMNS");
data/scmxx-0.9.0/src/options/common.c:37:10:  [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.
	(temp = getenv(list->env_var)) != NULL)
data/scmxx-0.9.0/src/options/configfile.c:54:18:  [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.
  return str_dup(getenv("HOME"));
data/scmxx-0.9.0/src/options/getopt.c:68: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.
  if ((posixly_correct=getenv("POSIXLY_CORRECT")) != NULL) {
data/scmxx-0.9.0/src/options/getopt.c:69:31:  [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.
    posixly_correct = str_dup(getenv("POSIXLY_CORRECT"));
data/scmxx-0.9.0/src/options/getopt.c:74:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((arg = getopt_long(argc, argv,
data/scmxx-0.9.0/src/smspdu/smsud_enc.c:31:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));
data/scmxx-0.9.0/src/apoconv/apoconv.c:56:17:  [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).
	info.version = atoi(argv[i]);
data/scmxx-0.9.0/src/apoconv/apoheader.c:419: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 s[200];
data/scmxx-0.9.0/src/atcommand/generic.c:133: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(parmlist,"%d",slot);
data/scmxx-0.9.0/src/atcommand/generic.c:157: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(parmlist,"%d,%d",slot_low,slot_high);
data/scmxx-0.9.0/src/atcommand/generic.c:178: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(parmlist,"%d",slot);
data/scmxx-0.9.0/src/atcommand/generic.c:195: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(parmlist,"%d",slot);
data/scmxx-0.9.0/src/atcommand/generic.c:207: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(parmlist,"%d",len);
data/scmxx-0.9.0/src/atcommand/generic.c:216: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(parmlist,"%d",len);
data/scmxx-0.9.0/src/atcommand/generic.c:248: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(parmlist,"%d",slot);
data/scmxx-0.9.0/src/atcommand/generic.c:258: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(parmlist,"%d",list_id);
data/scmxx-0.9.0/src/atcommand/generic.c:314: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(parmlist,"%d,%d,%d,%d,1",mode,mt,bm,ds);
data/scmxx-0.9.0/src/atcommand/siemens.c:48: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(parmlist,"%d,%d",index1,index2);
data/scmxx-0.9.0/src/atcommand/siemens.c:50: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(parmlist,"%d",index1);
data/scmxx-0.9.0/src/atcommand/siemens.c:161: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(parmlist,"%d",slot);
data/scmxx-0.9.0/src/atcommand/siemens.c:164: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(parmlist,"%d,%d",slot,type);
data/scmxx-0.9.0/src/atcommand/siemens.c:180: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(parmlist,"%d,%d",slot_low,slot_high);
data/scmxx-0.9.0/src/atcommand/siemens.c:207: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(parmlist,"%d",slot);
data/scmxx-0.9.0/src/atcommand/siemens.c:219: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(parmlist,"%d",list_id);
data/scmxx-0.9.0/src/charsets/local.c:23: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 localcp[30];
data/scmxx-0.9.0/src/charsets/local.c:38: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 localcp[30];
data/scmxx-0.9.0/src/charsets/local_dec.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 buffer[4+1]; //buffer for \XXXX
data/scmxx-0.9.0/src/charsets/ucs2.c:57:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (void)memcpy(retval,s,i*sizeof(*s));
data/scmxx-0.9.0/src/charsets/ucs2_enc.c:34: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(retval+(4*i),"%04X",fromhe(temp[i]));
data/scmxx-0.9.0/src/charsets/ucs4.c:59:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (void)memcpy(retval,s,i*sizeof(*s));
data/scmxx-0.9.0/src/charsets/ucs4_dec.c:42: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(*outbuf,"\\%02X%02X",(temp>>8)&0xFF,temp&0xFF);
data/scmxx-0.9.0/src/helper.h:235: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 digits[GSM_NUMBER_DIGITS_LEN+1]; /* if toa.type != GSM_NUMBER_TYPE_TEXT */
data/scmxx-0.9.0/src/helper/console.c:85: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 numout[6+1];
data/scmxx-0.9.0/src/helper/file.c:30:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  myfd = open(file,O_RDONLY);
data/scmxx-0.9.0/src/helper/file.c:40:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    myfd = open(file,O_RDONLY);
data/scmxx-0.9.0/src/helper/file.c:59:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    myfd=open(file ,O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR|S_IRGRP);
data/scmxx-0.9.0/src/helper/mem.c:51:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fd = open (file, O_RDONLY)) < 0) return -1;
data/scmxx-0.9.0/src/options/common.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 line[6*space+1];
data/scmxx-0.9.0/src/options/configfile.c:108:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  status = open(filepath,O_RDONLY);
data/scmxx-0.9.0/src/options/getopt.c:50: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(&myoptions[i--],&listEnd,sizeof(listEnd));
data/scmxx-0.9.0/src/options/popt.c:39: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(&myoptions[i--],&listEnd,sizeof(listEnd));
data/scmxx-0.9.0/src/scmxx/actions.c:74:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	r->max = atoi(temp+1);
data/scmxx-0.9.0/src/scmxx/actions.c:78:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      *current_fill = atoi(ausgabe);
data/scmxx-0.9.0/src/scmxx/actions.c:250: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 timestr[20]; //6*2 + 7 + 1
data/scmxx-0.9.0/src/scmxx/actions.c:302:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (ptemp != NULL) memcpy(p,ptemp,sizeof(*p));
data/scmxx-0.9.0/src/scmxx/actions.c:370: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).
    signal = atoi(ausgabe+6);
data/scmxx-0.9.0/src/scmxx/actions.c:380:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	b = atoi(temp+1);
data/scmxx-0.9.0/src/scmxx/dial.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 number[3+20+1];
data/scmxx-0.9.0/src/scmxx/lock.c:108:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      retval = atoi(temp);
data/scmxx-0.9.0/src/scmxx/lock.c:111:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	class = atoi(temp+1);	
data/scmxx-0.9.0/src/scmxx/memtypes.h:18: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[4];
data/scmxx-0.9.0/src/scmxx/pbookfile.c:61:17:  [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).
  entry->slot = atoi(slot);
data/scmxx-0.9.0/src/scmxx/pbookfile.c:70: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[BUFSIZ];
data/scmxx-0.9.0/src/scmxx/pbookphone.c:123:17:  [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).
  entry->slot = atoi(slot);
data/scmxx-0.9.0/src/scmxx/pbookphone.c:125: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).
  entry->numtype = atoi(numtype);
data/scmxx-0.9.0/src/scmxx/pinfile.c:25:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(filename,O_RDONLY);
data/scmxx-0.9.0/src/scmxx/pinfile.c:223: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.
      sprintf(temp,"pin%c",type[3]);
data/scmxx-0.9.0/src/scmxx/s35_files.c:263: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[(FILE_PDUSIZE*2)+1];
data/scmxx-0.9.0/src/scmxx/s35_files.c:307: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.
      sprintf(buffer+(k*2),"%02x",((uint8_t*)data)[k]&0xFF);
data/scmxx-0.9.0/src/scmxx/s35_files.c:371: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 datastr[3];
data/scmxx-0.9.0/src/scmxx/s35_pbook.c:239: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).
    *min = atoi(temp+1);
data/scmxx-0.9.0/src/scmxx/s35_pbook.c:246:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    case '-': *max = atoi(temp+1); break;
data/scmxx-0.9.0/src/scmxx/s35_pbook.c:255: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).
    *nrlen = atoi(temp+1);
data/scmxx-0.9.0/src/scmxx/s35_pbook.c:261:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *txtlen = atoi(temp+1);
data/scmxx-0.9.0/src/scmxx/s35_sms.c:499:29:  [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).
      slist[retval]->slot = atoi(temp);
data/scmxx-0.9.0/src/scmxx/s35_sms.c:504: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).
    type = atoi(temp);
data/scmxx-0.9.0/src/scmxx/scmxx.c:100:47:  [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 (str_len(temp)) args->port.channel = atoi(temp);
data/scmxx-0.9.0/src/scmxx/scmxx_opt.c:57:26:  [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).
    args.myparams.slot = atoi(argument);
data/scmxx-0.9.0/src/scmxx/scmxx_opt.c:159:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  temp = atoi(argument);
data/scmxx-0.9.0/src/scmxx/scmxx_opt.c:169:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	args.port.startdelay = atoi(argument);
data/scmxx-0.9.0/src/scmxx/tty_serial.c:70:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  switch (atoi(newttyspeed)) {
data/scmxx-0.9.0/src/scmxx/tty_serial.c:278:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((tty_portfd=open(args->device,flags)) == -1) {
data/scmxx-0.9.0/src/smi/smi_dec.c:45: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 pdu[(SMI_DATA_SIZE*2)+1];
data/scmxx-0.9.0/src/smi/smifile.c:45: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(encoded->tpdu.data,ptr->data,SMI_DATA_SIZE);
data/scmxx-0.9.0/src/smspdu/smspdu_dec.c:355: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(temp,"\"%02x/%02x/%02x,%02x:%02x:%02x\"",
data/scmxx-0.9.0/src/smspdu/smspdu_enc.c:185:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tpdu[i]->data,frame->data,frame->size);
data/scmxx-0.9.0/src/smspdu/smspdu_print.c:89: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 temp[81];
data/scmxx-0.9.0/src/smspdu/smspdu_print.c:113:7:  [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(&sct_tm,sct_status,sizeof(struct tm));
data/scmxx-0.9.0/src/smspdu/smsstructs.c:185: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(this->data+this->size,data,len);
data/scmxx-0.9.0/src/smspdu/smsstructs.c:209: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(retval+2*i,"%02X",this->data[i]);
data/scmxx-0.9.0/src/smspdu/smsudh.c:200: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(header[i]->data,data+offset,header[i]->len);
data/scmxx-0.9.0/src/versit/encoding.c:64: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((char*)retval+i,"=%02X",*input);
data/scmxx-0.9.0/src/apoconv/apo_main.c:42: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).
  buffer = mem_alloc(strlen(prefix)+4+6+3+1,1);
data/scmxx-0.9.0/src/apoconv/apo_main.c:94: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).
  buffer = mem_alloc(strlen(prefix)+2+1+2+1,1);
data/scmxx-0.9.0/src/atcommand.h:21:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  char* (*read) (int (*stop_condition)(const char*, const size_t));
data/scmxx-0.9.0/src/atcommand/common.c:39:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  at_tty.read = tty->read;
data/scmxx-0.9.0/src/atcommand/common.c:57:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    value = at_tty.read(at_check_line_end);
data/scmxx-0.9.0/src/atcommand/common.c:72:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(value) == 0 ||
data/scmxx-0.9.0/src/atcommand/common.c:155: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).
  return mem_realloc(value,strlen(value)+1);
data/scmxx-0.9.0/src/atcommand/common.c:169: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).
      at_tty.write(command,strlen(command)) == 0 ||
data/scmxx-0.9.0/src/atcommand/common.c:172: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).
	at_tty.write(parmlist,strlen(parmlist)) == 0)) ||
data/scmxx-0.9.0/src/atcommand/common.c:190: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).
      at_tty.write(command,strlen(command)) == 0 ||
data/scmxx-0.9.0/src/atcommand/common.c:191: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).
      at_tty.write(AT_READ_SUFFIX,strlen(AT_READ_SUFFIX)) == 0 ||
data/scmxx-0.9.0/src/atcommand/common.c:217: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).
    memmove(temp,temp2,strlen(temp2)+1);
data/scmxx-0.9.0/src/atcommand/common.c:239: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).
  memmove(stringlist,temp,strlen(temp)+1);
data/scmxx-0.9.0/src/atcommand/common.c:240:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  temp = stringlist+strlen(stringlist)-1;
data/scmxx-0.9.0/src/atcommand/common.c:273: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).
	     strncasecmp(response,command,strlen(command)) == 0 &&
data/scmxx-0.9.0/src/atcommand/generic.c:48:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      retval = keylist + strlen(current_keys);
data/scmxx-0.9.0/src/atcommand/generic.c:53:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(current_keys)+1
data/scmxx-0.9.0/src/atcommand/generic.c:75:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(lock)+3+str_len(oldpin)+3
data/scmxx-0.9.0/src/atcommand/generic.c:100:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(lock)+1
data/scmxx-0.9.0/src/atcommand/generic.c:167:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(mem)+2, 1);
data/scmxx-0.9.0/src/atcommand/generic.c:190:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       +2+strlen(number)+2
data/scmxx-0.9.0/src/atcommand/generic.c:228:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(mem1)+2
data/scmxx-0.9.0/src/atcommand/generic.c:268:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(charset)+2, 1);
data/scmxx-0.9.0/src/atcommand/generic.c:278:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(number)+2
data/scmxx-0.9.0/src/atcommand/generic.c:290:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(pin)+2,1);
data/scmxx-0.9.0/src/atcommand/siemens.c:68:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(lock)+3+str_len(oldpin)+3
data/scmxx-0.9.0/src/atcommand/siemens.c:96:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(lock)+1
data/scmxx-0.9.0/src/atcommand/siemens.c:124:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(ftype)+2+numlen(slot)
data/scmxx-0.9.0/src/atcommand/siemens.c:146:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(ftype)+2+numlen(slot)+1, 1);
data/scmxx-0.9.0/src/atcommand/siemens.c:194:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parmlist = mem_alloc(1+strlen(mem)+2, 1);
data/scmxx-0.9.0/src/charsets/gsm.c:178: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).
  size_t count = strlen((char*)input);
data/scmxx-0.9.0/src/charsets/gsm_dec.c:28: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).
  retval = mem_alloc((strlen((char*)input)+1)*sizeof(ucs4char_t),1);
data/scmxx-0.9.0/src/charsets/gsm_dec.c:29: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).
  for (i = 0; i < strlen((char*)input); ++i) {
data/scmxx-0.9.0/src/charsets/local_dec.c:34:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  temp = convert_to_internal(get_system_charset(),input,strlen(input));
data/scmxx-0.9.0/src/charsets/ucs2_dec.c:34: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).
  temp = mem_alloc(((strlen(input)/4)+1)*sizeof(ucs2char_t),1);
data/scmxx-0.9.0/src/charsets/ucs2_dec.c:35: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).
  for (i = 0; ((i+1)*4) <= strlen(input); ++i) {
data/scmxx-0.9.0/src/charsets/ucs4_dec.c:62:3:  [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.
  sprintf(*outbuf,"?");
data/scmxx-0.9.0/src/helper/console.c:137:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write(fd,numout,strlen(numout));
data/scmxx-0.9.0/src/helper/console.c:138:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    w += strlen(numout);
data/scmxx-0.9.0/src/helper/file.c:86:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      status = read(myfd,b+count,bsize-count);
data/scmxx-0.9.0/src/helper/gsmnum.c:83: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).
  size_t len = strlen(this->digits);
data/scmxx-0.9.0/src/helper/gsmnum.c:89: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).
  memset(out,0,strlen(this->digits));
data/scmxx-0.9.0/src/helper/gsmnum.c:124:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(this->digits,number+off,len);
data/scmxx-0.9.0/src/helper/mem.c:58:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status = read(fd,((uint8_t*)fs->ptr)+counter,fs->size);
data/scmxx-0.9.0/src/helper/num.c:93:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (; i < strlen(s); ++i) if (isdigit((int)s[i]) == 0) return 0;
data/scmxx-0.9.0/src/helper/str.c:19: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).
  if (s != NULL) return strlen(s);
data/scmxx-0.9.0/src/helper/str.c:28:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(retval,input,insize);
data/scmxx-0.9.0/src/options/common.c:61:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(line+strlen(line),' ',space+extraspace-strlen(line));
data/scmxx-0.9.0/src/options/common.c:61:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(line+strlen(line),' ',space+extraspace-strlen(line));
data/scmxx-0.9.0/src/options/configfile.c:68: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).
    retval = mem_alloc(strlen(homedir)+2
data/scmxx-0.9.0/src/options/configfile.c:69: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).
		       +strlen(package)+1
data/scmxx-0.9.0/src/options/configfile.c:70: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).
		       +strlen(filename)+1,1);
data/scmxx-0.9.0/src/options/configfile.c:79:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (homedir[strlen(homedir)] == '/') ? "" : "/",
data/scmxx-0.9.0/src/options/configfile.c:146: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).
	  temp = left+strlen(left);
data/scmxx-0.9.0/src/scmxx/actions.c:70:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(r->name,mem,sizeof(r->name));
data/scmxx-0.9.0/src/scmxx/actions.c:99:3:  [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(1010*1000);
data/scmxx-0.9.0/src/scmxx/actions.c:101:3:  [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(1010*1000);
data/scmxx-0.9.0/src/scmxx/actions.c:103:3:  [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(1000*1000);
data/scmxx-0.9.0/src/scmxx/actions.c:118: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(1000*1000);
data/scmxx-0.9.0/src/scmxx/actions.c:329: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).
      temp = strn_dup(temp+1,strlen(temp+1)-1);
data/scmxx-0.9.0/src/scmxx/actions.c:347: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).
      temp=strn_dup(temp+1,strlen(temp+1));
data/scmxx-0.9.0/src/scmxx/actions.c:532: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).
      memmove(ausgabe,ausgabe+1,strlen(ausgabe)+1);
data/scmxx-0.9.0/src/scmxx/dial.c:127: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(100*1000);
data/scmxx-0.9.0/src/scmxx/keypad.c:34: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).
  keylist = mem_alloc(strlen(number)+3,1);
data/scmxx-0.9.0/src/scmxx/lock.c:208:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove(ausgabe,temp,strlen(temp)+1);
data/scmxx-0.9.0/src/scmxx/lock.c:223: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).
	table[i].width = strlen(table[i].name);
data/scmxx-0.9.0/src/scmxx/memtypes.c:239: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).
      table[i].width = strlen(table[i].name);
data/scmxx-0.9.0/src/scmxx/memtypes.c:243: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 (table[0].width < strlen(memlist[m]->name))
data/scmxx-0.9.0/src/scmxx/memtypes.c:244: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).
	table[0].width = strlen(memlist[m]->name);
data/scmxx-0.9.0/src/scmxx/memtypes.c:407: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).
      table[i].width = strlen(table[i].name);
data/scmxx-0.9.0/src/scmxx/memtypes.c:411:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (table[1].width < strlen(_("none")))
data/scmxx-0.9.0/src/scmxx/memtypes.c:412: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).
      table[1].width = strlen(_("none"));
data/scmxx-0.9.0/src/scmxx/memtypes.c:413:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (table[2].width < strlen(_("yes")))
data/scmxx-0.9.0/src/scmxx/memtypes.c:414: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).
      table[2].width = strlen(_("yes"));
data/scmxx-0.9.0/src/scmxx/memtypes.c:415:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (table[2].width < strlen(_("no")))
data/scmxx-0.9.0/src/scmxx/memtypes.c:416: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).
      table[2].width = strlen(_("no"));
data/scmxx-0.9.0/src/scmxx/memtypes.c:458: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).
		  roundup2(table[1].width-strlen(_("none"))),
data/scmxx-0.9.0/src/scmxx/memtypes.c:472: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).
		roundup2(table[2].width-strlen(_("yes"))),
data/scmxx-0.9.0/src/scmxx/memtypes.c:477: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).
		roundup2(table[2].width-strlen(_("no"))),
data/scmxx-0.9.0/src/scmxx/memtypes.c:623: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).
      table[i].width = strlen(table[i].name);
data/scmxx-0.9.0/src/scmxx/memtypes.c:637: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).
	      roundup2(table[i].width-strlen(table[i].name)),
data/scmxx-0.9.0/src/scmxx/memtypes.c:665: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).
		  roundup2(table[1].width-strlen(_("none"))),
data/scmxx-0.9.0/src/scmxx/pbmaskgsm.c:21:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  retval=mem_alloc(strlen((char*)input)*3,1);
data/scmxx-0.9.0/src/scmxx/pbmaskgsm.c:22:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (i=0; i<strlen((char*)input); i++) {
data/scmxx-0.9.0/src/scmxx/pbmaskgsm.c:55: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).
  return mem_realloc(retval,strlen(retval)+1);
data/scmxx-0.9.0/src/scmxx/pbookphone.c:76:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    console_print_status(STDERR_FILENO,_("done"),strlen(_("done")),&i,&count,1);
data/scmxx-0.9.0/src/scmxx/pinfile.c:58:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status = read(fd,data,fdstat.st_size-total);
data/scmxx-0.9.0/src/scmxx/pinfile.c:127:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  } while (strncasecmp(begin,sub_type,strlen(sub_type)) != 0 ||
data/scmxx-0.9.0/src/scmxx/pinfile.c:128: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).
	   strncasecmp(begin+strlen(sub_type),sub_id,strlen(sub_id)) != 0 ||
data/scmxx-0.9.0/src/scmxx/pinfile.c:128: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).
	   strncasecmp(begin+strlen(sub_type),sub_id,strlen(sub_id)) != 0 ||
data/scmxx-0.9.0/src/scmxx/pinfile.c:129: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).
	   begin+strlen(sub_type)+strlen(sub_id)+1 != sub_begin);
data/scmxx-0.9.0/src/scmxx/pinfile.c:129: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).
	   begin+strlen(sub_type)+strlen(sub_id)+1 != sub_begin);
data/scmxx-0.9.0/src/scmxx/pinfile.c:146: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).
  while (strncasecmp(type,pin_begin,strlen(type)) != 0 ||
data/scmxx-0.9.0/src/scmxx/pinfile.c:147:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	 *(pin_begin+strlen(type)) != '=')
data/scmxx-0.9.0/src/scmxx/s35_files.c:162:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fn_size = str_len(outfile)+numlen(range[i]->max)+1+strlen(mem);
data/scmxx-0.9.0/src/scmxx/s35_files.c:388:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parsestr = mem_alloc(1+strlen(ftype)+2+numlen(slot)+(2*(strlen(",%d")+1))+1,1);
data/scmxx-0.9.0/src/scmxx/s35_files.c:388:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parsestr = mem_alloc(1+strlen(ftype)+2+numlen(slot)+(2*(strlen(",%d")+1))+1,1);
data/scmxx-0.9.0/src/scmxx/s35_files.c:402: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).
      console_print_status(STDERR_FILENO,text,strlen(text),current,totals,2);
data/scmxx-0.9.0/src/scmxx/s35_files.c:409: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).
      console_print_status(STDERR_FILENO,text,strlen(text),current,totals,2);
data/scmxx-0.9.0/src/scmxx/s35_files.c:420: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).
      for (i=0;i<strlen(ausgabe);i+=2) {	
data/scmxx-0.9.0/src/scmxx/s35_files.c:443: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).
  console_print_status(STDERR_FILENO,text,strlen(text),current,totals,2);
data/scmxx-0.9.0/src/scmxx/s35_sms.c:321: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).
    at_data_send(pdustr,strlen(pdustr));
data/scmxx-0.9.0/src/scmxx/s35_sms.c:529:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(ausgabe) >= sizeof(slist[retval]->tpdu)*2) {
data/scmxx-0.9.0/src/scmxx/s35_sms.c:682: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 (hitlen > strlen(addr->digits)) break;
data/scmxx-0.9.0/src/scmxx/tty_serial.c:359:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(tty_portfd,buf,len);
data/scmxx-0.9.0/src/scmxx/ttyaccess.c:76:28:  [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 (errno == EAGAIN) usleep(1);
data/scmxx-0.9.0/src/scmxx/ttyaccess.c:104:11:  [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(1);
data/scmxx-0.9.0/src/scmxx/ttyaccess.c:137: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).
  return mem_realloc(retval,strlen(retval)+1);
data/scmxx-0.9.0/src/scmxx/ttyaccess.h:34:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  char* (*read) (int (*stop_condition)(const char*, const size_t));
data/scmxx-0.9.0/src/smspdu/smspdu_enc.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).
  da_len = strlen(da.digits);
data/scmxx-0.9.0/src/smspdu/smssort.c:126:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strncasecmp(order,orders[0],strlen(orders[0])) == 0) {
data/scmxx-0.9.0/src/smspdu/smssort.c:129: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).
  } else if (strncasecmp(order,orders[1],strlen(orders[1])) == 0) {
data/scmxx-0.9.0/src/smspdu/smssort.c:132: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).
  } else if (strncasecmp(order,orders[2],strlen(orders[2])) == 0) {
data/scmxx-0.9.0/src/smspdu/smsud_enc.c:85: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).
  enc_len = strlen((char*)temp);
data/scmxx-0.9.0/src/smspdu/smsud_enc.c:231: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).
   for (i=strlen(delayMessage)-2; i>0; --i)
data/scmxx-0.9.0/src/w32compat.h:19: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.
#define usleep(usec) Sleep(usec/1000)

ANALYSIS SUMMARY:

Hits = 276
Lines analyzed = 15641 in approximately 0.46 seconds (34045 lines/second)
Physical Source Lines of Code (SLOC) = 11892
Hits@level = [0] 306 [1] 116 [2]  76 [3]   7 [4]  77 [5]   0
Hits@level+ = [0+] 582 [1+] 276 [2+] 160 [3+]  84 [4+]  77 [5+]   0
Hits/KSLOC@level+ = [0+] 48.9405 [1+] 23.2089 [2+] 13.4544 [3+] 7.06357 [4+] 6.47494 [5+]   0
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.