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/f2j-0.8.1+dfsg/src/codegen.h Examining data/f2j-0.8.1+dfsg/src/dlist.c Examining data/f2j-0.8.1+dfsg/src/dlist.h Examining data/f2j-0.8.1+dfsg/src/f2j-config.h Examining data/f2j-0.8.1+dfsg/src/f2j.h Examining data/f2j-0.8.1+dfsg/src/f2j_externs.h Examining data/f2j-0.8.1+dfsg/src/f2jlex.c Examining data/f2j-0.8.1+dfsg/src/f2jmem.c Examining data/f2j-0.8.1+dfsg/src/f2jmem.h Examining data/f2j-0.8.1+dfsg/src/getopt.c Examining data/f2j-0.8.1+dfsg/src/globals.c Examining data/f2j-0.8.1+dfsg/src/initialize.h Examining data/f2j-0.8.1+dfsg/src/symtab.c Examining data/f2j-0.8.1+dfsg/src/symtab.h Examining data/f2j-0.8.1+dfsg/src/typecheck.c Examining data/f2j-0.8.1+dfsg/src/vcg_emitter.c Examining data/f2j-0.8.1+dfsg/src/y.tab.h Examining data/f2j-0.8.1+dfsg/src/f2jmain.c Examining data/f2j-0.8.1+dfsg/src/y.tab.c Examining data/f2j-0.8.1+dfsg/src/codegen.c Examining data/f2j-0.8.1+dfsg/src/opcodes.h Examining data/f2j-0.8.1+dfsg/src/optimize.c Examining data/f2j-0.8.1+dfsg/libbytecode/api.c Examining data/f2j-0.8.1+dfsg/libbytecode/api.h Examining data/f2j-0.8.1+dfsg/libbytecode/bytecode.h Examining data/f2j-0.8.1+dfsg/libbytecode/class.c Examining data/f2j-0.8.1+dfsg/libbytecode/class.h Examining data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c Examining data/f2j-0.8.1+dfsg/libbytecode/constant_pool.h Examining data/f2j-0.8.1+dfsg/libbytecode/dlist.c Examining data/f2j-0.8.1+dfsg/libbytecode/dlist.h Examining data/f2j-0.8.1+dfsg/libbytecode/globals.c FINAL RESULTS: data/f2j-0.8.1+dfsg/src/codegen.c:1016:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(stop_msg, root->astnode.constant.number, MAX_CONST_LEN); data/f2j-0.8.1+dfsg/libbytecode/api.c:118: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(pname, t); data/f2j-0.8.1+dfsg/libbytecode/api.c:120:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(pname, thisclass); data/f2j-0.8.1+dfsg/libbytecode/api.c:3473: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(full_file, output_dir); data/f2j-0.8.1+dfsg/libbytecode/api.c:3475:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_file, BC_FILE_DELIM); data/f2j-0.8.1+dfsg/libbytecode/api.c:3476:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_file, file); data/f2j-0.8.1+dfsg/libbytecode/bytecode.h:118:24: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug_msg(...) fprintf(stderr, __VA_ARGS__) data/f2j-0.8.1+dfsg/libbytecode/bytecode.h:124:24: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug_err(...) fprintf(stderr, __VA_ARGS__) data/f2j-0.8.1+dfsg/src/codegen.c:1484:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_commonblockname, "%s%s", CB_PREFIX, cblk_name); data/f2j-0.8.1+dfsg/src/codegen.c:1693:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(common_classname,"%s_%s",prefix,Ctemp->astnode.common.name); data/f2j-0.8.1+dfsg/src/codegen.c:1702:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename,"%s.java", cur_filename); data/f2j-0.8.1+dfsg/src/codegen.c:2878:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(src_initializer,"\"%*s\"",ht->variable->astnode.ident.len," "); data/f2j-0.8.1+dfsg/src/codegen.c:4642:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cprefix,"%s.", mtmp->classname); data/f2j-0.8.1+dfsg/src/codegen.c:4651:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cprefix,"%s_%s.", full_prefix, data/f2j-0.8.1+dfsg/src/codegen.c:6434:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pow_cast, "(%s)", returnstring[root->vartype]); data/f2j-0.8.1+dfsg/src/codegen.c:7164: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(filename, cur_filename); data/f2j-0.8.1+dfsg/src/codegen.c:7345:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( temp2, tempnode->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:7396: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(intfilename, tempstring); data/f2j-0.8.1+dfsg/src/codegen.c:7532:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(decstr,"%s [] _%s_copy = MatConv.%sTwoDtoOneD(%s);", data/f2j-0.8.1+dfsg/src/codegen.c:7542:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(decstr,"MatConv.copyOneDintoTwoD(%s,_%s_copy);", data/f2j-0.8.1+dfsg/src/codegen.c:7564:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( temp2, tempnode->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:7675:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( temp2, tempnode->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:8869:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf, temp->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:8895:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf, tmpstr); data/f2j-0.8.1+dfsg/src/codegen.c:8901:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf, temp->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:8906:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf, tmpstr); data/f2j-0.8.1+dfsg/src/codegen.c:9814:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"%s_methcall",root->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:9827:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmeth->descriptor, METHOD_CLASS); data/f2j-0.8.1+dfsg/src/codegen.c:9829:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmeth->descriptor, tmpdesc); data/f2j-0.8.1+dfsg/src/codegen.c:9831:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmeth->descriptor, field_descriptor[root->vartype][0]); data/f2j-0.8.1+dfsg/src/codegen.c:9843:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s_adapter", root->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:9870:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmeth->descriptor, tmpdesc); data/f2j-0.8.1+dfsg/src/codegen.c:9875:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmeth->descriptor, field_descriptor[root->vartype][0]); data/f2j-0.8.1+dfsg/src/codegen.c:9969:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(new_mref->descriptor,tempname); data/f2j-0.8.1+dfsg/src/codegen.c:11404: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(cur_name, cval->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:11430:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc,tmpdesc); data/f2j-0.8.1+dfsg/src/codegen.c:11432:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc,ret_desc); data/f2j-0.8.1+dfsg/src/codegen.c:11473:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc,tmpdesc); data/f2j-0.8.1+dfsg/src/codegen.c:11475:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc,ret_desc); data/f2j-0.8.1+dfsg/src/codegen.c:12218: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(cur_name, temp->astnode.ident.name); data/f2j-0.8.1+dfsg/src/codegen.c:12233:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc, METHOD_CLASS); data/f2j-0.8.1+dfsg/src/codegen.c:12235:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc, tmpdesc); data/f2j-0.8.1+dfsg/src/codegen.c:12237:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cur_desc, field_descriptor[temp->vartype][0]); data/f2j-0.8.1+dfsg/src/codegen.c:12566:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s_%s.cfg", cur_filename, mname); data/f2j-0.8.1+dfsg/src/codegen.c:12582:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(node_label,"%d: %s %s\nstack_pre: %d", val->pc, data/f2j-0.8.1+dfsg/src/f2jlex.c:505:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer.stmt,stmt_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:506:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer.text,text_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:510:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer.stmt,stmt_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:511:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer.text,text_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:520:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer.stmt,stmt_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:521:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer.text,text_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:530: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(buffer.stmt,stmt_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:531: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(buffer.text,text_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:573:11: [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(buffer.stmt,stmt_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:574:11: [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(buffer.text,text_copy); data/f2j-0.8.1+dfsg/src/f2jlex.c:666:11: [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(buffer.stmt,yylval.lexeme + 1); data/f2j-0.8.1+dfsg/src/f2jlex.c:667:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buffer.stmt,tmp); data/f2j-0.8.1+dfsg/src/f2jlex.c:674:11: [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(buffer.text,buffer.stmt); data/f2j-0.8.1+dfsg/src/f2jlex.c:703:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(yylval.lexeme,bufptr); data/f2j-0.8.1+dfsg/src/f2jlex.c:707:11: [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(buffer.stmt,bufptr); data/f2j-0.8.1+dfsg/src/f2jlex.c:708:11: [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(buffer.text,bufptr); data/f2j-0.8.1+dfsg/src/f2jlex.c: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(full_file, prefix); data/f2j-0.8.1+dfsg/src/f2jlex.c:823:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_file, FILE_DELIM); data/f2j-0.8.1+dfsg/src/f2jlex.c:824:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_file, filename); data/f2j-0.8.1+dfsg/src/f2jlex.c:876:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(yylval.lexeme, bufstruct->stmt); data/f2j-0.8.1+dfsg/src/f2jlex.c:896:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(yylval.lexeme, bufstruct->stmt); data/f2j-0.8.1+dfsg/src/f2jlex.c:910:11: [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(yylval.lexeme, bufstruct->stmt); data/f2j-0.8.1+dfsg/src/f2jlex.c:943:11: [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(yylval.lexeme, bufstruct->stmt); data/f2j-0.8.1+dfsg/src/f2jlex.c:1192: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 (bufstruct->stmt, tempbuf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1193: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 (line_buffer, tempbuf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1315:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (current_line, next_line); data/f2j-0.8.1+dfsg/src/f2jlex.c:1358: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(swap_buf, yycp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1359: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(bufstruct->text, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1378: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(swap_buf, scp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1379: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(bufstruct->stmt, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1459: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(swap_buf, tcp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1460: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(bufstruct->text, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1462: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(swap_buf, ncp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1463: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(bufstruct->stmt, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1533:11: [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 (tempbuf.stmt, ncp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1534:11: [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 (tempbuf.text, tcp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1639: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(swap_buf, tcp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1640: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(bufstruct->text, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1642: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(swap_buf, ncp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1643: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(bufstruct->stmt, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1714: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(yylval.lexeme, yytext); data/f2j-0.8.1+dfsg/src/f2jlex.c:1721: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(swap_buf, scp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1722: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(bufstruct->stmt, swap_buf); data/f2j-0.8.1+dfsg/src/f2jlex.c:1724: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(swap_buf, textcp); data/f2j-0.8.1+dfsg/src/f2jlex.c:1725: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(bufstruct->text, swap_buf); data/f2j-0.8.1+dfsg/src/f2jmain.c:294: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 (classname, truncfilename); data/f2j-0.8.1+dfsg/src/f2jmain.c:295: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 (sourcename, truncfilename); data/f2j-0.8.1+dfsg/src/f2jmain.c:296: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 (vcgname, truncfilename); data/f2j-0.8.1+dfsg/src/f2jmain.c:313: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(indexname, truncfilename); data/f2j-0.8.1+dfsg/src/f2jmain.c:570:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(full_path, token); data/f2j-0.8.1+dfsg/src/f2jmain.c:572:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_path, FILE_DELIM); data/f2j-0.8.1+dfsg/src/f2jmain.c:573:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(full_path, dir_entry->d_name); data/f2j-0.8.1+dfsg/src/f2jmain.c:720:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(str->val, new); data/f2j-0.8.1+dfsg/src/typecheck.c:620:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newName,temp->astnode.ident.name); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:272:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (temp_buf,"Function: %s\n", data/f2j-0.8.1+dfsg/src/vcg_emitter.c:363:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (temp_buf, "Return (%s)", vcg_returns); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:401:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_buf,"Constant(%s)", data/f2j-0.8.1+dfsg/src/vcg_emitter.c:450:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_buf,"TypeDec (%s)", returnstring[returns]); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:487:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_buf,"Name (%s)",root->astnode.ident.name); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:684:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_buf,"Constant(%s)", root->astnode.constant.number); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:877:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_buf,"Call (%s)",root->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:1478:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/f2j-0.8.1+dfsg/src/y.tab.c:3342:12: [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((yyval.ptnode)->astnode.ident.name, yylval.lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:3813:19: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((yyval.ptnode)->astnode.ident.name, yylval.lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:3993:12: [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((yyval.ptnode)->astnode.ident.name, (yyvsp[-3].ptnode)->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:4231:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((yyval.ptnode)->astnode.ident.name, yylval.lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:4881:16: [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((yyval.ptnode)->astnode.ident.name, (yyvsp[-5].ptnode)->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:4898:16: [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((yyval.ptnode)->astnode.ident.name, (yyvsp[-4].ptnode)->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:4915:16: [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((yyval.ptnode)->astnode.ident.name, (yyvsp[-4].ptnode)->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:4931:16: [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((yyval.ptnode)->astnode.ident.name, (yyvsp[-3].ptnode)->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:5000:13: [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((yyval.ptnode)->astnode.ident.name, (yyvsp[-1].ptnode)->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:5439:16: [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((yyval.ptnode)->astnode.constant.number, yylval.lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:5456:16: [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((yyval.ptnode)->astnode.constant.number, tempname); data/f2j-0.8.1+dfsg/src/y.tab.c:6322:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newnode->astnode.ident.name,tempnames->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:6387:2: [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(temp,lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:6597:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(und_var,var); data/f2j-0.8.1+dfsg/src/y.tab.c:6598:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(var_und,var); data/f2j-0.8.1+dfsg/src/y.tab.c:6600:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(und_var_und,und_var); data/f2j-0.8.1+dfsg/src/y.tab.c:6606:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name_array[count], var); data/f2j-0.8.1+dfsg/src/y.tab.c:6616:11: [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(name_array[count], comvar); data/f2j-0.8.1+dfsg/src/y.tab.c:6622:11: [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(name_array[count],temp->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:6624:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(name_array[count],((char **)ht->variable)[count]); data/f2j-0.8.1+dfsg/src/y.tab.c:6857: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(tempstr, num); data/f2j-0.8.1+dfsg/src/y.tab.c:6865:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tempstr,num); data/f2j-0.8.1+dfsg/src/y.tab.c:7050: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(tmp->astnode.ident.name, id); data/f2j-0.8.1+dfsg/src/y.tab.c:7139: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(tempname, name); data/f2j-0.8.1+dfsg/src/y.tab.c:7153:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(clean_buffer, tmp_spot); data/f2j-0.8.1+dfsg/src/y.tab.c:7164:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(space_buffer, p); data/f2j-0.8.1+dfsg/src/y.tab.c:7330: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(new_node->astnode.ident.name, ast->astnode.ident.name); data/f2j-0.8.1+dfsg/src/y.tab.c:7481: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(tmp->astnode.ident.name, id); data/f2j-0.8.1+dfsg/src/y.tab.c:7598: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(explist->parent->astnode.ident.name, data/f2j-0.8.1+dfsg/src/y.tab.c:7616: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(new->astnode.ident.name, varname->astnode.ident.name); data/f2j-0.8.1+dfsg/src/f2jmain.c:66:3: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(int, char *const *, const char *); data/f2j-0.8.1+dfsg/src/f2jmain.c:193:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((c = getopt(argc,argv,"I:c:p:wif:sdho:v:")) != EOF) data/f2j-0.8.1+dfsg/src/f2jmain.c:346: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. f2jpath = getenv(F2J_PATH_VAR); data/f2j-0.8.1+dfsg/src/getopt.c:59:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(argc, argv, opts) data/f2j-0.8.1+dfsg/libbytecode/api.c:443: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(attr_temp->attr.UserDefined->data, attribute_data, attribute_length); data/f2j-0.8.1+dfsg/libbytecode/api.c:2361: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 label[20]; data/f2j-0.8.1+dfsg/libbytecode/api.c:2368: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(label, "%d", label_num); data/f2j-0.8.1+dfsg/libbytecode/api.c:3323: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 label[20]; data/f2j-0.8.1+dfsg/libbytecode/api.c:3330: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(label, "%d", label_num); data/f2j-0.8.1+dfsg/libbytecode/api.c:3494: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). if( (f = fopen(full_file, mode)) != NULL ) { data/f2j-0.8.1+dfsg/libbytecode/api.c:3541: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). if( (f = fopen(prev, mode)) != NULL ) { data/f2j-0.8.1+dfsg/libbytecode/class.c:575:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(filename,".class"); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:270:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&f, &tmp, sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:277:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&l,&tmpconst->val->cpnode.Long.high_bytes,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:278:11: [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((char*)&l+4,&tmpconst->val->cpnode.Long.low_bytes,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:289:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&l, &t2, sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:290:11: [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((char*)&l+4, &t1, sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:299:11: [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(&x,&tmpconst->val->cpnode.Double.high_bytes,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:300:11: [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((char*)&x+4,&tmpconst->val->cpnode.Double.low_bytes,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:311:11: [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(&x, &t2, sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:312:11: [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((char*)&x+4, &t1, sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:676:8: [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(&hi_bytes,value,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:677:8: [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(&lo_bytes,(char*)value+4,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:725:8: [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(&hi_bytes,value,sizeof(u4)); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:726:8: [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(&lo_bytes,(char*)value+4,sizeof(u4)); data/f2j-0.8.1+dfsg/src/codegen.c:1015:5: [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(stop_msg, "STOP: "); data/f2j-0.8.1+dfsg/src/codegen.c:2873: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(src_initializer,"\" \""); data/f2j-0.8.1+dfsg/src/codegen.c:3047:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). start = atoi(root->astnode.forloop.start->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:3052:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). stop = atoi(root->astnode.forloop.stop->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:3058: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). incr = atoi(root->astnode.forloop.incr->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:3278:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). length *= atoi(temp2->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:3526: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). repeat = atoi(root->astnode.expression.lhs->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:4701:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bc_push_int_const(meth, atoi(root->astnode.constant.number)); data/f2j-0.8.1+dfsg/src/codegen.c:6429: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 pow_cast[32]; data/f2j-0.8.1+dfsg/src/codegen.c:6432: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(pow_cast, "(int)"); data/f2j-0.8.1+dfsg/src/codegen.c:7161: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 import_stmt[60]; data/f2j-0.8.1+dfsg/src/codegen.c:7165:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(filename,".java"); data/f2j-0.8.1+dfsg/src/codegen.c:7190:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(import_stmt,"import java.lang.reflect.*;\n"); data/f2j-0.8.1+dfsg/src/codegen.c:7346:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( temp2, "_offset"); data/f2j-0.8.1+dfsg/src/codegen.c:7397:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(intfilename,".java"); data/f2j-0.8.1+dfsg/src/codegen.c:7565:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( temp2, "_offset"); data/f2j-0.8.1+dfsg/src/codegen.c:7676:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( temp2, "_offset"); data/f2j-0.8.1+dfsg/src/codegen.c:7783: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). int increment=atoi(root->astnode.forloop.incr->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:8076:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bc_push_int_const(meth, atoi(labels[i])); data/f2j-0.8.1+dfsg/src/codegen.c:8234:7: [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). (atoi(loop->astnode.forloop.Label->astnode.constant.number) == num)) data/f2j-0.8.1+dfsg/src/codegen.c:8257:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). (atoi(loop->astnode.forloop.Label->astnode.constant.number) == num)); data/f2j-0.8.1+dfsg/src/codegen.c:8328: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 *fmt_str, tmp[100]; data/f2j-0.8.1+dfsg/src/codegen.c:8332: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(tmp,"%d", root->astnode.io_stmt.format_num); data/f2j-0.8.1+dfsg/src/codegen.c:8520: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(idx_temp->astnode.constant.number, "%d", idx); data/f2j-0.8.1+dfsg/src/codegen.c:8859:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8192], *tmpstr; data/f2j-0.8.1+dfsg/src/codegen.c:8917:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(buf, "//"); data/f2j-0.8.1+dfsg/src/codegen.c:9051: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 *fmt_str, tmp[100]; data/f2j-0.8.1+dfsg/src/codegen.c:9057: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(tmp,"%d", root->astnode.io_stmt.format_num); data/f2j-0.8.1+dfsg/src/codegen.c:9970:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(new_mref->descriptor,")V"); /* assume void return type */ data/f2j-0.8.1+dfsg/src/codegen.c:11202:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if( atoi( v->astnode.forloop.Label->astnode.constant.number ) == val ) data/f2j-0.8.1+dfsg/src/codegen.c:11405:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(cur_name, "_adapter"); data/f2j-0.8.1+dfsg/src/codegen.c:11492: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(cur_name, "BAD_ADAP"); data/f2j-0.8.1+dfsg/src/codegen.c:11495: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(cur_desc, "()V"); data/f2j-0.8.1+dfsg/src/codegen.c:12219:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(cur_name, "_methcall"); data/f2j-0.8.1+dfsg/src/codegen.c:12561: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 node_label[200]; data/f2j-0.8.1+dfsg/src/codegen.c:12568: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). v = fopen(filename,"w"); data/f2j-0.8.1+dfsg/src/codegen.c:12698: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 temp[100]; data/f2j-0.8.1+dfsg/src/codegen.c:12809:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp, "print_nodetype(): Unknown Node: %d", root->nodetype); data/f2j-0.8.1+dfsg/src/f2jlex.c:37:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line_buffer[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:39:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yytext[YYTEXTLEN]; /* token text */ data/f2j-0.8.1+dfsg/src/f2jlex.c:62: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 stmt[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:63: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 text[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c: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 lexeme[30]; /* text token */ data/f2j-0.8.1+dfsg/src/f2jlex.c:122:9: [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). ifp = fopen (argv[1], "rb"); data/f2j-0.8.1+dfsg/src/f2jlex.c:204:11: [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(yylval.lexeme,"Include error\n"); data/f2j-0.8.1+dfsg/src/f2jlex.c:826: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((tempfp = fopen(full_file,"rb")) != NULL) data/f2j-0.8.1+dfsg/src/f2jlex.c:1039: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 tempbuf[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1208: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 next_line[100]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1333:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *scp, *yycp, swap_buf[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1438: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 *ncp, *tcp, swap_buf[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1489: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 *ncp, *tcp, swap_buf[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1660: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 *scp, *textcp, swap_buf[BIGBUFF]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1950:14: [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 asdf[20]; data/f2j-0.8.1+dfsg/src/f2jlex.c:1952: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(asdf,"Unknown token: %d\n",tok); data/f2j-0.8.1+dfsg/src/f2jmain.c:79: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 classname[130]; data/f2j-0.8.1+dfsg/src/f2jmain.c:81: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 sourcename[130]; data/f2j-0.8.1+dfsg/src/f2jmain.c:82: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 vcgname[130]; data/f2j-0.8.1+dfsg/src/f2jmain.c:279: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((ifp = fopen (inputfilename, "rb"))==NULL) { data/f2j-0.8.1+dfsg/src/f2jmain.c:298:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (sourcename, ".java"); data/f2j-0.8.1+dfsg/src/f2jmain.c:299:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (vcgname, ".vcg"); data/f2j-0.8.1+dfsg/src/f2jmain.c:304:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((vcgfp = fopen(vcgname, "w"))==NULL) { data/f2j-0.8.1+dfsg/src/f2jmain.c:314:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(indexname, ".f2j"); data/f2j-0.8.1+dfsg/src/f2jmain.c:358:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). devnull = fopen(null_file,"w"); data/f2j-0.8.1+dfsg/src/f2jmain.c:625:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSZ]; data/f2j-0.8.1+dfsg/src/f2jmain.c:642: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(line+idx, buf, BUFSZ); data/f2j-0.8.1+dfsg/src/f2jmain.c:670: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). if((in = fopen(path, "rb")) == NULL) data/f2j-0.8.1+dfsg/src/getopt.c:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[2];\ data/f2j-0.8.1+dfsg/src/globals.c:460:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *returnstring[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:501:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * wrapper_valueOf_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:513:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * string_valueOf_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:525:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * append_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:537:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * toString_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:549:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * println_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:561:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * array_spec_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:576:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * numericValue_method[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:588:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * numericValue_descriptor[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:609:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *field_descriptor[MAX_RETURNS+1][2] = { data/f2j-0.8.1+dfsg/src/globals.c:620:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *wrapped_field_descriptor[MAX_RETURNS+1][2] = { data/f2j-0.8.1+dfsg/src/globals.c:640:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *wrapper_returns[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:653:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *full_wrappername[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:666:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *val_descriptor[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:679:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *java_wrapper[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:692:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *wrapper_descriptor[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:705:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * numeric_wrapper[MAX_RETURNS+1] = { data/f2j-0.8.1+dfsg/src/globals.c:743:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *init_vals[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:755:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *input_descriptors[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:767:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *input_func[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/globals.c:779:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *input_func_eof[MAX_RETURNS+1] = data/f2j-0.8.1+dfsg/src/opcodes.h:32:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *returnstring[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:38:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * wrapper_valueOf_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:41:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * string_valueOf_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:44:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * append_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:47:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * toString_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:50:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * array_spec_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:53:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * println_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:56:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * numericValue_method[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:59:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * numericValue_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:60:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *field_descriptor[MAX_RETURNS+1][2]; data/f2j-0.8.1+dfsg/src/opcodes.h:61:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *wrapped_field_descriptor[MAX_RETURNS+1][2]; data/f2j-0.8.1+dfsg/src/opcodes.h:64:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *wrapper_returns[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:67:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *full_wrappername[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:70:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *val_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:73:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *wrapper_descriptor[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:76:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *java_wrapper[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:85:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *init_vals[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:88:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *input_descriptors[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:91:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *input_func[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:94:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *input_func_eof[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/opcodes.h:127:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char * numeric_wrapper[MAX_RETURNS+1]; data/f2j-0.8.1+dfsg/src/vcg_emitter.c:63:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data/f2j-0.8.1+dfsg/src/vcg_emitter.c:365: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 (temp_buf, "Return"); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:374:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (temp_buf,"Goto (%d)", root->astnode.go_to.label); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:667:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_buf,"%c", root->astnode.expression.optype); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:676:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_buf,"%c", root->astnode.expression.minus); data/f2j-0.8.1+dfsg/src/vcg_emitter.c:790:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_buf,"Label (%d)",root->astnode.label.number); data/f2j-0.8.1+dfsg/src/y.tab.c:381:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lexeme[YYTEXTLEN]; data/f2j-0.8.1+dfsg/src/y.tab.c:3489:47: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). (yyval.ptnode)->astnode.label.number = atoi((yyvsp[-2].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:3570:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). len = atoi((yyvsp[0].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:3596: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). len = atoi((yyvsp[0].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:3679:55: [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). (yyval.ptnode)->astnode.ident.len = atoi((yyvsp[0].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:3722:54: [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). (yyval.ptnode)->astnode.ident.len = atoi((yyvsp[0].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4070: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. sprintf(loop_label,"%d", cur_do_label); data/f2j-0.8.1+dfsg/src/y.tab.c:4128:49: [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). (yyval.ptnode)->astnode.label.number = atoi((yyvsp[-1].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4148:49: [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). (yyval.ptnode)->astnode.label.number = atoi((yyvsp[-2].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4154: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(tmpLabel,"%d",(yyvsp[-1].ptnode)->astnode.label.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4190:58: [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). (yyvsp[0].ptnode)->astnode.label.number = atoi((yyvsp[-1].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4330:42: [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). (yyval.ptnode)->astnode.label.number = atoi((yyvsp[-2].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4346:50: [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). (yyval.ptnode)->astnode.label.number = atoi(loop_label); data/f2j-0.8.1+dfsg/src/y.tab.c:4375:59: [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). (yyval.ptnode)->astnode.io_stmt.format_num = atoi((yyvsp[-3].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4405:55: [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). (yyval.ptnode)->astnode.io_stmt.format_num = atoi((yyvsp[-2].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4566:59: [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). (yyval.ptnode)->astnode.io_stmt.format_num = atoi((yyvsp[-3].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4610:59: [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). (yyval.ptnode)->astnode.io_stmt.format_num = atoi((yyvsp[-5].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4621:52: [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). (yyval.ptnode)->astnode.io_stmt.end_num = atoi((yyvsp[-3].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4828:58: [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). (yyval.ptnode)->astnode.blockif.endif_label = atoi(yylval.lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:4856:67: [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). (yyval.ptnode)->astnode.arithmeticif.neg_label = atoi((yyvsp[-5].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4857:67: [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). (yyval.ptnode)->astnode.arithmeticif.zero_label = atoi((yyvsp[-3].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:4858:67: [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). (yyval.ptnode)->astnode.arithmeticif.pos_label = atoi((yyvsp[-1].ptnode)->astnode.constant.number); data/f2j-0.8.1+dfsg/src/y.tab.c:5448:16: [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 tempname[60]; data/f2j-0.8.1+dfsg/src/y.tab.c:5465:16: [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 tempname[60]; data/f2j-0.8.1+dfsg/src/y.tab.c:5524:40: [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). printf("goto label: %d\n", atoi(yylval.lexeme)); data/f2j-0.8.1+dfsg/src/y.tab.c:5525:49: [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). (yyval.ptnode)->astnode.go_to.label = atoi(yylval.lexeme); data/f2j-0.8.1+dfsg/src/y.tab.c:5691:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp->astnode.constant.number,"%.40g",constant_eval); data/f2j-0.8.1+dfsg/src/y.tab.c:5700:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp->astnode.constant.number,"%.40g",constant_eval); data/f2j-0.8.1+dfsg/src/y.tab.c:5707:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp->astnode.constant.number,"%d",(int)constant_eval); data/f2j-0.8.1+dfsg/src/y.tab.c:6053:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(str, ".0"); data/f2j-0.8.1+dfsg/src/y.tab.c:6827:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 7 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6828:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 6 & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6829:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 5 & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6830:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 4 & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6831:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 3 & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6832:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 2 & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6833:30: [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. printf("%1x", ((unsigned char *)var)[i] >> 1 & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6834:30: [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. printf("%1x", ((unsigned char *)var)[i] & 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6912: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(lhs_copy, counter, sizeof(AST)); data/f2j-0.8.1+dfsg/src/y.tab.c:6914: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(rhs_copy, counter, sizeof(AST)); data/f2j-0.8.1+dfsg/src/y.tab.c:6934: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(incr_copy, incr, sizeof(AST)); data/f2j-0.8.1+dfsg/src/y.tab.c:7130: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 *words[12] = {"INTEGER", "DOUBLEPRECISION", "CHARACTER", "DATA", data/f2j-0.8.1+dfsg/src/y.tab.c:7152:3: [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(clean_buffer, " \0"); data/f2j-0.8.1+dfsg/src/y.tab.c:7163:5: [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(space_buffer, " \0"); data/f2j-0.8.1+dfsg/src/y.tab.h:230:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lexeme[YYTEXTLEN]; data/f2j-0.8.1+dfsg/libbytecode/api.c:102: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). pname = (char *)malloc(strlen(thisclass) + strlen(package_name) + 2); data/f2j-0.8.1+dfsg/libbytecode/api.c:102: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). pname = (char *)malloc(strlen(thisclass) + strlen(package_name) + 2); data/f2j-0.8.1+dfsg/libbytecode/api.c:108:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(!isalnum((int)*(package_name + (strlen(package_name)-1)))) data/f2j-0.8.1+dfsg/libbytecode/api.c:119:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(pname, "/"); data/f2j-0.8.1+dfsg/libbytecode/api.c:3471: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). full_file = (char *)malloc(strlen(output_dir) + strlen(file) + 3); data/f2j-0.8.1+dfsg/libbytecode/api.c:3471:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). full_file = (char *)malloc(strlen(output_dir) + strlen(file) + 3); data/f2j-0.8.1+dfsg/libbytecode/api.c:3474:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(output_dir[strlen(output_dir)-1] != BC_FILE_DELIM[0]) data/f2j-0.8.1+dfsg/libbytecode/class.c:573:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, (char *)c->val->cpnode.Utf8.bytes, c->val->cpnode.Utf8.length); data/f2j-0.8.1+dfsg/libbytecode/class.c:1705: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 len = strlen(d); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:384:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp,(char *)val->cpnode.Utf8.bytes,val->cpnode.Utf8.length); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:572: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). if(strlen((char*)value) == (unsigned int)ctemp->cpnode.Utf8.length) data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:781: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). if((unsigned int)this_len == strlen((char*) value)) { data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:787: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). (char *)value, strlen((char*)value))) data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:1054: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). for(i=0;i<strlen(t);i++) data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:1194:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newnode->cpnode.Utf8.length = strlen(value); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:1201:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)newnode->cpnode.Utf8.bytes,value,newnode->cpnode.Utf8.length); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:1458: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). newnode->cpnode.Utf8.length = strlen(val); data/f2j-0.8.1+dfsg/libbytecode/constant_pool.c:1465:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)newnode->cpnode.Utf8.bytes, val, data/f2j-0.8.1+dfsg/src/codegen.c:361: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). f2jfree(methodname, strlen(methodname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:379: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). f2jfree(classname, strlen(classname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:380:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). f2jfree(cur_filename, strlen(cur_filename)+1); data/f2j-0.8.1+dfsg/src/codegen.c:1008: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). stop_msg = (char *)malloc(strlen(root->astnode.constant.number) + 7); data/f2j-0.8.1+dfsg/src/codegen.c:1481: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). temp_commonblockname = (char *) f2jalloc(strlen(cblk_name) + data/f2j-0.8.1+dfsg/src/codegen.c:1482: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(CB_PREFIX) + 1); data/f2j-0.8.1+dfsg/src/codegen.c:1492:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). f2jfree(temp_commonblockname, strlen(temp_commonblockname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:1534:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *newdesc = (char *) f2jalloc(strlen(p) + 1); /* upper bound on len */ data/f2j-0.8.1+dfsg/src/codegen.c:1559:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *newdesc = (char *) f2jalloc(strlen(p) + 1); /* upper bound on len */ data/f2j-0.8.1+dfsg/src/codegen.c:1692: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). strlen(prefix) + strlen(Ctemp->astnode.common.name) + 2); data/f2j-0.8.1+dfsg/src/codegen.c:1692: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(prefix) + strlen(Ctemp->astnode.common.name) + 2); data/f2j-0.8.1+dfsg/src/codegen.c:1701:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(cur_filename) + 6); data/f2j-0.8.1+dfsg/src/codegen.c:1807:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(prefix) f2jfree(prefix,strlen(prefix)+1); data/f2j-0.8.1+dfsg/src/codegen.c:1808: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). if(common_classname) f2jfree(common_classname,strlen(common_classname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:1809:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(filename) f2jfree(filename,strlen(filename)+1); data/f2j-0.8.1+dfsg/src/codegen.c:1810: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). if(cur_filename) f2jfree(cur_filename,strlen(cur_filename)+1); data/f2j-0.8.1+dfsg/src/codegen.c:1857:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, p, len+1); data/f2j-0.8.1+dfsg/src/codegen.c:1897:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, p, len+1); data/f2j-0.8.1+dfsg/src/codegen.c:2127: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:2131: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:2433: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:2437: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:2888:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytecode_initializer = (char *)f2jalloc(strlen(src_initializer) - 1); data/f2j-0.8.1+dfsg/src/codegen.c:2889:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bytecode_initializer,src_initializer+1,strlen(src_initializer)-2); data/f2j-0.8.1+dfsg/src/codegen.c:2889: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). strncpy(bytecode_initializer,src_initializer+1,strlen(src_initializer)-2); data/f2j-0.8.1+dfsg/src/codegen.c:2890: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). bytecode_initializer[strlen(src_initializer) - 2] = '\0'; data/f2j-0.8.1+dfsg/src/codegen.c:2906:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). f2jfree(bytecode_initializer, strlen(bytecode_initializer)+1); data/f2j-0.8.1+dfsg/src/codegen.c:2907: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). f2jfree(src_initializer, strlen(src_initializer)+1); data/f2j-0.8.1+dfsg/src/codegen.c:3869: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:3957: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). if((mref->classname != NULL) && (strlen(mref->classname) > 0)) { data/f2j-0.8.1+dfsg/src/codegen.c:3960: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). f2jfree(t, strlen(t)+1); data/f2j-0.8.1+dfsg/src/codegen.c:4492: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). f2jfree(com_prefix, strlen(com_prefix)+1); data/f2j-0.8.1+dfsg/src/codegen.c:4562: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). tmpclass[strlen(tmpclass)-1] = '\0'; data/f2j-0.8.1+dfsg/src/codegen.c:4599: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). f2jfree(com_prefix, strlen(com_prefix)+1); data/f2j-0.8.1+dfsg/src/codegen.c:4600: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). f2jfree(tmpclass, strlen(tmpclass)+1); data/f2j-0.8.1+dfsg/src/codegen.c:4640: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). cprefix = (char *) f2jalloc( strlen(mtmp->classname) + 3); data/f2j-0.8.1+dfsg/src/codegen.c:4648: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). strlen(ht->variable->astnode.ident.commonBlockName) + data/f2j-0.8.1+dfsg/src/codegen.c:4649: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). strlen(full_prefix) + 3); data/f2j-0.8.1+dfsg/src/codegen.c:4663:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(cprefix && strlen(cprefix) > 0) data/f2j-0.8.1+dfsg/src/codegen.c:4666: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). f2jfree(inf, strlen(inf)+1); data/f2j-0.8.1+dfsg/src/codegen.c:4790: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). scalar_class[strlen(scalar_class)-1] = '\0'; data/f2j-0.8.1+dfsg/src/codegen.c:4893: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:5061: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). f2jfree(scalar_class, strlen(scalar_class)+1); data/f2j-0.8.1+dfsg/src/codegen.c:5062: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). f2jfree(com_prefix, strlen(com_prefix)+1); data/f2j-0.8.1+dfsg/src/codegen.c:5161: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:5183: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:5212: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:5752: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:6203: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). f2jfree(ta_tmp, strlen(ta_tmp)+1); data/f2j-0.8.1+dfsg/src/codegen.c:6259: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). f2jfree(ta_tmp, strlen(ta_tmp)+1); data/f2j-0.8.1+dfsg/src/codegen.c:6282: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). for(idx = 0;idx < strlen(num);idx++) data/f2j-0.8.1+dfsg/src/codegen.c:6436:5: [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(pow_cast, " "); data/f2j-0.8.1+dfsg/src/codegen.c:6658: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:6778: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). len = strlen(root->astnode.expression.lhs->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:6797: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). rlen = strlen(root->astnode.expression.rhs->astnode.constant.number); data/f2j-0.8.1+dfsg/src/codegen.c:7163: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). filename = (char *) f2jalloc(strlen(cur_filename) + 6); data/f2j-0.8.1+dfsg/src/codegen.c:7202: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). f2jfree(filename, strlen(cur_filename) + 6); data/f2j-0.8.1+dfsg/src/codegen.c:7343: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). temp2 = (char *)f2jalloc(strlen(tempnode->astnode.ident.name) + 9); data/f2j-0.8.1+dfsg/src/codegen.c:7344:7: [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( temp2, "_"); data/f2j-0.8.1+dfsg/src/codegen.c:7348: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). f2jfree(temp2, strlen(temp2)+1); data/f2j-0.8.1+dfsg/src/codegen.c:7395: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). intfilename = f2jalloc( strlen(tempstring) + 6 ); data/f2j-0.8.1+dfsg/src/codegen.c:7531:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(tempnode->astnode.ident.name)) + strlen(tempstring)); data/f2j-0.8.1+dfsg/src/codegen.c:7531:51: [1] (buffer) strlen: Does not handle 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(tempnode->astnode.ident.name)) + strlen(tempstring)); data/f2j-0.8.1+dfsg/src/codegen.c:7561: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). strlen(tempnode->astnode.ident.name) + 9); data/f2j-0.8.1+dfsg/src/codegen.c:7563: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( temp2, "_"); data/f2j-0.8.1+dfsg/src/codegen.c:7672: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). strlen(tempnode->astnode.ident.name) + 9); data/f2j-0.8.1+dfsg/src/codegen.c:7674: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( temp2, "_"); data/f2j-0.8.1+dfsg/src/codegen.c:8876: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). tmpstr = malloc(2 * strlen(temp->astnode.constant.number) + 1); data/f2j-0.8.1+dfsg/src/codegen.c:8880:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for(i = j = 0; i < strlen(temp->astnode.constant.number); i++) { data/f2j-0.8.1+dfsg/src/codegen.c:8894:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, "'"); data/f2j-0.8.1+dfsg/src/codegen.c:8896:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, "'"); data/f2j-0.8.1+dfsg/src/codegen.c:8905:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, "("); data/f2j-0.8.1+dfsg/src/codegen.c:8907:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, ")"); data/f2j-0.8.1+dfsg/src/codegen.c:8911:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, ","); data/f2j-0.8.1+dfsg/src/codegen.c:8914:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, "/"); data/f2j-0.8.1+dfsg/src/codegen.c:8920:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(buf, ":"); data/f2j-0.8.1+dfsg/src/codegen.c:9614: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9727: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9763:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((mref->classname != NULL) && (strlen(mref->classname) > 0)) { data/f2j-0.8.1+dfsg/src/codegen.c:9768: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). f2jfree(t, strlen(t)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9776: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9801: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). MAX((strlen(tempname) + strlen(root->astnode.ident.name)), data/f2j-0.8.1+dfsg/src/codegen.c:9801: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). MAX((strlen(tempname) + strlen(root->astnode.ident.name)), data/f2j-0.8.1+dfsg/src/codegen.c:9802: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). (strlen(root->astnode.ident.name) + 9)) + 5); data/f2j-0.8.1+dfsg/src/codegen.c:9822: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). newmeth->descriptor = (char*)f2jalloc(strlen(tmpdesc) + data/f2j-0.8.1+dfsg/src/codegen.c:9823: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(METHOD_CLASS) + data/f2j-0.8.1+dfsg/src/codegen.c:9824: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(field_descriptor[root->vartype][0]) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:9825:7: [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(newmeth->descriptor, "("); data/f2j-0.8.1+dfsg/src/codegen.c:9826:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newmeth->descriptor, "L"); data/f2j-0.8.1+dfsg/src/codegen.c:9828:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newmeth->descriptor, ";"); data/f2j-0.8.1+dfsg/src/codegen.c:9830:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newmeth->descriptor, ")"); data/f2j-0.8.1+dfsg/src/codegen.c:9833: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). f2jfree(tmpdesc, strlen(tmpdesc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9867:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newmeth->descriptor = (char*)f2jalloc(strlen(tmpdesc) + data/f2j-0.8.1+dfsg/src/codegen.c:9868: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(field_descriptor[root->vartype][0]) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:9869:5: [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(newmeth->descriptor, "("); data/f2j-0.8.1+dfsg/src/codegen.c:9871:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newmeth->descriptor, ")"); data/f2j-0.8.1+dfsg/src/codegen.c:9873:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newmeth->descriptor, "V"); data/f2j-0.8.1+dfsg/src/codegen.c:9877: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). f2jfree(tmpdesc, strlen(tmpdesc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9888: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). MAX((strlen(tempname) + strlen(root->astnode.ident.name)), data/f2j-0.8.1+dfsg/src/codegen.c:9888: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). MAX((strlen(tempname) + strlen(root->astnode.ident.name)), data/f2j-0.8.1+dfsg/src/codegen.c:9889: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). (strlen(root->astnode.ident.name) + 9)) + 5); data/f2j-0.8.1+dfsg/src/codegen.c:9890: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9963: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:9966:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_mref->descriptor = (char *)f2jalloc(strlen(tempname) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:9968:7: [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(new_mref->descriptor,"("); data/f2j-0.8.1+dfsg/src/codegen.c:9982: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:10245: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). f2jfree(com_prefix, strlen(com_prefix)+1); data/f2j-0.8.1+dfsg/src/codegen.c:10971: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). class[strlen(class)-1] = '\0'; data/f2j-0.8.1+dfsg/src/codegen.c:11030: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). f2jfree(com_prefix, strlen(com_prefix)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11031: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). f2jfree(class, strlen(class)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11402:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cur_name=(char *)f2jrealloc(cur_name,strlen(cval->astnode.ident.name)+10); data/f2j-0.8.1+dfsg/src/codegen.c:11426:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cur_desc = (char *)f2jrealloc(cur_desc, strlen(tmpdesc) + data/f2j-0.8.1+dfsg/src/codegen.c:11427: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(ret_desc) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:11429:7: [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(cur_desc,"("); data/f2j-0.8.1+dfsg/src/codegen.c:11431:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cur_desc,")"); data/f2j-0.8.1+dfsg/src/codegen.c:11445: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). f2jfree(tmpdesc, strlen(tmpdesc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11446: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11469: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). cur_desc = (char *)f2jrealloc(cur_desc, strlen(tmpdesc) + data/f2j-0.8.1+dfsg/src/codegen.c:11470:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ret_desc) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:11472: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(cur_desc,"("); data/f2j-0.8.1+dfsg/src/codegen.c:11474:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cur_desc,")"); data/f2j-0.8.1+dfsg/src/codegen.c:11479: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). f2jfree(tmpdesc, strlen(tmpdesc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11480: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). f2jfree(ret, strlen(ret)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11509: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). f2jfree(cur_desc, strlen(cur_desc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11511: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). f2jfree(cur_name, strlen(cur_name)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11541: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). f2jfree(ret,strlen(ret)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11587: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). f2jfree(ret,strlen(ret)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11828: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). f2jfree(wrapper, strlen(wrapper)+1); data/f2j-0.8.1+dfsg/src/codegen.c:11875: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). if((mref->classname != NULL) && (strlen(mref->classname) > 0)) data/f2j-0.8.1+dfsg/src/codegen.c:11920: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/codegen.c:12217: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(temp->astnode.ident.name) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:12228: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). cur_desc = (char *)f2jrealloc(cur_desc, strlen(tmpdesc) + data/f2j-0.8.1+dfsg/src/codegen.c:12229: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(METHOD_CLASS) + strlen(field_descriptor[temp->vartype][0]) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:12229: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(METHOD_CLASS) + strlen(field_descriptor[temp->vartype][0]) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:12231:5: [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(cur_desc, "("); data/f2j-0.8.1+dfsg/src/codegen.c:12232:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cur_desc, "L"); data/f2j-0.8.1+dfsg/src/codegen.c:12234:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cur_desc, ";"); data/f2j-0.8.1+dfsg/src/codegen.c:12236:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cur_desc, ")"); data/f2j-0.8.1+dfsg/src/codegen.c:12292: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). f2jfree(tmpdesc, strlen(tmpdesc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:12295: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). if(cur_name) f2jfree(cur_name, strlen(cur_name)+1); data/f2j-0.8.1+dfsg/src/codegen.c:12296: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). if(cur_desc) f2jfree(cur_desc, strlen(cur_desc)+1); data/f2j-0.8.1+dfsg/src/codegen.c:12565: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). filename = (char *)f2jalloc(strlen(cur_filename) + strlen(mname) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:12565:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename = (char *)f2jalloc(strlen(cur_filename) + strlen(mname) + 10); data/f2j-0.8.1+dfsg/src/codegen.c:12919: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). f2jfree(wrap, strlen(wrap)+1); data/f2j-0.8.1+dfsg/src/codegen.c:13197: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). newstr = (char *)malloc(strlen(str) * 2 + 1); data/f2j-0.8.1+dfsg/src/codegen.c:13203: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). for(i=0;i<strlen(str);i++) { data/f2j-0.8.1+dfsg/src/f2jlex.c:216: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). tmplen = strlen(yylval.lexeme); data/f2j-0.8.1+dfsg/src/f2jlex.c:232: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). newfile->name[strlen(newfile->name)-1] = '\0'; data/f2j-0.8.1+dfsg/src/f2jlex.c:516: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). f2jfree(stmt_copy, strlen(stmt_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:517: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). f2jfree(text_copy, strlen(text_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:546: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). f2jfree(stmt_copy, strlen(stmt_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:547: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). f2jfree(text_copy, strlen(text_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:550: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). f2jfree(stmt_copy, strlen(stmt_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:551: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). f2jfree(text_copy, strlen(text_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:585: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). f2jfree(stmt_copy, strlen(stmt_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:586: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). f2jfree(text_copy, strlen(text_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:612: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). f2jfree(stmt_copy, strlen(stmt_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:613: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). f2jfree(text_copy, strlen(text_copy)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:660:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(yylval.lexeme) > 1) { data/f2j-0.8.1+dfsg/src/f2jlex.c:704: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). f2jfree(bufptr, strlen(bufptr)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:710: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). f2jfree(bufptr, strlen(bufptr)+1); data/f2j-0.8.1+dfsg/src/f2jlex.c:820: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(prefix) + strlen(filename) + 2); data/f2j-0.8.1+dfsg/src/f2jlex.c:820: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). strlen(prefix) + strlen(filename) + 2); data/f2j-0.8.1+dfsg/src/f2jlex.c:858: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)strlen(bufstruct->stmt)); data/f2j-0.8.1+dfsg/src/f2jlex.c:1295: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)strlen(next_line)); data/f2j-0.8.1+dfsg/src/f2jlex.c:1302: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). j = strlen(next_line); data/f2j-0.8.1+dfsg/src/f2jlex.c:1312:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(current_line[strlen(current_line)-1] == '\n') data/f2j-0.8.1+dfsg/src/f2jlex.c:1313: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). current_line[strlen(current_line)-1] = '\0'; data/f2j-0.8.1+dfsg/src/f2jlex.c:1345: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). tokenlength = strlen (tab->kwd); data/f2j-0.8.1+dfsg/src/f2jlex.c:1354:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (yytext, yycp, tokenlength); data/f2j-0.8.1+dfsg/src/f2jlex.c:1455:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (yylval.lexeme, tcp, tokenlength); data/f2j-0.8.1+dfsg/src/f2jlex.c:1631:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (yylval.lexeme, tcp, tokenlength); data/f2j-0.8.1+dfsg/src/f2jlex.c:1712:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (yytext, textcp, tokenlength); data/f2j-0.8.1+dfsg/src/f2jlex.c:1731: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). tokenlength = strlen(yylval.lexeme); data/f2j-0.8.1+dfsg/src/f2jlex.c:1752: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). len = strlen(s); data/f2j-0.8.1+dfsg/src/f2jmain.c:311: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). indexname = (char *)f2jalloc(strlen(truncfilename) + 5); data/f2j-0.8.1+dfsg/src/f2jmain.c:562: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). len = strlen(dir_entry->d_name); data/f2j-0.8.1+dfsg/src/f2jmain.c:565:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((len + strlen(token) +2) > (unsigned int)size) { data/f2j-0.8.1+dfsg/src/f2jmain.c:566: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). size = (len + strlen(token)) * 2; /* double for good measure */ data/f2j-0.8.1+dfsg/src/f2jmain.c:571:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(full_path[strlen(full_path)-1] != FILE_DELIM[0]) data/f2j-0.8.1+dfsg/src/f2jmain.c:643: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). idx += strlen(buf); data/f2j-0.8.1+dfsg/src/f2jmain.c:650: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). } while(buf[strlen(buf)-1] != '\n'); data/f2j-0.8.1+dfsg/src/f2jmain.c:674: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). buf[strlen(buf)-1] = '\0'; data/f2j-0.8.1+dfsg/src/f2jmain.c:709:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(new) + strlen(str->val) >= str->size) { data/f2j-0.8.1+dfsg/src/f2jmain.c:709: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). if(strlen(new) + strlen(str->val) >= str->size) { data/f2j-0.8.1+dfsg/src/f2jmain.c:710:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(new) > STR_CHUNK) { data/f2j-0.8.1+dfsg/src/f2jmain.c:711:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str->val = (char *)f2jrealloc(str->val, str->size + strlen(new)); data/f2j-0.8.1+dfsg/src/f2jmain.c:712: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). str->size += strlen(new); data/f2j-0.8.1+dfsg/src/f2jmem.c:128: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). f2jfree(v->name, strlen(v->name)+1); data/f2j-0.8.1+dfsg/src/f2jmem.c:129: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). f2jfree(v->desc, strlen(v->desc)+1); data/f2j-0.8.1+dfsg/src/f2jmem.c:130: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). f2jfree(v->class, strlen(v->class)+1); data/f2j-0.8.1+dfsg/src/getopt.c:46:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void) write(2, argv[0], (unsigned)strlen(argv[0]));\ data/f2j-0.8.1+dfsg/src/getopt.c:47: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). (void) write(2, s, (unsigned)strlen(s));\ data/f2j-0.8.1+dfsg/src/optimize.c:166: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). strlen(ht->variable->astnode.source.descriptor)+1); data/f2j-0.8.1+dfsg/src/optimize.c:442: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/optimize.c:446: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/optimize.c:536: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). f2jfree(tempname, strlen(tempname) +1); data/f2j-0.8.1+dfsg/src/optimize.c:1181: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). f2jfree(desc_copy, strlen(desc_copy)+1); data/f2j-0.8.1+dfsg/src/optimize.c:1185: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). f2jfree(desc_copy, strlen(desc_copy)+1); data/f2j-0.8.1+dfsg/src/typecheck.c:605: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(temp->astnode.ident.name); data/f2j-0.8.1+dfsg/src/typecheck.c:622:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newName,"_"); data/f2j-0.8.1+dfsg/src/typecheck.c:669:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(mismatch) { data/f2j-0.8.1+dfsg/src/typecheck.c:893: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/typecheck.c:1016: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/typecheck.c:1037: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). f2jfree(tempname,strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/typecheck.c:1067: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). f2jfree(tempname, strlen(tempname)+1); data/f2j-0.8.1+dfsg/src/y.tab.c:1588: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). # define yystrlen strlen data/f2j-0.8.1+dfsg/src/y.tab.c:2886:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(start_range) > 1) || (strlen(end_range) > 1)) { data/f2j-0.8.1+dfsg/src/y.tab.c:2886: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((strlen(start_range) > 1) || (strlen(end_range) > 1)) { data/f2j-0.8.1+dfsg/src/y.tab.c:4827: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). if(strlen(yylval.lexeme) > 0) data/f2j-0.8.1+dfsg/src/y.tab.c:5438: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). (char *)malloc(strlen(yylval.lexeme) + 2); data/f2j-0.8.1+dfsg/src/y.tab.c:5440:16: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat((yyval.ptnode)->astnode.constant.number, "f"); data/f2j-0.8.1+dfsg/src/y.tab.c:5455: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). (char *)malloc(strlen(tempname) + 2); data/f2j-0.8.1+dfsg/src/y.tab.c:5457:16: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat((yyval.ptnode)->astnode.constant.number, "f"); data/f2j-0.8.1+dfsg/src/y.tab.c:5693:17: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(temp->astnode.constant.number, "f"); data/f2j-0.8.1+dfsg/src/y.tab.c:6599:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(var_und,"_"); data/f2j-0.8.1+dfsg/src/y.tab.c:6601:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(und_var_und,"_"); data/f2j-0.8.1+dfsg/src/y.tab.c:6605: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). name_array[count] = (char *) f2jalloc( strlen(var) + 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6613: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). (t+strlen(t) == comvar+strlen(comvar)))) data/f2j-0.8.1+dfsg/src/y.tab.c:6613: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). (t+strlen(t) == comvar+strlen(comvar)))) data/f2j-0.8.1+dfsg/src/y.tab.c:6615: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). name_array[count] = (char *) f2jalloc( strlen(comvar) + 1 ); data/f2j-0.8.1+dfsg/src/y.tab.c:6619: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). name_array[count] = (char *) f2jalloc(strlen(temp->astnode.ident.name) data/f2j-0.8.1+dfsg/src/y.tab.c:6620: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(((char **)ht->variable)[count]) + 2); data/f2j-0.8.1+dfsg/src/y.tab.c:6623:11: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(name_array[count],"_"); data/f2j-0.8.1+dfsg/src/y.tab.c:6853: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). tempstr = (char *)f2jalloc(strlen(num) + 5); data/f2j-0.8.1+dfsg/src/y.tab.c:6864:3: [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(tempstr,"-"); data/f2j-0.8.1+dfsg/src/y.tab.c:7135: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). tempname = (char *)malloc((strlen(name)+2)*sizeof(char)); data/f2j-0.8.1+dfsg/src/y.tab.c:7136: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). space_buffer = (char *)malloc((strlen(line_buffer)+2)*sizeof(char)); data/f2j-0.8.1+dfsg/src/y.tab.c:7137: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). clean_buffer = (char *)malloc((strlen(line_buffer)+2)*sizeof(char)); data/f2j-0.8.1+dfsg/src/y.tab.c:7141:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tempname, "("); data/f2j-0.8.1+dfsg/src/y.tab.c:7147:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(!strncmp(line_buffer, words[i], strlen(words[i]))) { data/f2j-0.8.1+dfsg/src/y.tab.c:7148: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). tmp_spot = line_buffer + strlen(words[i]); data/f2j-0.8.1+dfsg/src/y.tab.c:7161: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). for(i=0; i< strlen(tempname); i++) ANALYSIS SUMMARY: Hits = 573 Lines analyzed = 40455 in approximately 1.14 seconds (35363 lines/second) Physical Source Lines of Code (SLOC) = 25746 Hits@level = [0] 1395 [1] 251 [2] 181 [3] 4 [4] 136 [5] 1 Hits@level+ = [0+] 1968 [1+] 573 [2+] 322 [3+] 141 [4+] 137 [5+] 1 Hits/KSLOC@level+ = [0+] 76.4391 [1+] 22.2559 [2+] 12.5068 [3+] 5.47658 [4+] 5.32121 [5+] 0.038841 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.