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/mummer-3.23+dfsg/src/kurtz/libbasedir/args.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/arraydef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/chardef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/cleanMUMcand.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/clock.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/debug.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/fopen.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/intbits.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/mapfile.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/megabytes.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/minmax.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/multidef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/multiseq.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/mumcand.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/optdesc.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/protodef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/safescpy.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/seterror.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/space.c Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/spacedef.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/types.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/visible.h Examining data/mummer-3.23+dfsg/src/kurtz/libbasedir/procopt.c Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/findmaxmat.c Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/findmumcand.c Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmat3.c Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmatdef.h Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmatinp.c Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmatopt.c Examining data/mummer-3.23+dfsg/src/kurtz/mm3src/procmaxmat.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/access.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/addleafcount.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/construct.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/depthtab.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/dfs.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/ex2leav.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/iterator.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/linkloc.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/loc.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/overmax.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/oversucc.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/scanpref.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/stree.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streeacc.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streedbg.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streedef.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streefiledoc.c Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streehuge.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streelarge.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streemac.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streeproto.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streesmall.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/streetyp.h Examining data/mummer-3.23+dfsg/src/kurtz/streesrc/symboldef.h Examining data/mummer-3.23+dfsg/src/tigr/annotate.cc Examining data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc Examining data/mummer-3.23+dfsg/src/tigr/delta-filter.cc Examining data/mummer-3.23+dfsg/src/tigr/delta.cc Examining data/mummer-3.23+dfsg/src/tigr/gaps.cc Examining data/mummer-3.23+dfsg/src/tigr/prenuc.cc Examining data/mummer-3.23+dfsg/src/tigr/prepro.cc Examining data/mummer-3.23+dfsg/src/tigr/repeat-match.cc Examining data/mummer-3.23+dfsg/src/tigr/show-aligns.cc Examining data/mummer-3.23+dfsg/src/tigr/show-coords.cc Examining data/mummer-3.23+dfsg/src/tigr/show-diff.cc Examining data/mummer-3.23+dfsg/src/tigr/show-snps.cc Examining data/mummer-3.23+dfsg/src/tigr/show-tiling.cc Examining data/mummer-3.23+dfsg/src/tigr/sw_align.cc Examining data/mummer-3.23+dfsg/src/tigr/translate.cc Examining data/mummer-3.23+dfsg/src/tigr/mgaps.cc Examining data/mummer-3.23+dfsg/src/tigr/postnuc.cc Examining data/mummer-3.23+dfsg/src/tigr/postpro.cc Examining data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc Examining data/mummer-3.23+dfsg/src/tigr/tigrinc.cc Examining data/mummer-3.23+dfsg/src/tigr/delta2maf.cc FINAL RESULTS: data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:111:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(getdbgfp(),\ data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:130: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. GENDEBUG(L){fprintf(getdbgfp(),F); (void) fflush(stdout);} data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:132: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. GENDEBUG(L){fprintf(getdbgfp(),F,A1); (void) fflush(stdout);} data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:134: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. GENDEBUG(L){fprintf(getdbgfp(),F,A1,A2); (void) fflush(stdout);} data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:136: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. GENDEBUG(L){fprintf(getdbgfp(),F,A1,A2,A3); (void) fflush(stdout);} data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:138: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. GENDEBUG(L){fprintf(getdbgfp(),F,A1,A2,A3,A4); (void) fflush(stdout);} data/mummer-3.23+dfsg/src/kurtz/libbasedir/debugdef.h:140: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. GENDEBUG(L){fprintf(getdbgfp(),F,A1,A2,A3,A4,A5); (void) fflush(stdout);} data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h:70:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. GENERROR(sprintf(messagespace(),F)) data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h:73:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. GENERROR(sprintf(messagespace(),F,A1)) data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h:76:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. GENERROR(sprintf(messagespace(),F,A1,A2)) data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h:79:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. GENERROR(sprintf(messagespace(),F,A1,A2,A3)) data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h:82:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. GENERROR(sprintf(messagespace(),F,A1,A2,A3,A4)) data/mummer-3.23+dfsg/src/kurtz/libbasedir/errordef.h:85:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. GENERROR(sprintf(messagespace(),F,A1,A2,A3,A4,A5)) data/mummer-3.23+dfsg/src/kurtz/libbasedir/safescpy.c:37: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(dest,source); data/mummer-3.23+dfsg/src/kurtz/libbasedir/space.c:230: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(dest,source); data/mummer-3.23+dfsg/src/tigr/annotate.cc:82:12: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf (Line + i + 1, "%s %s", Name, Tag); data/mummer-3.23+dfsg/src/tigr/annotate.cc:105:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf (Line, "%ld %ld %ld %s %s %s", & Start1, & Start2, data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:267:8: [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 (ref_tag, Ref_File_Path); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:269:8: [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 (ref_tag, p + 1); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:273:4: [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 (ref_tag, Ref_Suffix); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:277:8: [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 (query_tag, Match_File_Path); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:279:8: [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 (query_tag, p + 1); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:283:4: [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 (query_tag, Query_Suffix); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:291:8: [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 (ref_tag, strtok (ref_header, " \t\n>")); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:359:17: [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 (buff, line + 1); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:362:21: [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 (query_tag, p); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:589: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 (filename, ref_tag); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:593: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 (filename, query_tag); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1485:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (header, Line); data/mummer-3.23+dfsg/src/tigr/delta.cc:1263: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 (mi->second.seq + 1, R + 1); data/mummer-3.23+dfsg/src/tigr/delta.cc:1283: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 (mi->second.seq + 1, Q + 1); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:195: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 (InputFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:196: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 (IdR, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:197: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 (IdQ, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:280: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 (RefFileName, dr.getReferencePath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:281: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 (QryFileName, dr.getQueryPath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:395: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 ( A[4] + 1, A[1] + 1 ); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:401: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 ( B[4] + 1, B[1] + 1 ); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:201: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 (InputFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:203: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 (IdR, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:205: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 (IdQ, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:285: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 (RefFileName, dr.getReferencePath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:286: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 (QryFileName, dr.getQueryPath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:453:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( A[4] + 1, A[1] + 1 ); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:479:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( B[4] + 1, B[1] + 1 ); data/mummer-3.23+dfsg/src/tigr/mgaps.cc:105: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 (save, line); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:283: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 (RefFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:284: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 (QryFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:285: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 (ClusterFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:286: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 (DeltaFileName, ClusterFileName); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:317: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 (Af[As].Id, IdA); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:347:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ( sscanf (Line + 1, "%s", CurrIdB) != 1 ) data/mummer-3.23+dfsg/src/tigr/postnuc.cc:426:8: [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 (IdA, Af[Seqi].Id); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:427:8: [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 (IdB, CurrIdB); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:436: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 (Asyn.Bf.Id, IdB); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:774:6: [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 ( Brev + 1, Bf->seq + 1 ); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:1237:8: [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 ( Brev + 1, Bf->seq + 1 ); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:1500:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( Brev + 1, Bf->seq + 1 ); data/mummer-3.23+dfsg/src/tigr/postpro.cc:290: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 (RefFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/postpro.cc:291: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 (QryFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/postpro.cc:292: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 (ClusterFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/postpro.cc:293: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 (DeltaFileName, ClusterFileName); data/mummer-3.23+dfsg/src/tigr/postpro.cc:324: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 (Af[As].Id, IdA); data/mummer-3.23+dfsg/src/tigr/postpro.cc:358:16: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ( sscanf (Line + 1, "%s", CurrIdB) != 1 ) data/mummer-3.23+dfsg/src/tigr/postpro.cc:447:15: [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 (IdA, Af[Seqi].Id); data/mummer-3.23+dfsg/src/tigr/postpro.cc:448:15: [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 (IdB, CurrIdB); data/mummer-3.23+dfsg/src/tigr/postpro.cc:459: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 (Asyn.Bf.Id, IdB); data/mummer-3.23+dfsg/src/tigr/prepro.cc:96:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (InputFileName, optarg); data/mummer-3.23+dfsg/src/tigr/prepro.cc:102:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (InputFileName, optarg); data/mummer-3.23+dfsg/src/tigr/repeat-match.cc:159:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (Data + Genome_Len + 2, Data + 1); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:192: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 (InputFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:193: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 (IdR, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:194: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 (IdQ, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:283: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 (RefFileName, dr.getReferencePath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:284: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 (QryFileName, dr.getQueryPath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:359: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 ( A[4] + 1, A[1] + 1 ); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:365: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 ( B[4] + 1, B[1] + 1 ); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:441:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff1, PREFIX_FORMAT, toFwd (Apos, SeqLenR, frameR)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:442:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff2, PREFIX_FORMAT, toFwd (Bpos, SeqLenQ, frameQ)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:464:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff1, PREFIX_FORMAT, toFwd (Apos, SeqLenR, frameR)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:465:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff2, PREFIX_FORMAT, toFwd (Bpos, SeqLenQ, frameQ)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:495:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff1, PREFIX_FORMAT, toFwd (Apos, SeqLenR, frameR)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:496:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff2, PREFIX_FORMAT, toFwd (Bpos, SeqLenQ, frameQ)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:533:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff1, PREFIX_FORMAT, toFwd (Apos, SeqLenR, frameR)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:534:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff2, PREFIX_FORMAT, toFwd (Bpos, SeqLenQ, frameQ)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:562:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff1, PREFIX_FORMAT, toFwd (Apos, SeqLenR, frameR)); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:563:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(Buff2, PREFIX_FORMAT, toFwd (Bpos, SeqLenQ, frameQ)); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:403: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 (InputFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:1008: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 (RefFileName, dr.getReferencePath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:1009: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 (QryFileName, dr.getQueryPath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:1019: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 (CurrStats.IdA, dr.getRecord( ).idR.c_str( )); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:1020: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 (CurrStats.IdB, dr.getRecord( ).idQ.c_str( )); data/mummer-3.23+dfsg/src/tigr/show-snps.cc:462:21: [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 (R [ri] + 1, R [0] + 1); data/mummer-3.23+dfsg/src/tigr/show-snps.cc:479:21: [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 (Q [qi] + 1, Q [0] + 1); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:337:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( PseudoMoleculeFileName, optarg ); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:346:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( ContigsFileName, optarg ); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:351:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( UnusableFileName, optarg ); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:405: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 (InputFileName, argv[optind ++]); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:852:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( Cp->SeqQ + 1, A + 1 ); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:1007: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 (RefFileName, dr.getReferencePath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:1008: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 (QryFileName, dr.getQueryPath( ).c_str( )); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:1055: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 (aStats.IdR, dr.getRecord( ).idR.c_str( )); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:1056: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 (aContig.IdQ, dr.getRecord( ).idQ.c_str( )); data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:340:8: [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, P); data/mummer-3.23+dfsg/src/kurtz/libbasedir/debug.c:69:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((envstring = getenv("DEBUGLEVEL")) != NULL) data/mummer-3.23+dfsg/src/kurtz/libbasedir/debug.c:87:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((envstring = getenv("DEBUGWHERE")) != (char *) NULL) data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1195:24: [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. && ((ch = getopt (argc, argv, "De:nN:q:r:Stv:xW:")) != EOF)) data/mummer-3.23+dfsg/src/tigr/delta-filter.cc:61:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(1); data/mummer-3.23+dfsg/src/tigr/delta-filter.cc:113:17: [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. ((ch = getopt(argc, argv, "e:ghi:l:o:qru:m1")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/delta.cc:215:20: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. delta_stream_m.setstate (ios::failbit); data/mummer-3.23+dfsg/src/tigr/delta.cc:247:20: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. delta_stream_m.setstate (ios::failbit); data/mummer-3.23+dfsg/src/tigr/delta.cc:294:20: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. delta_stream_m.setstate (ios::failbit); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:141:33: [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 ( !errflg && ((ch = getopt data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:147:33: [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 ( !errflg && ((ch = getopt data/mummer-3.23+dfsg/src/tigr/mgaps.cc:395:24: [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. && ((ch = getopt (argc, argv, "Cd:ef:l:s:")) != EOF)) data/mummer-3.23+dfsg/src/tigr/postnuc.cc:239:33: [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 ( !errflg && ((ch = getopt (argc, argv, "dehB:b:st")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/postpro.cc:244:33: [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 ( !errflg && ((ch = getopt (argc, argv, "dehb:tx:")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/prenuc.cc:43:33: [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 ( !errflg && ((ch = getopt (argc, argv, "hT:qrclw")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/prepro.cc:83:33: [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 ( !errflg && ((ch = getopt (argc, argv, "hm:q:r:")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/repeat-match.cc:1203:31: [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 (! errflg && ((ch = getopt (argc, argv, "Efn:tV:")) != EOF)) data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:138:33: [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 ( !errflg && ((ch = getopt data/mummer-3.23+dfsg/src/tigr/show-coords.cc:256:13: [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. ((ch = getopt (argc, argv, "bkBdhTHqrgGclowI:L:")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/show-coords.cc:400:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (time (NULL)); data/mummer-3.23+dfsg/src/tigr/show-diff.cc:407:18: [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. ((ch = getopt (argc, argv, "fhHqr")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/show-snps.cc:889:18: [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. ((ch = getopt (argc, argv, "ChHIlqrSTx:")) != EOF) ) data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:305:33: [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 ( !errflg && ((ch = getopt data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:397:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand ( time(NULL) ); data/mummer-3.23+dfsg/src/kurtz/libbasedir/debug.c:79:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((debuglevel = atoi(envstring)) > MAXDEBUGLEVEL) data/mummer-3.23+dfsg/src/kurtz/libbasedir/fopen.h:24:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((FP = fopen(FILENAME,MODE)) == NULL)\ data/mummer-3.23+dfsg/src/kurtz/libbasedir/mapfile.c:65:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *filemapped[MAXMAPPEDFILES] = {NULL}; data/mummer-3.23+dfsg/src/kurtz/libbasedir/mapfile.c:104:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fd = open(filename,O_RDONLY)) == -1) data/mummer-3.23+dfsg/src/kurtz/libbasedir/seterror.c:29:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char errormessage[MAXERRORMSG+1]; data/mummer-3.23+dfsg/src/kurtz/libbasedir/types.h:204:5: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int mkstemp(char *); data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmatdef.h:59: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 program[PATH_MAX+1], // the path of the program data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmatopt.c:69: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(spacefortext,"set the minimum length of a match\n" data/mummer-3.23+dfsg/src/kurtz/mm3src/maxmatopt.c:104: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 leastlengthtext[128+1]; data/mummer-3.23+dfsg/src/kurtz/streesrc/streedbg.c:58: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 outbuf[100+1]; data/mummer-3.23+dfsg/src/kurtz/streesrc/streedbg.c:62: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(outbuf,"\\%lu",(Showuint) c); data/mummer-3.23+dfsg/src/kurtz/streesrc/streedbg.c:65: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(outbuf,"%c",c); data/mummer-3.23+dfsg/src/tigr/annotate.cc:34: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 [MAX_LINE_LEN]; data/mummer-3.23+dfsg/src/tigr/annotate.cc:44: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 Name [MAX_NAME_LEN], Tag [MAX_NAME_LEN]; data/mummer-3.23+dfsg/src/tigr/annotate.cc:45: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 Olap_String [FIELD_LEN], Gap_String1 [FIELD_LEN], Gap_String2 [FIELD_LEN]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:170:6: [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 * left_pad [3], char * right_pad [3], int pad_len); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:170:27: [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 * left_pad [3], char * right_pad [3], int pad_len); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:209:6: [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 * pad [3], int r_hi, int q_hi, int mum_len, int pad_len); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:211:6: [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 * pad [3], int r_lo, int q_lo, int mum_len, int pad_len); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:229: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 ref_header [MAX_HDR_LEN]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc: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 header [MAX_HDR_LEN], ref_tag [MAX_HDR_LEN], query_tag [MAX_HDR_LEN]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:231: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 line [MAX_LINE], filename [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:232: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 * left_pad [3], * right_pad [3]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:356:17: [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 buff [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:366:22: [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 (query_tag, "???"); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:590: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 (filename, ".cover"); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:594: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 (filename, ".cover"); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:729: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 top [MAX_EXTENSION + 2 * MAX_ERRORS + 1]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:730: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 bottom [MAX_EXTENSION + 2 * MAX_ERRORS + 1]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:812:6: [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 * left_pad [3], char * right_pad [3], int pad_len) data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:812:27: [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 * left_pad [3], char * right_pad [3], int pad_len) data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:823: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 top [MAX_EXTENSION + 2 * MAX_ERRORS + 1]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:824: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 bottom [MAX_EXTENSION + 2 * MAX_ERRORS + 1]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1141: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). fp = fopen (filename, mode); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1468: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 Line [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1556: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 top [MAX_EXTENSION + 2 * MAX_ERRORS + 1]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1557: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 bottom [MAX_EXTENSION + 2 * MAX_ERRORS + 1]; data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1936:6: [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 * pad [3], int r_hi, int q_hi, int mum_len, int pad_len) data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1964:6: [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 * pad [3], int r_lo, int q_lo, int mum_len, int pad_len) data/mummer-3.23+dfsg/src/tigr/delta-filter.cc:134:25: [2] (integer) atol: 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). OPT_MinLength = atol(optarg); data/mummer-3.23+dfsg/src/tigr/delta.cc:201:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void DeltaReader_t::open data/mummer-3.23+dfsg/src/tigr/delta.cc:207:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). delta_stream_m.open (delta_path_m.c_str ()); data/mummer-3.23+dfsg/src/tigr/delta.cc:385:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dr.open (deltapath); data/mummer-3.23+dfsg/src/tigr/delta.cc:1249: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 id [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:96: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 InputFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:97: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:134: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 Id [MAX_LINE], IdR [MAX_LINE], IdQ [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:159:19: [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). Screen_Width = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:170:18: [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). MATRIX_TYPE = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:277:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dr.open (InputFileName); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:365: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 * A[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:366: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 * B[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:96: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 InputFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:97: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:136: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 Id [MAX_LINE], IdR [MAX_LINE], IdQ [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:165:19: [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). Screen_Width = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:176:18: [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). MATRIX_TYPE = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:277:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dr.open (InputFileName); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:392: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 * A[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:393: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 * B[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:396: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 Buff1 [Screen_Width + 1], data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:613: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(&Buff1[Pos],&A[Ai][Apos],Delta-1); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:618: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(&Buff2[Pos],&B[Bi][Bpos],Delta-1); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:692:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&Buff1[Pos],&A[Ai][Apos],Remain); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:697:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&Buff2[Pos],&B[Bi][Bpos],Remain); data/mummer-3.23+dfsg/src/tigr/mgaps.cc:83: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 line [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/mgaps.cc:84: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 save [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/postnuc.cc:213:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Line [MAX_LINE]; // a single line of input data/mummer-3.23+dfsg/src/tigr/postnuc.cc:214: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 CurrIdB [MAX_LINE], IdA [MAX_LINE], IdB [MAX_LINE]; // fasta ID headers data/mummer-3.23+dfsg/src/tigr/postnuc.cc:215: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 ClusterFileName [MAX_LINE], DeltaFileName [MAX_LINE]; // file names data/mummer-3.23+dfsg/src/tigr/postnuc.cc:216: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/postnuc.cc:243: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). setBreakLen( atoi (optarg) ); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:247:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). setBanding( atoi (optarg) ); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:287: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 (ClusterFileName, ".cluster"); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:288: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 (DeltaFileName, ".delta"); data/mummer-3.23+dfsg/src/tigr/postpro.cc:218:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Line [MAX_LINE]; // a single line of input data/mummer-3.23+dfsg/src/tigr/postpro.cc:219: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 CurrIdB [MAX_LINE], IdA [MAX_LINE], IdB [MAX_LINE]; // fasta ID headers data/mummer-3.23+dfsg/src/tigr/postpro.cc:220: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 ClusterFileName [MAX_LINE], DeltaFileName [MAX_LINE]; // file names data/mummer-3.23+dfsg/src/tigr/postpro.cc:221: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/postpro.cc:248:24: [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). setBreakLen (atoi (optarg)); data/mummer-3.23+dfsg/src/tigr/postpro.cc:269:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). setMatrixType ( atoi (optarg) ); data/mummer-3.23+dfsg/src/tigr/postpro.cc:294: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 (ClusterFileName, ".cluster"); data/mummer-3.23+dfsg/src/tigr/postpro.cc:295: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 (DeltaFileName, ".delta"); data/mummer-3.23+dfsg/src/tigr/postpro.cc:760: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 * A [7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/postpro.cc:761: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 * B [7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/postpro.cc:1270: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 * A [7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/postpro.cc:1271: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 * B [7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/postpro.cc:1580: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 * A [7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/postpro.cc:1581: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 * B [7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/prenuc.cc:36: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 * A, Id[MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/prepro.cc:74: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 Id [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/prepro.cc:75: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 InputFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/prepro.cc:92:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mask_len = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/repeat-match.cc:135: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 Name [MAX_NAME_LEN]; data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:91: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 InputFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:92: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Id [MAX_LINE], IdR [MAX_LINE], IdQ [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:156:19: [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). Screen_Width = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:167:18: [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). MATRIX_TYPE = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:280:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dr.open (InputFileName); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:331: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 * A[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:332: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 * B[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:335: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 Buff1 [Screen_Width + 1], data/mummer-3.23+dfsg/src/tigr/show-coords.cc:45:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char annot [12]; // annotation string data/mummer-3.23+dfsg/src/tigr/show-coords.cc:188: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 InputFileName [MAX_LINE]; // I/O filenames data/mummer-3.23+dfsg/src/tigr/show-coords.cc:189: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-coords.cc:297:16: [2] (integer) atol: 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). lenCutoff = atol (optarg); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:678:6: [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 (Sip -> annot, "[IDENTITY]"); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:681:6: [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 (Sip -> annot, "[CONTAINED]"); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:684:6: [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 (Sip -> annot, "[CONTAINS]"); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:686:6: [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 (Sip -> annot, "[END]"); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:688:6: [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 (Sip -> annot, "[BEGIN]"); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:767:2: [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 ( Sip->annot , "[DUPLICATE]" ); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:770:2: [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 ( Sip->annot , "[CONTAINS]" ); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:773:2: [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 ( Sip->annot , "[SHADOWED]" ); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:776:2: [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 ( Sip->annot , "[OVERLAPS]" ); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:779:2: [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 ( Sip->annot , "[OVERLAPS]" ); data/mummer-3.23+dfsg/src/tigr/show-coords.cc:792: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 date[MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-coords.cc:1005:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dr.open (InputFileName); data/mummer-3.23+dfsg/src/tigr/show-snps.cc:930:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). OPT_Context = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:49: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 NULL_STRING[1] = ""; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:213: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 InputFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:214: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 RefFileName [MAX_LINE], QryFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:289: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 ContigsFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:290: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 PseudoMoleculeFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:291: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 UnusableFileName [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:323:19: [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). MAX_GAP_SIZE = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:333:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). MIN_CONTIG_LENGTH = atoi (optarg); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:834:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Line [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:1004:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dr.open (InputFileName); data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:12: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). fp = fopen (Filename, Mode); data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:325: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 * P, Line [MAX_LINE]; data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:427: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 * P, Line [MAX_LINE]; data/mummer-3.23+dfsg/src/kurtz/libbasedir/debug.c:71: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(envstring) == (size_t) 1 && data/mummer-3.23+dfsg/src/kurtz/libbasedir/procopt.c:159: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). slen = (Uint) strlen(opt[i].optname); data/mummer-3.23+dfsg/src/kurtz/libbasedir/safescpy.c:30: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). slen = (Sint) strlen(source); data/mummer-3.23+dfsg/src/kurtz/libbasedir/space.c:227: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). len = (Uint) strlen(source); data/mummer-3.23+dfsg/src/tigr/annotate.cc:67: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). Len2 = strlen (Data2 + 1); data/mummer-3.23+dfsg/src/tigr/annotate.cc:90: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). Len1 = strlen (Data1 + 1); data/mummer-3.23+dfsg/src/tigr/annotate.cc:92: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). Tag_Len = strlen (Tag); data/mummer-3.23+dfsg/src/tigr/annotate.cc:123: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). Line_Len = strlen (Line); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:294: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). Ref_Len = strlen (Ref + 1); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:325: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). int line_len = strlen (line); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:361: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 (strlen (p) > 0) data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:373: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). Query_Len = strlen (Query + 1); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1475:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((Ch = fgetc (fp)) != EOF && Ch != '>') data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1482: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). Len = strlen (Line); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1490:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((Ch = fgetc (fp)) != EOF && Ch != '>') data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:1530: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). len = strlen (s); data/mummer-3.23+dfsg/src/tigr/combineMUMs.cc:2040: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). seq_len = strlen (seq + 1); data/mummer-3.23+dfsg/src/tigr/delta.cc:1260: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). len = strlen (R + 1); data/mummer-3.23+dfsg/src/tigr/delta.cc:1280: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). len = strlen (Q + 1); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:387: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). SeqLenR = strlen (R + 1); data/mummer-3.23+dfsg/src/tigr/delta2blocks.cc:388: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). SeqLenQ = strlen (Q + 1); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:317:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(IdR) == 0 && strlen(IdQ) == 0){ data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:317:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(IdR) == 0 && strlen(IdQ) == 0){ data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:321:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(IdR) != 0 && strlen(IdQ) != 0){ data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:321:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(IdR) != 0 && strlen(IdQ) != 0){ data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:327: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). if(strlen(IdR) != 0 && dr.getRecord( ).idR == IdR){ data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:331:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(IdQ) != 0 && dr.getRecord( ).idQ == IdQ){ data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:444:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). SeqLenR = IdR == previous_IdR ? previous_SeqLenR : strlen(R + 1); data/mummer-3.23+dfsg/src/tigr/delta2maf.cc:472: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). SeqLenQ = strlen(Q+1); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:316: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). Af[As].Id = (char *) Safe_malloc (sizeof(char) * (strlen(IdA) + 1)); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:319: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). Af[As].len = strlen (Af[As].seq + 1); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:435: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). (sizeof(char) * (strlen(IdB) + 1)); data/mummer-3.23+dfsg/src/tigr/postnuc.cc:1391: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). Bf.len = strlen (Bf.seq + 1); data/mummer-3.23+dfsg/src/tigr/postpro.cc:323: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). Af[As].Id = (char *) Safe_malloc (sizeof(char) * (strlen(IdA) + 1)); data/mummer-3.23+dfsg/src/tigr/postpro.cc:326: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). Af[As].len = strlen (Af[As].seq + 1); data/mummer-3.23+dfsg/src/tigr/postpro.cc:361: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). sscanf (CurrIdB + strlen(CurrIdB) - 1, "%d", &CurrFrameB); data/mummer-3.23+dfsg/src/tigr/postpro.cc:362: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). CurrIdB [strlen(CurrIdB) - 2] = '\0'; data/mummer-3.23+dfsg/src/tigr/postpro.cc:458: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). (sizeof(char) * (strlen(IdB) + 1)); data/mummer-3.23+dfsg/src/tigr/postpro.cc:1461: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). Bf.len = strlen (Bf.seq + 1); data/mummer-3.23+dfsg/src/tigr/prenuc.cc:72: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). SizeA = strlen(A + 1); data/mummer-3.23+dfsg/src/tigr/prepro.cc:138: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). LenA = strlen(A + 1); data/mummer-3.23+dfsg/src/tigr/repeat-match.cc:156: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). Genome_Len = strlen (Data + 1); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:352: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). SeqLenR = strlen (R + 1); data/mummer-3.23+dfsg/src/tigr/show-aligns.cc:353: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). SeqLenQ = strlen (Q + 1); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:848: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). assert ( (long int)strlen(A+1) == Cp->SeqLenQ ); data/mummer-3.23+dfsg/src/tigr/show-tiling.cc:1319: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). time_str[strlen(time_str)-1] = '\0'; data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:329:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((Ch = fgetc (fp)) != EOF && Ch != '>') data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:336: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). Len = strlen (Line); data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:360:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((Ch = fgetc (fp)) != EOF && Ch != '>') data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:439:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((Ch = fgetc (fp)) != EOF) data/mummer-3.23+dfsg/src/tigr/tigrinc.cc:453: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). HLen = strlen (Line); data/mummer-3.23+dfsg/src/tigr/translate.cc:20: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). dnaseq_len = strlen ( A + 1 ); data/mummer-3.23+dfsg/src/tigr/translate.cc:58: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). aaseq_len = strlen ( tA + 1 ); data/mummer-3.23+dfsg/src/tigr/translate.cc:95: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). aaseq_len = strlen ( tA + 1 ); ANALYSIS SUMMARY: Hits = 314 Lines analyzed = 29295 in approximately 0.72 seconds (40688 lines/second) Physical Source Lines of Code (SLOC) = 20573 Hits@level = [0] 694 [1] 54 [2] 133 [3] 23 [4] 104 [5] 0 Hits@level+ = [0+] 1008 [1+] 314 [2+] 260 [3+] 127 [4+] 104 [5+] 0 Hits/KSLOC@level+ = [0+] 48.9963 [1+] 15.2627 [2+] 12.6379 [3+] 6.17314 [4+] 5.05517 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.