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/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_struct.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_jordan.h Examining data/sdpa-7.3.14+dfsg/sdpa_block.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_algebra.h Examining data/sdpa-7.3.14+dfsg/sdpa_linear.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_block.h Examining data/sdpa-7.3.14+dfsg/sdpa_tool.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_exe.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_right.h Examining data/sdpa-7.3.14+dfsg/sdpa_chordal.h Examining data/sdpa-7.3.14+dfsg/sdpa_jordan.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_parts.h Examining data/sdpa-7.3.14+dfsg/sdpa_dataset.h Examining data/sdpa-7.3.14+dfsg/mex/mexDisAggSDPsol.cpp Examining data/sdpa-7.3.14+dfsg/mex/mexAggSDPcones.cpp Examining data/sdpa-7.3.14+dfsg/mex/mexFprintf.c Examining data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp Examining data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp Examining data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp Examining data/sdpa-7.3.14+dfsg/mex/mexReadSDPAToSedumi.cpp Examining data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_call.h Examining data/sdpa-7.3.14+dfsg/sdpa_call.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_io.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_newton.h Examining data/sdpa-7.3.14+dfsg/sdpa_newton.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_struct.h Examining data/sdpa-7.3.14+dfsg/sdpa_tool.h Examining data/sdpa-7.3.14+dfsg/sdpa_linear.h Examining data/sdpa-7.3.14+dfsg/libexample/example4.cpp Examining data/sdpa-7.3.14+dfsg/libexample/example1.cpp Examining data/sdpa-7.3.14+dfsg/libexample/example5.cpp Examining data/sdpa-7.3.14+dfsg/libexample/example3.cpp Examining data/sdpa-7.3.14+dfsg/libexample/example6.cpp Examining data/sdpa-7.3.14+dfsg/libexample/example2.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_dataset.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_dpotrf.h Examining data/sdpa-7.3.14+dfsg/sdpa_chordal.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_include.h Examining data/sdpa-7.3.14+dfsg/sdpa_io.h Examining data/sdpa-7.3.14+dfsg/sdpa_parts.cpp Examining data/sdpa-7.3.14+dfsg/sdpa_solve.cpp FINAL RESULTS: data/sdpa-7.3.14+dfsg/libexample/example1.cpp:180: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(fpout,printFormat,ele[k]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:183: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(fpout,printFormat,ele[dim-1]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:193: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(fpout,printFormat,ele[i+dim*j]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:196: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(fpout,printFormat,ele[i+dim*(dim-1)]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:208: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(fpout, printFormat, dimacs_error[1]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:211: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(fpout, printFormat, dimacs_error[2]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:214: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(fpout, printFormat, dimacs_error[3]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:217: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(fpout, printFormat, dimacs_error[4]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:220: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(fpout, printFormat, dimacs_error[5]); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:223: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(fpout, printFormat, dimacs_error[6]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:364: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(fpout,printFormat,ele[k]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:367: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(fpout,printFormat,ele[dim-1]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:377: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(fpout,printFormat,ele[i+dim*j]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:380: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(fpout,printFormat,ele[i+dim*(dim-1)]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:392: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(fpout, printFormat, dimacs_error[1]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:395: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(fpout, printFormat, dimacs_error[2]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:398: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(fpout, printFormat, dimacs_error[3]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:401: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(fpout, printFormat, dimacs_error[4]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:404: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(fpout, printFormat, dimacs_error[5]); data/sdpa-7.3.14+dfsg/libexample/example2.cpp:407: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(fpout, printFormat, dimacs_error[6]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:200: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(fpout,printFormat,ele[k]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:203: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(fpout,printFormat,ele[dim-1]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:213: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(fpout,printFormat,ele[i+dim*j]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:216: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(fpout,printFormat,ele[i+dim*(dim-1)]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:228: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(fpout, printFormat, dimacs_error[1]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:231: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(fpout, printFormat, dimacs_error[2]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:234: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(fpout, printFormat, dimacs_error[3]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:237: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(fpout, printFormat, dimacs_error[4]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:240: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(fpout, printFormat, dimacs_error[5]); data/sdpa-7.3.14+dfsg/libexample/example3.cpp:243: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(fpout, printFormat, dimacs_error[6]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:114: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(fpout,printFormat,ele[k]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:117: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(fpout,printFormat,ele[dim-1]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:127: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(fpout,printFormat,ele[i+dim*j]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:130: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(fpout,printFormat,ele[i+dim*(dim-1)]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:142: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(fpout, printFormat, dimacs_error[1]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:145: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(fpout, printFormat, dimacs_error[2]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:148: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(fpout, printFormat, dimacs_error[3]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:151: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(fpout, printFormat, dimacs_error[4]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:154: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(fpout, printFormat, dimacs_error[5]); data/sdpa-7.3.14+dfsg/libexample/example4.cpp:157: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(fpout, printFormat, dimacs_error[6]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:63: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(fpout,printFormat,ele[k]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:66: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(fpout,printFormat,ele[dim-1]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:76: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(fpout,printFormat,ele[i+dim*j]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:79: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(fpout,printFormat,ele[i+dim*(dim-1)]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:91: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(fpout, printFormat, dimacs_error[1]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:94: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(fpout, printFormat, dimacs_error[2]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:97: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(fpout, printFormat, dimacs_error[3]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:100: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(fpout, printFormat, dimacs_error[4]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:103: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(fpout, printFormat, dimacs_error[5]); data/sdpa-7.3.14+dfsg/libexample/example6.cpp:106: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(fpout, printFormat, dimacs_error[6]); data/sdpa-7.3.14+dfsg/mex/mexFprintf.c:32: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. int fprintf(FILE *stream, const char *format, ...) data/sdpa-7.3.14+dfsg/mex/mexFprintf.c:39:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(tmp_buf,format,arg); data/sdpa-7.3.14+dfsg/mex/mexFprintf.c:52:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return_size = vfprintf(stream,format,arg); data/sdpa-7.3.14+dfsg/mex/mexFprintf.c:63:17: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return_size = vfprintf(stream,format,arg); data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:41:3: [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(string_time,ctime(<ime)); data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:519:3: [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(string_time,ctime(<ime)); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:66: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, PRINTF_INT_STYLE "\n", mDIM); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:106: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, PRINTF_INT_STYLE "\n", nBLOCK); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:108: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(fp, PRINTF_INT_STYLE " ", -K_l); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:112: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(fp, PRINTF_INT_STYLE " ", K_s[l]); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:115: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(fp, PRINTF_INT_STYLE "\n", K_s[K_sdpNoCones-1]); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:124: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(fp, accuracy, b[k]); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:127: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, accuracy, b[mDIM-1]); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:147:2: [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, accuracy, ele); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:167:4: [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, accuracy, ele); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:187:2: [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, PRINTF_INT_STYLE " 1 " PRINTF_INT_STYLE " " PRINTF_INT_STYLE " ", k+1, Ak_j+1, Ak_j+1); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:188:2: [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, accuracy, ele); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:206:4: [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, PRINTF_INT_STYLE " " PRINTF_INT_STYLE " " PRINTF_INT_STYLE " " PRINTF_INT_STYLE " ", k+1, data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:208:4: [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, accuracy, ele); data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:50:3: [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(string_time,ctime(<ime)); data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:671:3: [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(string_time,ctime(<ime)); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:478: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(fp,param.infPrint,value); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:811:31: [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). case SolveInfo::noINFO : strcpy(str,(char *)"noINFO "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:812:31: [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). case SolveInfo::pFEAS : strcpy(str,(char *)"pFEAS "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:813:31: [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). case SolveInfo::dFEAS : strcpy(str,(char *)"dFEAS "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:814:31: [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). case SolveInfo::pdFEAS : strcpy(str,(char *)"pdFEAS "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:815:31: [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). case SolveInfo::pdINF : strcpy(str,(char *)"pdINF "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:816:31: [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). case SolveInfo::pFEAS_dINF: strcpy(str,(char *)"pFEAS_dINF"); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:817:31: [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). case SolveInfo::pINF_dFEAS: strcpy(str,(char *)"pINF_dFEAS"); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:818:31: [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). case SolveInfo::pdOPT : strcpy(str,(char *)"pdOPT "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:819:31: [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). case SolveInfo::pUNBD : strcpy(str,(char *)"pUNBD "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:820:31: [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). case SolveInfo::dUNBD : strcpy(str,(char *)"dUNBD "); break; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:822: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(str,(char *)"phase error"); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1074:2: [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,printFormat,value); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1089:4: [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,printFormat,value); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1116: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(fp,printFormat,value); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1157: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(fp,printFormat,inputData.b.ele[k]); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1194:2: [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,printFormat,value); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1216: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(fp,printFormat,value); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1234: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(fp,printFormat,-currentPt.yVec.ele[k]); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:278:3: [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(string_time,ctime(<ime)); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:375:3: [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(string_time,ctime(<ime)); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:725: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(fp, param.infPrint, mu.current); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:728: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(fp, param.infPrint, relgap); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:731: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(fp, param.infPrint, gap); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:734: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(fp, param.infPrint, digits); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:738: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(fp, param.infPrint, -solveInfo.objValDual); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:741: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(fp, param.infPrint, -solveInfo.objValPrimal); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:744: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(fp, param.infPrint, currentRes.normDualMat); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:747: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(fp, param.infPrint, currentRes.normPrimalVec); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:751: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(fp, param.infPrint, solveInfo.objValPrimal); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:754: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(fp, param.infPrint, solveInfo.objValDual); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:757: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(fp, param.infPrint, currentRes.normPrimalVec); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:760: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(fp, param.infPrint, currentRes.normDualMat); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:825: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(fpout, printFormat, DimacsError[1]); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:828: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(fpout, printFormat, DimacsError[2]); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:831: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(fpout, printFormat, DimacsError[3]); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:834: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(fpout, printFormat, DimacsError[4]); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:837: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(fpout, printFormat, DimacsError[5]); data/sdpa-7.3.14+dfsg/sdpa_io.cpp:840: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(fpout, printFormat, DimacsError[6]); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:220:3: [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(xPrint,xPRINT_DEFAULT); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:221:3: [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(XPrint,XPRINT_DEFAULT); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:222:3: [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(YPrint,YPRINT_DEFAULT); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:223:3: [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(infPrint,infPRINT_DEFAULT); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:243:3: [4] (buffer) fscanf: 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. fscanf(parameterFile,"%s %*[^\n]",xPrint); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:244:3: [4] (buffer) fscanf: 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. fscanf(parameterFile,"%s %*[^\n]",XPrint); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:245:3: [4] (buffer) fscanf: 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. fscanf(parameterFile,"%s %*[^\n]",YPrint); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:246:3: [4] (buffer) fscanf: 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. fscanf(parameterFile,"%s %*[^\n]",infPrint); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:278: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(fpout, printFormat, epsilonStar ); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:281: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(fpout, printFormat, lambdaStar ); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:284: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(fpout, printFormat, omegaStar ); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:287: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(fpout, printFormat, lowerBound); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:290: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(fpout, printFormat, upperBound); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:293: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(fpout, printFormat, betaStar ); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:296: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(fpout, printFormat, betaBar ); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:299: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(fpout, printFormat, gammaStar ); data/sdpa-7.3.14+dfsg/sdpa_parts.cpp:302: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(fpout, printFormat, epsilonDash ); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:89: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(fpout,printFormat,ele[j]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:93: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(fpout,printFormat,ele[nDim-1]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:111: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(fpout,printFormat,ele[j]*scalar); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:115: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(fpout,printFormat,ele[nDim-1]*scalar); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:395: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(fpout,printFormat,value); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:410:2: [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(fpout,printFormat,de_ele[i+nCol*j]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:413: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(fpout,printFormat,de_ele[i+nCol*(nCol-1)]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:420: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(fpout,printFormat,de_ele[(nRow-1)+nCol*j]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:423: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(fpout,printFormat,de_ele[(nRow-1)+nCol*(nCol-1)]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:807:2: [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(fpout,printFormat,de_ele[i+nCol*j]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:810: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(fpout,printFormat,de_ele[i+nCol*(nCol-1)]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:817: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(fpout,printFormat,de_ele[(nRow-1)+nCol*j]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:820: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(fpout,printFormat,de_ele[(nRow-1)+nCol*(nCol-1)]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:1196: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(fpout,printFormat,LP_sp_block[l]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:1582: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(fpout,printFormat,LP_block[l]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:1614:2: [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(fpout,printFormat,LP_block[start+l2]); data/sdpa-7.3.14+dfsg/sdpa_struct.cpp:1618:2: [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(fpout,printFormat,LP_block[start+size-1]); data/sdpa-7.3.14+dfsg/sdpa_newton.cpp:1568:12: [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. env1 = getenv("OMP_NUM_THREADS"); data/sdpa-7.3.14+dfsg/libexample/example1.cpp:111:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char phase_string[30]; data/sdpa-7.3.14+dfsg/libexample/example2.cpp:295: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 phase_string[30]; data/sdpa-7.3.14+dfsg/libexample/example3.cpp:131: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 phase_string[30]; data/sdpa-7.3.14+dfsg/libexample/example4.cpp:166: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 phase_string[30]; data/sdpa-7.3.14+dfsg/libexample/example5.cpp:36:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fpresult = fopen(argv[2],"w")) == NULL) { data/sdpa-7.3.14+dfsg/libexample/example6.cpp:115: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 phase_string[30]; data/sdpa-7.3.14+dfsg/mex/mexFprintf.c:38:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_buf[BUF_LENGTH]; data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp: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 str[lengthOfString]; data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:77:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fpData = fopen(filename,"r")) == NULL) { data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:139:33: [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). *mxGetPr(field_ptr) = (double)atoi(stringIteration); data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:142:33: [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). mexPrintf("Iteration = %d\n", atoi(stringIteration)); data/sdpa-7.3.14+dfsg/mex/mexReadSDPAToSedumi.cpp:191:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fpData = fopen(filename,"r")) == NULL) { data/sdpa-7.3.14+dfsg/mex/mexReadSDPAToSedumi.cpp:206: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 str[lengthOfString]; data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:40: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 string_time[1024]; data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:203:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(outfile, "at"); data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:233:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fpResult = fopen(outfile, "w"); data/sdpa-7.3.14+dfsg/mex/mexWriteSedumiToSDPA.cpp:54:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename,"w")) == NULL) { data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:49: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 string_time[1024]; data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:217:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(outfile, "at"); data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:243:18: [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). fpResult = fopen(outfile, "w"); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:934:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fpinput = fopen(filename,"r")) == NULL) { data/sdpa-7.3.14+dfsg/sdpa_call.cpp:947: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 titleAndComment[LengthOfBuffer]; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:983:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fpinit = fopen(filename,"r")) == NULL) { data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1016:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(filename,"r"))==NULL) { data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1124:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(filename,"w"))==NULL) { data/sdpa-7.3.14+dfsg/sdpa_call.cpp:1224:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp=fopen(filename,"w"))==NULL) { data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:172: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). int tmp = atoi(argv[index+1]); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:191: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). numThreads = atoi(argv[index+1]); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:214: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). numThreads = atoi(argv[index+1]); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:218: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). int tmp = atoi(argv[index+1]); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:250:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fptmp=fopen(paramFileName,"r"))==NULL) { data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:252:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fptmp=fopen(DEFAULT_PARAMETER_FILE,"r"))==NULL) { data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:277: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 string_time[1024]; data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:303:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fpresult = fopen(resultFileName,"w")) == NULL) { data/sdpa-7.3.14+dfsg/sdpa_newton.cpp:1570:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). NUM_THREADS = atoi(env1); data/sdpa-7.3.14+dfsg/sdpa_parts.h:105:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char xPRINT_DEFAULT[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:106:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char XPRINT_DEFAULT[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:107:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char YPRINT_DEFAULT[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:108:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char infPRINT_DEFAULT[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:109: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 xPrint[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:110: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 XPrint[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:111:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char YPrint[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/sdpa_parts.h:112:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char infPrint[PRINT_DEFAULT_LENGTH]; data/sdpa-7.3.14+dfsg/mex/mexFprintf.c:45: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). return_size = strlen(tmp_buf); data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:115:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen("phase.value = "); data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:137:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen("Iteration = "); data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:153:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen("objValPrimal = "); data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:168:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen("objValDual = "); data/sdpa-7.3.14+dfsg/mex/mexReadOutput.cpp:183:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen("total time = "); data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:42: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). string_time[strlen(string_time)-1]='\0'; data/sdpa-7.3.14+dfsg/mex/mexSedumiWrap.cpp:520: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). string_time[strlen(string_time)-1]='\0'; data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:51: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). string_time[strlen(string_time)-1]='\0'; data/sdpa-7.3.14+dfsg/mex/mexsdpa.cpp:672: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). string_time[strlen(string_time)-1]='\0'; data/sdpa-7.3.14+dfsg/sdpa_call.cpp:140:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(param.xPrint,xPrint,PRINT_DEFAULT_LENGTH); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:145:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(param.XPrint,XPrint,PRINT_DEFAULT_LENGTH); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:150:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(param.YPrint,YPrint,PRINT_DEFAULT_LENGTH); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:155:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(param.infPrint,infPrint,PRINT_DEFAULT_LENGTH); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:920: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 len = strlen(filename); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:948:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(fpinput,fpout,m,titleAndComment); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:949:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(fpinput,nBlock); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:951:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(fpinput,bs); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:954:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(fpinput,m,bs,inputData,isDataSparse); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:970: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 len = strlen(filename); data/sdpa-7.3.14+dfsg/sdpa_call.cpp:995:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(fpinit,currentPt.xMat,currentPt.yVec,currentPt.zMat, data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:227: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). &IMONE,&IONE, &IMONE, strlen("DPOTRF"), strlen("L")); data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:227:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). &IMONE,&IONE, &IMONE, strlen("DPOTRF"), strlen("L")); data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:242: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). Ar, &lda, strlen("R"),strlen("L"), data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:242: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). Ar, &lda, strlen("R"),strlen("L"), data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:243:4: [1] (buffer) strlen: Does not handle 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("T"),strlen("N")); data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:243: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). strlen("T"),strlen("N")); data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:245: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). Ar, &lda, &DONE,An,&lda,strlen("L"),strlen("N")); data/sdpa-7.3.14+dfsg/sdpa_dpotrf.cpp:245: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). Ar, &lda, &DONE,An,&lda,strlen("L"),strlen("N")); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:199: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 len = strlen(inputFileName); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:237: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). int len = strlen(initFileName); data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:279: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). string_time[strlen(string_time)-1]='\0'; data/sdpa-7.3.14+dfsg/sdpa_exe.cpp:376: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). string_time[strlen(string_time)-1]='\0'; data/sdpa-7.3.14+dfsg/sdpa_io.cpp:30:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IO::read(FILE* fpData, FILE* fpout, int& m, char* str) data/sdpa-7.3.14+dfsg/sdpa_io.cpp:44:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IO::read(FILE* fpData, int & nBlock) data/sdpa-7.3.14+dfsg/sdpa_io.cpp:49:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IO::read(FILE* fpData, BlockStruct& bs) data/sdpa-7.3.14+dfsg/sdpa_io.cpp:65:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IO::read(FILE* fpData, Vector& b) data/sdpa-7.3.14+dfsg/sdpa_io.cpp:72:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IO::read(FILE* fpData, DenseLinearSpace& xMat, data/sdpa-7.3.14+dfsg/sdpa_io.cpp:223:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IO::read(FILE* fpData, int m, data/sdpa-7.3.14+dfsg/sdpa_io.cpp:228:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fpData,inputData.b); data/sdpa-7.3.14+dfsg/sdpa_io.h:35:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read(FILE* fpData, FILE* fpout, int& m, char* str); data/sdpa-7.3.14+dfsg/sdpa_io.h:36:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read(FILE* fpData, int& nBlock); data/sdpa-7.3.14+dfsg/sdpa_io.h:37:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read(FILE* fpData, BlockStruct& bs); data/sdpa-7.3.14+dfsg/sdpa_io.h:38:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read(FILE* fpData, Vector& b); data/sdpa-7.3.14+dfsg/sdpa_io.h:39:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read(FILE* fpData, DenseLinearSpace& xMat, data/sdpa-7.3.14+dfsg/sdpa_io.h:42:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read(FILE* fpData, int m, data/sdpa-7.3.14+dfsg/sdpa_jordan.cpp:205:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Left"),strlen("Lower"), data/sdpa-7.3.14+dfsg/sdpa_jordan.cpp:205: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). strlen("Left"),strlen("Lower"), data/sdpa-7.3.14+dfsg/sdpa_jordan.cpp:206:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Transpose"),strlen("NonUnitDiag") ); data/sdpa-7.3.14+dfsg/sdpa_jordan.cpp:206: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). strlen("Transpose"),strlen("NonUnitDiag") ); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:70:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Lower"), strlen("Transpose"),strlen("NotUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:70: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). strlen("Lower"), strlen("Transpose"),strlen("NotUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:70: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). strlen("Lower"), strlen("Transpose"),strlen("NotUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:76:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Lower"), strlen("NoTranspose"),strlen("NotUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:76: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). strlen("Lower"), strlen("NoTranspose"),strlen("NotUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:76:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Lower"), strlen("NoTranspose"),strlen("NotUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:103: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). strlen("I_withEigenvalues")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:167:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("NonVectors"), strlen("Lower")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:167: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). strlen("NonVectors"), strlen("Lower")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:481: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). &retMat.nRow,&info,strlen("Lower")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:584:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Left"),strlen("Lower"), data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:584: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). strlen("Left"),strlen("Lower"), data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:585:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("NoTraspose"),strlen("NonUnitDiagonal")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:585: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). strlen("NoTraspose"),strlen("NonUnitDiagonal")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:711: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). &a[(j + 1)+nRow*j], &IONE, strlen("No transpose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:729:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("DPOTRF"), strlen("L")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:729: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). strlen("DPOTRF"), strlen("L")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:739:3: [1] (buffer) strlen: Does not handle 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("Lower"), strlen("No transpose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:739: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). strlen("Lower"), strlen("No transpose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:751: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). strlen("No transpose"), strlen("Transpose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:751: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). strlen("No transpose"), strlen("Transpose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:756: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). strlen("Right"), strlen("Lower"), data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:756: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). strlen("Right"), strlen("Lower"), data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:757: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). strlen("Transpose"), strlen("Non-unit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:757: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). strlen("Transpose"), strlen("Non-unit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:777: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). &info,strlen("Lower")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:859:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Lower"), strlen("NoTranspose"), strlen("NonUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:859: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). strlen("Lower"), strlen("NoTranspose"), strlen("NonUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:859: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). strlen("Lower"), strlen("NoTranspose"), strlen("NonUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:862:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Lower"), strlen("Transpose"), strlen("NonUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:862: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). strlen("Lower"), strlen("Transpose"), strlen("NonUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:862:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Lower"), strlen("Transpose"), strlen("NonUnit")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1124:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("NoTranspose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1124: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). strlen("NoTranspose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1229:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("NoTranspose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1229: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). strlen("NoTranspose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1309:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("NoTranspose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1309: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). strlen("NoTranspose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1386: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). &DZERO,retVec.ele,&IONE,strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1415:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("Transpose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1415: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). strlen("Transpose"),strlen("NoTranspose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1444:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("NoTranspose"),strlen("Transpose")); data/sdpa-7.3.14+dfsg/sdpa_linear.cpp:1444: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). strlen("NoTranspose"),strlen("Transpose")); ANALYSIS SUMMARY: Hits = 281 Lines analyzed = 19295 in approximately 0.49 seconds (39438 lines/second) Physical Source Lines of Code (SLOC) = 15078 Hits@level = [0] 647 [1] 93 [2] 43 [3] 1 [4] 144 [5] 0 Hits@level+ = [0+] 928 [1+] 281 [2+] 188 [3+] 145 [4+] 144 [5+] 0 Hits/KSLOC@level+ = [0+] 61.5466 [1+] 18.6364 [2+] 12.4685 [3+] 9.61666 [4+] 9.55034 [5+] 0 Dot directories skipped = 2 (--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.