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/concalc-0.9.2/src/list.h
Examining data/concalc-0.9.2/src/concalc.h
Examining data/concalc-0.9.2/src/global.h
Examining data/concalc-0.9.2/src/concalc.cpp
Examining data/concalc-0.9.2/src/global.cpp

FINAL RESULTS:

data/concalc-0.9.2/src/global.cpp:3980:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(eventReciver->vars[var][effIndex].cval,value.cval);
data/concalc-0.9.2/src/global.cpp:4661:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(&eventContent[2*sizeof(int)+1],value.cval);
data/concalc-0.9.2/src/global.cpp:4887:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(&eventContent[2*sizeof(int)],value.cval);
data/concalc-0.9.2/src/global.cpp:6039:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(eventContent,value.cval);
data/concalc-0.9.2/src/global.cpp:6044:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(eventContent,value.cval);
data/concalc-0.9.2/src/global.cpp:6045:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(&eventContent[pathlen+1],n.cval);
data/concalc-0.9.2/src/global.cpp:6088:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(eventContent,value.cval);
data/concalc-0.9.2/src/global.cpp:6093:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(eventContent,value.cval);
data/concalc-0.9.2/src/global.cpp:6094:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(&eventContent[pathlen+1],n.cval);
data/concalc-0.9.2/src/global.cpp:6134:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(eventContent,value.cval);
data/concalc-0.9.2/src/concalc.cpp:87:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char*homedir=getenv("HOME");
data/concalc-0.9.2/src/concalc.cpp:94:2:  [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(rndTime.tv_usec*rndTime.tv_sec);
data/concalc-0.9.2/src/concalc.cpp:529:8:  [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.
	chdir(getenv("HOME"));
data/concalc-0.9.2/src/concalc.cpp:89: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(path,homedir,strlen(homedir));
data/concalc-0.9.2/src/concalc.cpp:90: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(&path[strlen(homedir)],"/.concalcvariables",19);
data/concalc-0.9.2/src/concalc.cpp:104:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE*variablesFile=fopen(path,"r");
data/concalc-0.9.2/src/concalc.cpp:123:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(var,&variablesString[varStart],varEnd-varStart);
data/concalc-0.9.2/src/concalc.cpp:241: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).
				int outLen=atoi(argv[c+1]);
data/concalc-0.9.2/src/concalc.cpp:283: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(input,argv[c],strlen(argv[c])+1);
data/concalc-0.9.2/src/concalc.cpp:288: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(input,temp,strlen(temp));
data/concalc-0.9.2/src/concalc.cpp:289: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(&input[strlen(temp)],argv[c],strlen(argv[c])+1);
data/concalc-0.9.2/src/concalc.cpp:322:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		scriptFile=fopen(path,"r");
data/concalc-0.9.2/src/concalc.cpp:521: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(varString,"%.*Lg",maxLength,scriptData.vars[c][0].fval.real());
data/concalc-0.9.2/src/concalc.cpp:525: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(varString,"%.*Lg",maxLength,scriptData.vars[c][0].fval.imag());
data/concalc-0.9.2/src/concalc.cpp:530:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE*variablesFile=fopen(".concalcvariables","w");
data/concalc-0.9.2/src/concalc.cpp:580: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(line,&code[pos1],pos2-pos1);
data/concalc-0.9.2/src/concalc.cpp:632:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					subFile=fopen(scriptName,"r");
data/concalc-0.9.2/src/concalc.cpp:668:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			subFile=fopen(filePath,"r");
data/concalc-0.9.2/src/global.cpp:131:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				int num=atoi(configString+12);
data/concalc-0.9.2/src/global.cpp:219:4:  [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(macro,configString,endPos-startPos);
data/concalc-0.9.2/src/global.cpp:232:4:  [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(replacement,&configString[startPos],endPos-startPos);
data/concalc-0.9.2/src/global.cpp:651: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(ret,src,index);
data/concalc-0.9.2/src/global.cpp:652: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(&ret[index],&src[index+len],srclen-len-index+1);
data/concalc-0.9.2/src/global.cpp:662: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(ret,dest,index);
data/concalc-0.9.2/src/global.cpp:663: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(&ret[index],src,srclen);
data/concalc-0.9.2/src/global.cpp:664: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(&ret[index+srclen],&dest[index],destlen-index+1);
data/concalc-0.9.2/src/global.cpp:670: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(dest,src,len);
data/concalc-0.9.2/src/global.cpp:683: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(tmp,&st[index+len],stlen-index-len+1);
data/concalc-0.9.2/src/global.cpp:685: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(&st[index+replen],tmp,stlen-index-len+1);
data/concalc-0.9.2/src/global.cpp:693: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(&st[index],rep,replen);
data/concalc-0.9.2/src/global.cpp:702: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(tmp,&st[index],stlen-index+1);
data/concalc-0.9.2/src/global.cpp:704: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(&st[index+inslen],tmp,stlen-index+1);
data/concalc-0.9.2/src/global.cpp:705: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(&st[index],ins,inslen);
data/concalc-0.9.2/src/global.cpp:715: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(calcString,str,strlen(str)+1);
data/concalc-0.9.2/src/global.cpp:1498: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(tmp,&line[start],end-start);
data/concalc-0.9.2/src/global.cpp:3475: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(newstring,value.cval,strlen1);
data/concalc-0.9.2/src/global.cpp:3476: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(&newstring[strlen1],n.cval,strlen2+1);
data/concalc-0.9.2/src/global.cpp:3934: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(&eventReciver->vars[var][newEffIndex],&eventReciver->vars[var][oldEffIndex],sizeof(Number));
data/concalc-0.9.2/src/global.cpp:3935: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(&eventReciver->vars[var][oldEffIndex],&nullNum,sizeof(Number));
data/concalc-0.9.2/src/global.cpp:4507: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(eventContent,"%.*Lg",pref->outputLength,real(value.fval));
data/concalc-0.9.2/src/global.cpp:4512: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.
							sprintf(eventContent,"%.*Lg%.*Lgi",pref->outputLength,real(value.fval),pref->outputLength,imag(value.fval));
data/concalc-0.9.2/src/global.cpp:4513: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.
						else sprintf(eventContent,"%.*Lg+%.*Lgi",pref->outputLength,real(value.fval),pref->outputLength,imag(value.fval));
data/concalc-0.9.2/src/global.cpp:4521:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(eventContent,"%lli",value.ival);
data/concalc-0.9.2/src/global.cpp:4551: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.
							sprintf(&eventContent[strlen(eventContent)]," %.*Lg",pref->outputLength,real(eventReciver->vars[value.ival][c].fval));
data/concalc-0.9.2/src/global.cpp:4556:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
								sprintf(&eventContent[strlen(eventContent)]," %.*Lg%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][c].fval),pref->outputLength,imag(eventReciver->vars[value.ival][c].fval));
data/concalc-0.9.2/src/global.cpp:4557:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
							else sprintf(&eventContent[strlen(eventContent)]," %.*Lg+%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][c].fval),pref->outputLength,imag(eventReciver->vars[value.ival][c].fval));
data/concalc-0.9.2/src/global.cpp:4575:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
								sprintf(&eventContent[strlen(eventContent)]," %.*Lg",pref->outputLength,real(eventReciver->vars[value.ival][effIndex].fval));
data/concalc-0.9.2/src/global.cpp:4580:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
									sprintf(&eventContent[strlen(eventContent)]," %.*Lg%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][effIndex].fval),pref->outputLength,imag(eventReciver->vars[value.ival][effIndex].fval));
data/concalc-0.9.2/src/global.cpp:4581:14:  [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.
								else sprintf(&eventContent[strlen(eventContent)]," %.*Lg+%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][effIndex].fval),pref->outputLength,imag(eventReciver->vars[value.ival][effIndex].fval));
data/concalc-0.9.2/src/global.cpp:4629:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[1],&arg,4);
data/concalc-0.9.2/src/global.cpp:4633:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[5],&arg,4);
data/concalc-0.9.2/src/global.cpp:4641:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[1],&arg,4);
data/concalc-0.9.2/src/global.cpp:4645:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[5],&arg,4);
data/concalc-0.9.2/src/global.cpp:4649:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[9],&arg,4);
data/concalc-0.9.2/src/global.cpp:4657: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(&eventContent[2*sizeof(int)+1],"%.*Lg",pref->outputLength,value.fval.real());
data/concalc-0.9.2/src/global.cpp:4667:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[1],&arg,4);
data/concalc-0.9.2/src/global.cpp:4671:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[5],&arg,4);
data/concalc-0.9.2/src/global.cpp:4681:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[1],&arg,4);
data/concalc-0.9.2/src/global.cpp:4685:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[5],&arg,4);
data/concalc-0.9.2/src/global.cpp:4689:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[9],&arg,4);
data/concalc-0.9.2/src/global.cpp:4693:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&eventContent[13],&arg,4);
data/concalc-0.9.2/src/global.cpp:4713: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(eventContent,&num,sizeof(int));
data/concalc-0.9.2/src/global.cpp:4749: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(&retval,eventReciver->data,sizeof(int));
data/concalc-0.9.2/src/global.cpp:4883: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(&eventContent[2*sizeof(int)],"%.*Lg",pref->outputLength,value.fval.real());
data/concalc-0.9.2/src/global.cpp:5610: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.
							sprintf(value.cval,"%lli",n.ival);
data/concalc-0.9.2/src/global.cpp:5614: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.
							sprintf(value.cval,"%Lg",n.fval.real());
data/concalc-0.9.2/src/global.cpp:5619:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
								sprintf(&value.cval[strlen(value.cval)],"%Lg",n.fval.imag());
data/concalc-0.9.2/src/global.cpp:5628:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
								strcpy(value.cval,"true");
data/concalc-0.9.2/src/global.cpp:5629:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
							else strcpy(value.cval,"false");
data/concalc-0.9.2/src/global.cpp:5970:4:  [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(eventContent,value.cval,pathlen+1);
data/concalc-0.9.2/src/global.cpp:5992:4:  [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(value.cval,eventReciver->data,dataLen+1);
data/concalc-0.9.2/src/global.cpp:6001:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				f=fopen(value.cval,"r");
data/concalc-0.9.2/src/global.cpp:6040: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(&eventContent[pathlen+1],"%.*Lg",pref->outputLength,n.fval.real());
data/concalc-0.9.2/src/global.cpp:6060:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				f=fopen(value.cval,"a");
data/concalc-0.9.2/src/global.cpp:6089: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(&eventContent[pathlen+1],"%.*Lg",pref->outputLength,n.fval.real());
data/concalc-0.9.2/src/global.cpp:6110:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				f=fopen(value.cval,"w");
data/concalc-0.9.2/src/global.cpp:6315:4:  [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(value.cval,eventReciver->data,dataLen+1);
data/concalc-0.9.2/src/global.cpp:6335:4:  [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(value.cval,input,strlen(input)-1);
data/concalc-0.9.2/src/global.cpp:6479: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(result,matrix,size*size*sizeof(long double));
data/concalc-0.9.2/src/global.cpp:6525: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(matrix,result,size*size*sizeof(long double));
data/concalc-0.9.2/src/concalc.cpp:88: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).
	char*path=new char[strlen(homedir)+20];
data/concalc-0.9.2/src/concalc.cpp:89: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).
	memcpy(path,homedir,strlen(homedir));
data/concalc-0.9.2/src/concalc.cpp:90: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).
	memcpy(&path[strlen(homedir)],"/.concalcvariables",19);
data/concalc-0.9.2/src/concalc.cpp:282: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).
				input=(char*)malloc(strlen(argv[c])+1);
data/concalc-0.9.2/src/concalc.cpp:283: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).
				memcpy(input,argv[c],strlen(argv[c])+1);
data/concalc-0.9.2/src/concalc.cpp:287: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).
				input=(char*)malloc(strlen(argv[c])+strlen(temp)+1);
data/concalc-0.9.2/src/concalc.cpp:287: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).
				input=(char*)malloc(strlen(argv[c])+strlen(temp)+1);
data/concalc-0.9.2/src/concalc.cpp:288: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).
				memcpy(input,temp,strlen(temp));
data/concalc-0.9.2/src/concalc.cpp:289: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).
				memcpy(&input[strlen(temp)],argv[c],strlen(argv[c])+1);
data/concalc-0.9.2/src/concalc.cpp:289: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).
				memcpy(&input[strlen(temp)],argv[c],strlen(argv[c])+1);
data/concalc-0.9.2/src/concalc.cpp:303:3:  [1] (buffer) scanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		scanf("%1024s",input);
data/concalc-0.9.2/src/concalc.cpp:522:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		newVarString=strins(newVarString,varString,strlen(newVarString));
data/concalc-0.9.2/src/concalc.cpp:523: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).
		newVarString=strins(newVarString,"\n",strlen(newVarString));
data/concalc-0.9.2/src/concalc.cpp:526:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		newVarString=strins(newVarString,varString,strlen(newVarString));
data/concalc-0.9.2/src/concalc.cpp:527: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).
		newVarString=strins(newVarString,"\n",strlen(newVarString));
data/concalc-0.9.2/src/concalc.cpp:533: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).
		fwrite(newVarString,strlen(newVarString),1,variablesFile);
data/concalc-0.9.2/src/concalc.cpp:566: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).
	int len=strlen(code);
data/concalc-0.9.2/src/concalc.cpp:582: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).
		lineLen=strlen(line);
data/concalc-0.9.2/src/concalc.cpp:602: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).
	int len=strlen(code);
data/concalc-0.9.2/src/concalc.cpp:691:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					subScript->split(cleanSubFileContent,0,strlen(cleanSubFileContent));
data/concalc-0.9.2/src/global.cpp:30: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).
	unsigned int len=strlen(input);
data/concalc-0.9.2/src/global.cpp:64: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).
			len=strlen(input);
data/concalc-0.9.2/src/global.cpp:75: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).
	int pos=0,startPos=0,endPos=0,len=strlen(code);
data/concalc-0.9.2/src/global.cpp:161: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).
			len=strlen(code);
data/concalc-0.9.2/src/global.cpp:168:5:  [1] (buffer) strlen:
  Does not handle 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(code)<=0)
data/concalc-0.9.2/src/global.cpp:176: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).
	int pos=0,startPos=0,endPos=0,len=strlen(code),macroLen=0,replacementLen=0;
data/concalc-0.9.2/src/global.cpp:211: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).
			len=strlen(code);
data/concalc-0.9.2/src/global.cpp:215:85:  [1] (buffer) strlen:
  Does not handle 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(configString[endPos]!=' ' && configString[endPos]!='\t' && endPos<=(signed)strlen(configString))
data/concalc-0.9.2/src/global.cpp:221: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).
			macroLen=strlen(macro);
data/concalc-0.9.2/src/global.cpp:224:93:  [1] (buffer) strlen:
  Does not handle 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((configString[startPos]==' ' || configString[startPos]=='\t') && startPos<=(signed)strlen(configString))
data/concalc-0.9.2/src/global.cpp:226: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).
			endPos=strlen(configString);
data/concalc-0.9.2/src/global.cpp:234: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).
			replacementLen=strlen(replacement);
data/concalc-0.9.2/src/global.cpp:250:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(macro)>0 && strlen(replacement)>0)
data/concalc-0.9.2/src/global.cpp:250: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(strlen(macro)>0 && strlen(replacement)>0)
data/concalc-0.9.2/src/global.cpp:274: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(code);
data/concalc-0.9.2/src/global.cpp:286:5:  [1] (buffer) strlen:
  Does not handle 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(code)<=0)
data/concalc-0.9.2/src/global.cpp:295: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).
	unsigned int len=strlen(code);
data/concalc-0.9.2/src/global.cpp:366: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).
		len=strlen(code);
data/concalc-0.9.2/src/global.cpp:446: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).
		len=strlen(code);
data/concalc-0.9.2/src/global.cpp:500: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).
		len=strlen(code);
data/concalc-0.9.2/src/global.cpp:510: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).
	int searchLen=strlen(searchString);
data/concalc-0.9.2/src/global.cpp:514:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		end=(int)strlen(string);
data/concalc-0.9.2/src/global.cpp:581: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).
		start=strlen(string)-1;
data/concalc-0.9.2/src/global.cpp:583: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).
	int searchLen=strlen(searchString);
data/concalc-0.9.2/src/global.cpp:648: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).
	int srclen=strlen(src);
data/concalc-0.9.2/src/global.cpp:658: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).
	int destlen=strlen(dest);
data/concalc-0.9.2/src/global.cpp:659: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).
	int srclen=strlen(src);
data/concalc-0.9.2/src/global.cpp:678: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).
	int replen=strlen(rep),stlen=strlen(st);
data/concalc-0.9.2/src/global.cpp:678: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).
	int replen=strlen(rep),stlen=strlen(st);
data/concalc-0.9.2/src/global.cpp:700: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).
	unsigned int inslen=strlen(ins),stlen=strlen(st);
data/concalc-0.9.2/src/global.cpp:700: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).
	unsigned int inslen=strlen(ins),stlen=strlen(st);
data/concalc-0.9.2/src/global.cpp:713: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).
	char* calcString=new char[strlen(str)+1];
data/concalc-0.9.2/src/global.cpp:715: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).
	memcpy(calcString,str,strlen(str)+1);
data/concalc-0.9.2/src/global.cpp:716: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).
	int calcLen=strlen(calcString);
data/concalc-0.9.2/src/global.cpp:746: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).
				if((signed)strlen(calcString)>c+1)
data/concalc-0.9.2/src/global.cpp:783: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).
		calcLen=strlen(calcString);
data/concalc-0.9.2/src/global.cpp:1004: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).
		calcLen=strlen(calcString);
data/concalc-0.9.2/src/global.cpp:1044: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).
		calcLen=strlen(calcString);
data/concalc-0.9.2/src/global.cpp:1101: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).
			c+=strlen(SPI)-2;
data/concalc-0.9.2/src/global.cpp:1114: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).
			c+=strlen(SEULER)-2;
data/concalc-0.9.2/src/global.cpp:1116: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).
		calcLen=strlen(calcString);
data/concalc-0.9.2/src/global.cpp:1155: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).
		calcLen=strlen(calcString);
data/concalc-0.9.2/src/global.cpp:1235: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).
	int len=strlen(line);
data/concalc-0.9.2/src/global.cpp:1476: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).
		vertObj=new Calculate(this,parStr,0,strlen(parStr),pref,vars);
data/concalc-0.9.2/src/global.cpp:2839:87:  [1] (buffer) strlen:
  Does not handle 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(eventReciver->subprogramPath[c],line+start+5,end-start-7)==0 && (signed)strlen(eventReciver->subprogramPath[c])==end-start-7)
data/concalc-0.9.2/src/global.cpp:3331:4:  [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);
data/concalc-0.9.2/src/global.cpp:3333: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(100000);
data/concalc-0.9.2/src/global.cpp:3336:20:  [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(eventReciver->usleep)
data/concalc-0.9.2/src/global.cpp:3339:4:  [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(eventReciver->sleepTime);
data/concalc-0.9.2/src/global.cpp:3383:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(eventReciver->vars[var][0].cval!=NULL && (signed)strlen(eventReciver->vars[var][0].cval)>index)
data/concalc-0.9.2/src/global.cpp:3428:61:  [1] (buffer) strlen:
  Does not handle 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(eventReciver->vars[var][index].cval!=NULL && (signed)strlen(eventReciver->vars[var][index].cval)>index2)
data/concalc-0.9.2/src/global.cpp:3472:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int strlen1=strlen(value.cval);
data/concalc-0.9.2/src/global.cpp:3473:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int strlen2=strlen(n.cval);
data/concalc-0.9.2/src/global.cpp:3951: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).
				else if((signed)strlen(eventReciver->vars[var][index].cval)<index2+1)
data/concalc-0.9.2/src/global.cpp:3978:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							eventReciver->vars[var][effIndex].cval=(char*)malloc(strlen(value.cval)+1);
data/concalc-0.9.2/src/global.cpp:3979:105:  [1] (buffer) strlen:
  Does not handle 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 eventReciver->vars[var][effIndex].cval=(char*)realloc(eventReciver->vars[var][effIndex].cval,strlen(value.cval)+1);
data/concalc-0.9.2/src/global.cpp:4537: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).
					int slen=strlen(value.cval);
data/concalc-0.9.2/src/global.cpp:4550: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).
							eventContent=(char*)realloc(eventContent,strlen(eventContent)+44);
data/concalc-0.9.2/src/global.cpp:4551: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).
							sprintf(&eventContent[strlen(eventContent)]," %.*Lg",pref->outputLength,real(eventReciver->vars[value.ival][c].fval));
data/concalc-0.9.2/src/global.cpp:4554: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).
							eventContent=(char*)realloc(eventContent,strlen(eventContent)+86);
data/concalc-0.9.2/src/global.cpp:4556: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).
								sprintf(&eventContent[strlen(eventContent)]," %.*Lg%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][c].fval),pref->outputLength,imag(eventReciver->vars[value.ival][c].fval));
data/concalc-0.9.2/src/global.cpp:4557: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).
							else sprintf(&eventContent[strlen(eventContent)]," %.*Lg+%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][c].fval),pref->outputLength,imag(eventReciver->vars[value.ival][c].fval));
data/concalc-0.9.2/src/global.cpp:4574: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).
								eventContent=(char*)realloc(eventContent,strlen(eventContent)+45);
data/concalc-0.9.2/src/global.cpp:4575: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).
								sprintf(&eventContent[strlen(eventContent)]," %.*Lg",pref->outputLength,real(eventReciver->vars[value.ival][effIndex].fval));
data/concalc-0.9.2/src/global.cpp:4578: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).
								eventContent=(char*)realloc(eventContent,strlen(eventContent)+87);
data/concalc-0.9.2/src/global.cpp:4580: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).
									sprintf(&eventContent[strlen(eventContent)]," %.*Lg%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][effIndex].fval),pref->outputLength,imag(eventReciver->vars[value.ival][effIndex].fval));
data/concalc-0.9.2/src/global.cpp:4581: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).
								else sprintf(&eventContent[strlen(eventContent)]," %.*Lg+%.*Lgi",pref->outputLength,real(eventReciver->vars[value.ival][effIndex].fval),pref->outputLength,imag(eventReciver->vars[value.ival][effIndex].fval));
data/concalc-0.9.2/src/global.cpp:4584: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.
						sprintf(&eventContent[strlen(eventContent)],"\n");
data/concalc-0.9.2/src/global.cpp:4584: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).
						sprintf(&eventContent[strlen(eventContent)],"\n");
data/concalc-0.9.2/src/global.cpp:4660: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).
						eventContent=(char*)malloc(strlen(value.cval)+2*sizeof(int)+2);
data/concalc-0.9.2/src/global.cpp:4746:6:  [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(500);
data/concalc-0.9.2/src/global.cpp:4886: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).
				eventContent=(char*)malloc(strlen(value.cval)+2*sizeof(int)+1);
data/concalc-0.9.2/src/global.cpp:5569:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							if(n.cval==NULL || strlen(n.cval)<=0)
data/concalc-0.9.2/src/global.cpp:5618:10:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
									strcpy(value.cval,"+");
data/concalc-0.9.2/src/global.cpp:5619: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).
								sprintf(&value.cval[strlen(value.cval)],"%Lg",n.fval.imag());
data/concalc-0.9.2/src/global.cpp:5620:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
								strcpy(value.cval,"i");
data/concalc-0.9.2/src/global.cpp:5967: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).
			int pathlen=strlen(value.cval);
data/concalc-0.9.2/src/global.cpp:5988: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(5000);
data/concalc-0.9.2/src/global.cpp:5990: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).
			int dataLen=strlen((char*)eventReciver->data);
data/concalc-0.9.2/src/global.cpp:5999:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(value.cval)>0 && lstat(value.cval,&fileStat)==0)
data/concalc-0.9.2/src/global.cpp:6034: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).
			int pathlen=strlen(value.cval);
data/concalc-0.9.2/src/global.cpp:6043: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).
				eventContent=(char*)malloc(strlen(n.cval)+pathlen+2);
data/concalc-0.9.2/src/global.cpp:6058:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(value.cval)>0)
data/concalc-0.9.2/src/global.cpp:6063: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).
					int dataLen=strlen(&((char*)eventContent)[pathlen+1]);
data/concalc-0.9.2/src/global.cpp:6083: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).
			int pathlen=strlen(value.cval);
data/concalc-0.9.2/src/global.cpp:6092: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).
				eventContent=(char*)malloc(strlen(n.cval)+pathlen+2);
data/concalc-0.9.2/src/global.cpp:6108:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(value.cval)>0)
data/concalc-0.9.2/src/global.cpp:6113: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).
					int dataLen=strlen(&((char*)eventContent)[pathlen+1]);
data/concalc-0.9.2/src/global.cpp:6133: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).
			char*eventContent=(char*)malloc(strlen(value.cval)+1);
data/concalc-0.9.2/src/global.cpp:6156: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(sleeptime);
data/concalc-0.9.2/src/global.cpp:6226: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(2000);
data/concalc-0.9.2/src/global.cpp:6232:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			value.cval[0]=(char)getchar();
data/concalc-0.9.2/src/global.cpp:6257: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);
data/concalc-0.9.2/src/global.cpp:6273:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int key=getchar();
data/concalc-0.9.2/src/global.cpp:6311: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(5000);
data/concalc-0.9.2/src/global.cpp:6313: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).
			int dataLen=strlen((char*)eventReciver->data);
data/concalc-0.9.2/src/global.cpp:6334: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).
			value.cval=(char*)realloc(value.cval,strlen(input));
data/concalc-0.9.2/src/global.cpp:6335: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).
			memcpy(value.cval,input,strlen(input)-1);
data/concalc-0.9.2/src/global.cpp:6336: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).
			value.cval[strlen(input)-1]=(char)0;
data/concalc-0.9.2/src/global.h:230:7:  [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.
	bool usleep;
data/concalc-0.9.2/src/global.h:374: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).
			else split(line,0,strlen(line));
data/concalc-0.9.2/src/global.h:421: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).
					split(line,0,strlen(line));
data/concalc-0.9.2/src/global.h:425: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).
					int rest=parse(line,0,strlen(line));

ANALYSIS SUMMARY:

Hits = 213
Lines analyzed = 8244 in approximately 0.23 seconds (35650 lines/second)
Physical Source Lines of Code (SLOC) = 7332
Hits@level = [0]  51 [1] 123 [2]  77 [3]   3 [4]  10 [5]   0
Hits@level+ = [0+] 264 [1+] 213 [2+]  90 [3+]  13 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 36.0065 [1+] 29.0507 [2+] 12.275 [3+] 1.77305 [4+] 1.36388 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.