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/yasm-1.3.0/libyasm/cmake-module.c
Examining data/yasm-1.3.0/libyasm/bitvect.h
Examining data/yasm-1.3.0/libyasm/section.h
Examining data/yasm-1.3.0/libyasm/mergesort.c
Examining data/yasm-1.3.0/libyasm/strcasecmp.c
Examining data/yasm-1.3.0/libyasm/value.c
Examining data/yasm-1.3.0/libyasm/errwarn.h
Examining data/yasm-1.3.0/libyasm/bc-incbin.c
Examining data/yasm-1.3.0/libyasm/insn.h
Examining data/yasm-1.3.0/libyasm/xmalloc.c
Examining data/yasm-1.3.0/libyasm/symrec.h
Examining data/yasm-1.3.0/libyasm/inttree.c
Examining data/yasm-1.3.0/libyasm/linemap.c
Examining data/yasm-1.3.0/libyasm/tests/splitpath_test.c
Examining data/yasm-1.3.0/libyasm/tests/bitvect_test.c
Examining data/yasm-1.3.0/libyasm/tests/uncstring_test.c
Examining data/yasm-1.3.0/libyasm/tests/combpath_test.c
Examining data/yasm-1.3.0/libyasm/tests/floatnum_test.c
Examining data/yasm-1.3.0/libyasm/tests/leb128_test.c
Examining data/yasm-1.3.0/libyasm/bc-data.c
Examining data/yasm-1.3.0/libyasm/hamt.h
Examining data/yasm-1.3.0/libyasm/compat-queue.h
Examining data/yasm-1.3.0/libyasm/floatnum.c
Examining data/yasm-1.3.0/libyasm/bytecode.c
Examining data/yasm-1.3.0/libyasm/section.c
Examining data/yasm-1.3.0/libyasm/expr.h
Examining data/yasm-1.3.0/libyasm/valparam.h
Examining data/yasm-1.3.0/libyasm/expr.c
Examining data/yasm-1.3.0/libyasm/bc-align.c
Examining data/yasm-1.3.0/libyasm/dbgfmt.h
Examining data/yasm-1.3.0/libyasm/strsep.c
Examining data/yasm-1.3.0/libyasm/assocdat.c
Examining data/yasm-1.3.0/libyasm/hamt.c
Examining data/yasm-1.3.0/libyasm/genmodule.c
Examining data/yasm-1.3.0/libyasm/intnum.c
Examining data/yasm-1.3.0/libyasm/bytecode.h
Examining data/yasm-1.3.0/libyasm/md5.h
Examining data/yasm-1.3.0/libyasm/symrec.c
Examining data/yasm-1.3.0/libyasm/module.h
Examining data/yasm-1.3.0/libyasm/linemap.h
Examining data/yasm-1.3.0/libyasm/phash.h
Examining data/yasm-1.3.0/libyasm/intnum.h
Examining data/yasm-1.3.0/libyasm/md5.c
Examining data/yasm-1.3.0/libyasm/phash.c
Examining data/yasm-1.3.0/libyasm/xstrdup.c
Examining data/yasm-1.3.0/libyasm/bc-org.c
Examining data/yasm-1.3.0/libyasm/listfmt.h
Examining data/yasm-1.3.0/libyasm/preproc.h
Examining data/yasm-1.3.0/libyasm/objfmt.h
Examining data/yasm-1.3.0/libyasm/arch.h
Examining data/yasm-1.3.0/libyasm/inttree.h
Examining data/yasm-1.3.0/libyasm/file.h
Examining data/yasm-1.3.0/libyasm/file.c
Examining data/yasm-1.3.0/libyasm/bitvect.c
Examining data/yasm-1.3.0/libyasm/value.h
Examining data/yasm-1.3.0/libyasm/errwarn.c
Examining data/yasm-1.3.0/libyasm/parser.h
Examining data/yasm-1.3.0/libyasm/floatnum.h
Examining data/yasm-1.3.0/libyasm/valparam.c
Examining data/yasm-1.3.0/libyasm/bc-reserve.c
Examining data/yasm-1.3.0/libyasm/coretype.h
Examining data/yasm-1.3.0/libyasm/insn.c
Examining data/yasm-1.3.0/libyasm/assocdat.h
Examining data/yasm-1.3.0/util.h
Examining data/yasm-1.3.0/plugins/dbg/init_plugin.c
Examining data/yasm-1.3.0/plugins/dbg/dbg-objfmt.c
Examining data/yasm-1.3.0/plugins/x86/init_plugin.c
Examining data/yasm-1.3.0/tools/genperf/perfect.h
Examining data/yasm-1.3.0/tools/genperf/perfect.c
Examining data/yasm-1.3.0/tools/genperf/standard.h
Examining data/yasm-1.3.0/tools/genperf/genperf.c
Examining data/yasm-1.3.0/tools/re2c/examples/rexx/scanio.c
Examining data/yasm-1.3.0/tools/re2c/examples/basemmap.c
Examining data/yasm-1.3.0/tools/re2c/translate.c
Examining data/yasm-1.3.0/tools/re2c/basics.h
Examining data/yasm-1.3.0/tools/re2c/parse.h
Examining data/yasm-1.3.0/tools/re2c/parser.c
Examining data/yasm-1.3.0/tools/re2c/dfa.h
Examining data/yasm-1.3.0/tools/re2c/dfa.c
Examining data/yasm-1.3.0/tools/re2c/re.h
Examining data/yasm-1.3.0/tools/re2c/main.c
Examining data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c
Examining data/yasm-1.3.0/tools/re2c/scanner.h
Examining data/yasm-1.3.0/tools/re2c/token.h
Examining data/yasm-1.3.0/tools/re2c/scanner.c
Examining data/yasm-1.3.0/tools/re2c/actions.c
Examining data/yasm-1.3.0/tools/re2c/code.c
Examining data/yasm-1.3.0/tools/re2c/mbo_getopt.c
Examining data/yasm-1.3.0/tools/re2c/ins.h
Examining data/yasm-1.3.0/tools/re2c/mbo_getopt.h
Examining data/yasm-1.3.0/tools/re2c/substr.h
Examining data/yasm-1.3.0/tools/re2c/substr.c
Examining data/yasm-1.3.0/tools/re2c/parser.h
Examining data/yasm-1.3.0/tools/re2c/globals.h
Examining data/yasm-1.3.0/tools/genmacro/genmacro.c
Examining data/yasm-1.3.0/x86insns.c
Examining data/yasm-1.3.0/frontends/yasm/yasm.c
Examining data/yasm-1.3.0/frontends/yasm/yasm-options.c
Examining data/yasm-1.3.0/frontends/yasm/yasm-plugin.c
Examining data/yasm-1.3.0/frontends/yasm/yasm-options.h
Examining data/yasm-1.3.0/frontends/yasm/yasm-plugin.h
Examining data/yasm-1.3.0/frontends/vsyasm/vsyasm.c
Examining data/yasm-1.3.0/frontends/tasm/tasm-options.h
Examining data/yasm-1.3.0/frontends/tasm/tasm.c
Examining data/yasm-1.3.0/frontends/tasm/tasm-options.c
Examining data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c
Examining data/yasm-1.3.0/modules/arch/x86/x86arch.h
Examining data/yasm-1.3.0/modules/arch/x86/x86arch.c
Examining data/yasm-1.3.0/modules/arch/x86/x86expr.c
Examining data/yasm-1.3.0/modules/arch/x86/x86bc.c
Examining data/yasm-1.3.0/modules/arch/x86/x86id.c
Examining data/yasm-1.3.0/modules/arch/lc3b/lc3bbc.c
Examining data/yasm-1.3.0/modules/arch/lc3b/lc3barch.h
Examining data/yasm-1.3.0/modules/arch/lc3b/lc3barch.c
Examining data/yasm-1.3.0/modules/dbgfmts/null/null-dbgfmt.c
Examining data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c
Examining data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-dbgfmt.h
Examining data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c
Examining data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-info.c
Examining data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-aranges.c
Examining data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c
Examining data/yasm-1.3.0/modules/dbgfmts/codeview/cv-dbgfmt.h
Examining data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c
Examining data/yasm-1.3.0/modules/dbgfmts/codeview/cv-dbgfmt.c
Examining data/yasm-1.3.0/modules/dbgfmts/codeview/cv-type.c
Examining data/yasm-1.3.0/modules/objfmts/xdf/xdf-objfmt.c
Examining data/yasm-1.3.0/modules/objfmts/dbg/dbg-objfmt.c
Examining data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c
Examining data/yasm-1.3.0/modules/objfmts/macho/tests/nasm32/machotest.c
Examining data/yasm-1.3.0/modules/objfmts/macho/tests/nasm64/machotest64.c
Examining data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c
Examining data/yasm-1.3.0/modules/objfmts/win32/tests/win32test.c
Examining data/yasm-1.3.0/modules/objfmts/elf/elf.h
Examining data/yasm-1.3.0/modules/objfmts/elf/tests/elftest.c
Examining data/yasm-1.3.0/modules/objfmts/elf/elf-machine.h
Examining data/yasm-1.3.0/modules/objfmts/elf/elf-objfmt.c
Examining data/yasm-1.3.0/modules/objfmts/elf/elf-x86-x32.c
Examining data/yasm-1.3.0/modules/objfmts/elf/elf-x86-amd64.c
Examining data/yasm-1.3.0/modules/objfmts/elf/elf-x86-x86.c
Examining data/yasm-1.3.0/modules/objfmts/elf/elf.c
Examining data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c
Examining data/yasm-1.3.0/modules/objfmts/coff/tests/cofftest.c
Examining data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.h
Examining data/yasm-1.3.0/modules/objfmts/coff/win64-except.c
Examining data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c
Examining data/yasm-1.3.0/modules/parsers/nasm/nasm-parse.c
Examining data/yasm-1.3.0/modules/parsers/nasm/nasm-parser.c
Examining data/yasm-1.3.0/modules/parsers/nasm/nasm-parser.h
Examining data/yasm-1.3.0/modules/parsers/nasm/nasm-parser-struct.h
Examining data/yasm-1.3.0/modules/parsers/gas/gas-parser.h
Examining data/yasm-1.3.0/modules/parsers/gas/gas-parse-intel.c
Examining data/yasm-1.3.0/modules/parsers/gas/gas-parser.c
Examining data/yasm-1.3.0/modules/parsers/gas/gas-parse.c
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasm-preproc.c
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c
Examining data/yasm-1.3.0/modules/preprocs/nasm/genversion.c
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasm.h
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.h
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.h
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasm-eval.h
Examining data/yasm-1.3.0/modules/preprocs/nasm/nasm-eval.c
Examining data/yasm-1.3.0/modules/preprocs/raw/raw-preproc.c
Examining data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c
Examining data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c
Examining data/yasm-1.3.0/modules/preprocs/gas/gas-eval.c
Examining data/yasm-1.3.0/modules/preprocs/gas/gas-eval.h
Examining data/yasm-1.3.0/modules/listfmts/nasm/nasm-listfmt.c
Examining data/yasm-1.3.0/Mkfiles/dj/config.h
Examining data/yasm-1.3.0/Mkfiles/dj/YASM-VERSION.h
Examining data/yasm-1.3.0/Mkfiles/dj/libyasm-stdint.h
Examining data/yasm-1.3.0/Mkfiles/vc12/config.h
Examining data/yasm-1.3.0/Mkfiles/vc12/YASM-VERSION.h
Examining data/yasm-1.3.0/Mkfiles/vc10/config.h
Examining data/yasm-1.3.0/Mkfiles/vc10/YASM-VERSION.h
Examining data/yasm-1.3.0/Mkfiles/vc10/libyasm-stdint.h
Examining data/yasm-1.3.0/Mkfiles/vc9/config.h
Examining data/yasm-1.3.0/Mkfiles/vc9/YASM-VERSION.h
Examining data/yasm-1.3.0/Mkfiles/vc9/libyasm-stdint.h
Examining data/yasm-1.3.0/cmake/modules/DummyCFile.c
Examining data/yasm-1.3.0/test_hd.c
Examining data/yasm-1.3.0/genstring.c
Examining data/yasm-1.3.0/libyasm.h

FINAL RESULTS:

data/yasm-1.3.0/frontends/tasm/tasm-options.c:37:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG(x) fprintf ## x ;
data/yasm-1.3.0/frontends/tasm/tasm-options.c:118:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(optbuf, "/%s <%s>", options[i].opt,
data/yasm-1.3.0/frontends/tasm/tasm-options.c:123:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(optbuf, "/%s", options[i].opt);
data/yasm-1.3.0/frontends/tasm/tasm.c:829:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(predef, objfmt_keyword);
data/yasm-1.3.0/frontends/tasm/tasm.c:899: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(out, orig);
data/yasm-1.3.0/frontends/tasm/tasm.c:933:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outext, ext);
data/yasm-1.3.0/frontends/tasm/tasm.c:935: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(out, def);
data/yasm-1.3.0/frontends/tasm/tasm.c:952:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(errfile, fmt, va);
data/yasm-1.3.0/frontends/tasm/tasm.c:973:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(errfile, gettext(fmt), va);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:985: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(listdir_pathname, param);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1002: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(objdir_pathname, param);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1019: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(mapdir_pathname, param);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1232:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(predef, objfmt_keyword);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1303: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(out, orig);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1334:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outext, ext);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1353:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(errfile, fmt, va);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1374:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(errfile, gettext(fmt), va);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1401:9:  [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(errfile, fmt[ewmsg_style], filename, line, _("error: "), msg);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1403:9:  [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(errfile, fmt_noline[ewmsg_style], filename, _("error: "), msg);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1407:13:  [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(errfile, fmt[ewmsg_style], xref_fn, xref_line, _("error: "),
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1410:13:  [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(errfile, fmt_noline[ewmsg_style], xref_fn, _("error: "),
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1419:9:  [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(errfile, fmt[ewmsg_style], filename, line, _("warning: "),
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1422:9:  [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(errfile, fmt_noline[ewmsg_style], filename, _("warning: "),
data/yasm-1.3.0/frontends/yasm/yasm-options.c:37:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG(x) fprintf ## x ;
data/yasm-1.3.0/frontends/yasm/yasm-options.c:177:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(optbuf, "-%c <%s>", options[i].sopt,
data/yasm-1.3.0/frontends/yasm/yasm-options.c:185:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(optopt, "--%s=<%s>", options[i].lopt,
data/yasm-1.3.0/frontends/yasm/yasm-options.c:188:17:  [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(optbuf, optopt);
data/yasm-1.3.0/frontends/yasm/yasm-options.c:199:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(optopt, "--%s", options[i].lopt);
data/yasm-1.3.0/frontends/yasm/yasm-options.c:200:17:  [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(optbuf, optopt);
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:66: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(path, name);
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:71:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(path, name);
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:75: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(path, name);
data/yasm-1.3.0/frontends/yasm/yasm.c:1223:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(predef, objfmt_keyword);
data/yasm-1.3.0/frontends/yasm/yasm.c:1293: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(out, orig);
data/yasm-1.3.0/frontends/yasm/yasm.c:1327:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(outext, ext);
data/yasm-1.3.0/frontends/yasm/yasm.c:1329: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(out, def);
data/yasm-1.3.0/frontends/yasm/yasm.c:1346:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(errfile, fmt, va);
data/yasm-1.3.0/frontends/yasm/yasm.c:1367:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(errfile, gettext(fmt), va);
data/yasm-1.3.0/frontends/yasm/yasm.c:1394:9:  [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(errfile, fmt[ewmsg_style], filename, line, _("error: "), msg);
data/yasm-1.3.0/frontends/yasm/yasm.c:1396:9:  [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(errfile, fmt_noline[ewmsg_style], filename, _("error: "), msg);
data/yasm-1.3.0/frontends/yasm/yasm.c:1400:13:  [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(errfile, fmt[ewmsg_style], xref_fn, xref_line, _("error: "),
data/yasm-1.3.0/frontends/yasm/yasm.c:1403:13:  [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(errfile, fmt_noline[ewmsg_style], xref_fn, _("error: "),
data/yasm-1.3.0/frontends/yasm/yasm.c:1412:9:  [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(errfile, fmt[ewmsg_style], filename, line, _("warning: "),
data/yasm-1.3.0/frontends/yasm/yasm.c:1415:9:  [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(errfile, fmt_noline[ewmsg_style], filename, _("warning: "),
data/yasm-1.3.0/libyasm/errwarn.c:164:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,
data/yasm-1.3.0/libyasm/errwarn.c:181:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, yasm_gettext_hook(fmt), va);
data/yasm-1.3.0/libyasm/errwarn.c:279:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(yasm_estr, MSG_MAXSIZE, yasm_gettext_hook(format), va);
data/yasm-1.3.0/libyasm/errwarn.c:281:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(yasm_estr, yasm_gettext_hook(format), va);
data/yasm-1.3.0/libyasm/errwarn.c:304:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(yasm_exrefstr, MSG_MAXSIZE, yasm_gettext_hook(format), va);
data/yasm-1.3.0/libyasm/errwarn.c:306:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(yasm_exrefstr, yasm_gettext_hook(format), va);
data/yasm-1.3.0/libyasm/errwarn.c:367:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(w->wstr, MSG_MAXSIZE, yasm_gettext_hook(format), va);
data/yasm-1.3.0/libyasm/errwarn.c:369:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(w->wstr, yasm_gettext_hook(format), va);
data/yasm-1.3.0/libyasm/genmodule.c:76: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(inc->filename, argv[2]);
data/yasm-1.3.0/libyasm/genmodule.c:125: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(inc->filename, strp);
data/yasm-1.3.0/libyasm/genmodule.c:207: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(str, modules[i]);
data/yasm-1.3.0/libyasm/symrec.c:501:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(name, object->global_prefix);
data/yasm-1.3.0/libyasm/symrec.c:502:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(name, sym->name);
data/yasm-1.3.0/libyasm/symrec.c:503:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(name, object->global_suffix);
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:94: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((char *)ascii, val->ascii);
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:106: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(result_msg, val->ascii);
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:110:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(result_msg, (char *)ascii);
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:158:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failed, "%s ** F: %s failed!\n", failed, testname);
data/yasm-1.3.0/libyasm/tests/combpath_test.c:107:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/combpath_test.c:132:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(failed, "%s ** F: %s\n", failed, failmsg);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:165: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(result_msg, vals[i].ascii);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:255: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(ret_msg, vals[i].ascii);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:257: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(result_msg, vals[i].ascii);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:266:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(ret_msg, str);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:285:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(result_msg, str);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:426:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failed, "%s ** F: %s failed: %s!\n", failed, testname,
data/yasm-1.3.0/libyasm/tests/leb128_test.c:92:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg, "%ssigned %s%s size() bad size: expected %lu, got %lu!",
data/yasm-1.3.0/libyasm/tests/leb128_test.c:103:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg, "%ssigned %s%s get() bad size: expected %lu, got %lu!",
data/yasm-1.3.0/libyasm/tests/leb128_test.c:116:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg, "%ssigned %s%s get() bad output!",
data/yasm-1.3.0/libyasm/tests/leb128_test.c:142:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg, "%ssigned %s%s create() bad size: expected %lu, got %lu!",
data/yasm-1.3.0/libyasm/tests/leb128_test.c:152:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg, "%ssigned %s%s create() bad output!",
data/yasm-1.3.0/libyasm/tests/leb128_test.c:182:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(failed, "%s ** F: %s\n", failed, failmsg);
data/yasm-1.3.0/libyasm/tests/leb128_test.c:189:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(failed, "%s ** F: %s\n", failed, failmsg);
data/yasm-1.3.0/libyasm/tests/splitpath_test.c:116:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/splitpath_test.c:124:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/splitpath_test.c:147:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(failed, "%s ** F: %s\n", failed, failmsg);
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:93:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:101:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:109:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:115:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:121:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(failmsg,
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:147:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(failed, "%s ** F: %s\n", failed, failmsg);
data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c:243: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(str, name);
data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c:450: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((char *)buf, str);
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:1379:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(symname, sectname);
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:1380:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(symname, suffix);
data/yasm-1.3.0/modules/objfmts/dbg/dbg-objfmt.c:50:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, N_("could not open temporary file"));
data/yasm-1.3.0/modules/objfmts/elf/elf.c:717: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(sectname, elf_march->reloc_section_prefix);
data/yasm-1.3.0/modules/objfmts/elf/elf.c:718:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(sectname, basesect);
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1480:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(realname, "LC_SEGMENT.%s.%s", data.f_segname, f_sectname);
data/yasm-1.3.0/modules/objfmts/macho/tests/nasm32/machotest.c:44:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 printf(string,a,b,c);
data/yasm-1.3.0/modules/objfmts/macho/tests/nasm64/machotest64.c:55:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 printf(string,a,b,c);
data/yasm-1.3.0/modules/parsers/gas/gas-parse.c:1506: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(parser_gas->locallabel_base, name);
data/yasm-1.3.0/modules/parsers/nasm/nasm-parse.c:1506: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(parser_nasm->locallabel_base, name);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:88: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(p, s);                                   \
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:105: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(p, CPP_PROG);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:141:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    pp->f = popen(cmdline, "r");
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:173:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    pp->f_deps = popen(cmdline, "r");
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:594:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(line, "%%include \"%s\"", p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:635:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                p += sprintf(p, "%%undef %s\n", *parameter);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:657:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(line, irp_format, data[0], data[1]);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:711:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(line,irp_format,q);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:779:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        p += sprintf(p, "%%imacro %s 0-*", name);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:782:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            p += sprintf(p, "\n%%idefine %s %%{%-u}", TMParameters[j], j + 1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:794:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(line, "..%s",p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:806:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(line, "struc %s", p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:930:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(line, ".%s %s %s", p, q, q+len2+1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:966:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                n = sprintf(line, "%s: istruc %s\n", p, q);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:978:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(line + n, "%s.%s: at .%s, %s %s\n",
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:990:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(line + n, "%s.%s: at .%s, %s %s\n", p, field->name,
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1591:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p, t->text);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1828:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(file2, pb);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1829:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(file2, env);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1835:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(file2, pb);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2566:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(directive, "%%define %s (%s+%d)", arg, StackPointer,
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2663:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(directive, "%%define %s (%s-%d)", local, StackPointer,
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:4817:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buff, sizeof(buff), fmt, arg);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:4819:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buff, fmt, arg);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-preproc.c:209:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(line, "%%line %ld+%d %s", linnum,
data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c:186: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(p+1, *str);
data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c:198: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(rslt, one);
data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c:199: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(rslt+l1, two);
data/yasm-1.3.0/plugins/dbg/dbg-objfmt.c:50:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, N_("could not open temporary file"));
data/yasm-1.3.0/tools/genperf/genperf.c:61:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/yasm-1.3.0/tools/genperf/genperf.c:335:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tmp, "#line %u \"%s\"\n", cur_line, filename);
data/yasm-1.3.0/tools/genperf/genperf.c:380:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tmp, "#line %u \"%s\"\n\n", cur_line, filename);
data/yasm-1.3.0/tools/genperf/genperf.c:501:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "#line %u \"%s\"\n\n", cur_line, filename);
data/yasm-1.3.0/tools/genperf/perfect.c:1099:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(f, final->line[i]);
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:47:12:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    return LoadLibrary(name);
data/yasm-1.3.0/libyasm/file.c:248:9:  [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 (getenv("YASM_TEST_SUITE")) {
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:635:9:  [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 (getenv("YASM_TEST_SUITE"))
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-info.c:339:9:  [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 (getenv("YASM_TEST_SUITE"))
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1266:9:  [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 (getenv("YASM_TEST_SUITE"))
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1546:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            char *p2 = getenv(t->text + 2);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1812:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        env = getenv(p1+1);
data/yasm-1.3.0/frontends/tasm/tasm-options.c:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char optbuf[100];
data/yasm-1.3.0/frontends/tasm/tasm.c:588: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).
    f = fopen(filename, mode);
data/yasm-1.3.0/frontends/tasm/tasm.c:746: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).
    valid_length = atoi(param);
data/yasm-1.3.0/frontends/tasm/tasm.c:828:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(predef, "__YASM_OBJFMT__=");
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:730: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).
    f = fopen(filename, mode);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1231:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(predef, "__YASM_OBJFMT__=");
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1385:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *fmt[2] = {
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1390:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *fmt_noline[2] = {
data/yasm-1.3.0/frontends/yasm/yasm-options.c:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char optbuf[100], optopt[100];
data/yasm-1.3.0/frontends/yasm/yasm-options.c:183:17:  [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(optbuf, ", ");
data/yasm-1.3.0/frontends/yasm/yasm-options.c:193:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(optbuf, "-%c", options[i].sopt);
data/yasm-1.3.0/frontends/yasm/yasm-options.c:197:17:  [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(optbuf, ", ");
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:67:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(path, ".dll");
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:70:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(path, "lib");
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:72:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(path, ".so");
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:76: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(path, ".so");
data/yasm-1.3.0/frontends/yasm/yasm.c:759: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).
    f = fopen(filename, mode);
data/yasm-1.3.0/frontends/yasm/yasm.c:1222:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(predef, "__YASM_OBJFMT__=");
data/yasm-1.3.0/frontends/yasm/yasm.c:1378:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *fmt[2] = {
data/yasm-1.3.0/frontends/yasm/yasm.c:1383:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *fmt_noline[2] = {
data/yasm-1.3.0/genstring.c:49:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(argv[2], "wt");
data/yasm-1.3.0/genstring.c:63:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        in = fopen(argv[i], "rt");
data/yasm-1.3.0/libyasm/bc-align.c:211:13:  [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(*bufp, align->code_fill[maxlen], maxlen);
data/yasm-1.3.0/libyasm/bc-align.c:222:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*bufp, align->code_fill[len], len);
data/yasm-1.3.0/libyasm/bc-data.c:235:21:  [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(*bufp, dv->data.raw.contents, dv->data.raw.len);
data/yasm-1.3.0/libyasm/bc-data.c:391:17:  [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(&dvo->data.raw.contents[len], dv->data.raw.contents,
data/yasm-1.3.0/libyasm/bitvect.c:34:46:  [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.
#define blockdef(name,size)         unsigned char name[size]
data/yasm-1.3.0/libyasm/bitvect.c:35:54:  [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.
#define blocktypedef(name,size)     typedef unsigned char name[size]
data/yasm-1.3.0/libyasm/errwarn.c:101: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 unprint[5];
data/yasm-1.3.0/libyasm/expr.c:1301:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char opstr[8];
data/yasm-1.3.0/libyasm/expr.c:1323:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "//");
data/yasm-1.3.0/libyasm/expr.c:1329:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "%%");
data/yasm-1.3.0/libyasm/expr.c:1349:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "XNOR");
data/yasm-1.3.0/libyasm/expr.c:1352:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "NOR");
data/yasm-1.3.0/libyasm/expr.c:1355:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "<<");
data/yasm-1.3.0/libyasm/expr.c:1358:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, ">>");
data/yasm-1.3.0/libyasm/expr.c:1361:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "||");
data/yasm-1.3.0/libyasm/expr.c:1364:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "&&");
data/yasm-1.3.0/libyasm/expr.c:1370:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "^^");
data/yasm-1.3.0/libyasm/expr.c:1373:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "LXNOR");
data/yasm-1.3.0/libyasm/expr.c:1376:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "LNOR");
data/yasm-1.3.0/libyasm/expr.c:1385:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "<=");
data/yasm-1.3.0/libyasm/expr.c:1388:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, ">=");
data/yasm-1.3.0/libyasm/expr.c:1391:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "!=");
data/yasm-1.3.0/libyasm/expr.c:1394:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, "==");
data/yasm-1.3.0/libyasm/expr.c:1401:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, " WRT ");
data/yasm-1.3.0/libyasm/expr.c:1410:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(opstr, " !UNK! ");
data/yasm-1.3.0/libyasm/file.c:100:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, s->tok, (size_t)(s->lim - s->tok));
data/yasm-1.3.0/libyasm/file.c:123:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char t[4];
data/yasm-1.3.0/libyasm/file.c:249:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buf, "./");
data/yasm-1.3.0/libyasm/file.c:548:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(combine, mode);
data/yasm-1.3.0/libyasm/file.c:561:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(combine, mode);
data/yasm-1.3.0/libyasm/file.c:616:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(np->path, path, len+1);
data/yasm-1.3.0/libyasm/floatnum.c:78:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mantissa[MANT_BYTES];     /* little endian mantissa */
data/yasm-1.3.0/libyasm/floatnum.c:529:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char t[4];
data/yasm-1.3.0/libyasm/floatnum.c:623:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, buf, byte_size*sizeof(unsigned char));
data/yasm-1.3.0/libyasm/floatnum.c:730:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char out[10];
data/yasm-1.3.0/libyasm/genmodule.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *modules[MAXMODULES];
data/yasm-1.3.0/libyasm/genmodule.c:84:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        in = fopen(inc->filename, "rt");
data/yasm-1.3.0/libyasm/genmodule.c:170:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(OUTPUT, "wt");
data/yasm-1.3.0/libyasm/genmodule.c:180:10:  [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).
    in = fopen(argv[1], "rt");
data/yasm-1.3.0/libyasm/hamt.c:347:13:  [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(newnodes, GetSubTrie(node), Map*sizeof(HAMTNode));
data/yasm-1.3.0/libyasm/hamt.c:348:13:  [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(&newnodes[Map+1], &(GetSubTrie(node))[Map],
data/yasm-1.3.0/libyasm/intnum.c:834:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ptr, buf, destsize);
data/yasm-1.3.0/libyasm/intnum.c:1070:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf((char *)s, "%ld", intn->val.l);
data/yasm-1.3.0/libyasm/md5.c:99:25:  [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(p, buf, len);
data/yasm-1.3.0/libyasm/md5.c:102:17:  [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(p, buf, t);
data/yasm-1.3.0/libyasm/md5.c:111:17:  [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(ctx->in, buf, 64);
data/yasm-1.3.0/libyasm/md5.c:119:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->in, buf, len);
data/yasm-1.3.0/libyasm/md5.c:127:25:  [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.
yasm_md5_final(unsigned char digest[16], yasm_md5_context *ctx)
data/yasm-1.3.0/libyasm/md5.c:188:57:  [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.
yasm_md5_transform(unsigned long buf[4], const unsigned char inraw[64])
data/yasm-1.3.0/libyasm/md5.c:286:18:  [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.
        unsigned char checksum[16];
data/yasm-1.3.0/libyasm/md5.h:19:18:  [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.
        unsigned char in[64];
data/yasm-1.3.0/libyasm/md5.h:28:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void yasm_md5_final(unsigned char digest[16], yasm_md5_context *context);
data/yasm-1.3.0/libyasm/md5.h:30:62:  [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.
void yasm_md5_transform(unsigned long buf[4], const unsigned char in[64]);
data/yasm-1.3.0/libyasm/section.c:1197:13:  [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(depspan->backtrace, optd->span->backtrace,
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char result[10];   /* 80 bit result, little endian */
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:84: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 result_msg[1024];
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:89:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char ascii[64], *result;
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:95:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(result_msg, "parser failure");
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:108:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf((char *)ascii+3*i, "%02x ", result[i]);
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:109: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(result_msg, ": ");
data/yasm-1.3.0/libyasm/tests/bitvect_test.c:143: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 failed[1000];
data/yasm-1.3.0/libyasm/tests/combpath_test.c:90: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 failed[1000];
data/yasm-1.3.0/libyasm/tests/combpath_test.c:91:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char failmsg[100];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:43:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mantissa[MANT_BYTES];     /* little endian mantissa - first
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:52:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char result32[4];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:54:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char result64[8];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:56:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char result80[10];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:159: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 ret_msg[1024], result_msg[1024];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:166:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(result_msg, ": incorrect ");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:182: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(result_msg, "mantissa");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:187: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(result_msg, "exponent");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:191: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(result_msg, "sign");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:195: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(result_msg, "flags");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:256:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(ret_msg, ": incorrect return value");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:258:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(result_msg, ": incorrect result generated");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[64];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:265: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(str, ": %d", val);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:273:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[64];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:283:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str+3*i, "%02x ", val[i]);
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:284: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(result_msg, ": ");
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:298:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outval[4];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:316:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outval[4];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:338:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outval[8];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:356:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outval[8];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:378:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outval[10];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:396:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outval[10];
data/yasm-1.3.0/libyasm/tests/floatnum_test.c:411: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 failed[1000];
data/yasm-1.3.0/libyasm/tests/leb128_test.c:72: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 failed[1000];
data/yasm-1.3.0/libyasm/tests/leb128_test.c:73:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char failmsg[100];
data/yasm-1.3.0/libyasm/tests/leb128_test.c:81:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char out[100];
data/yasm-1.3.0/libyasm/tests/splitpath_test.c:99: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 failed[1000];
data/yasm-1.3.0/libyasm/tests/splitpath_test.c:100: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 failmsg[100];
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:77: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 failed[1000];
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:78: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 failmsg[100];
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[256];
data/yasm-1.3.0/libyasm/xstrdup.c:52:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(copy, str, len);
data/yasm-1.3.0/libyasm/xstrdup.c:65:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(copy, str, len);
data/yasm-1.3.0/modules/arch/lc3b/lc3barch.c:88: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.
    static const unsigned char *fill[16] = {
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:145:13:  [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.
   unsigned char bla[16];
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:148:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy( bla, pDst, ( 8 << xmm ) );
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:177:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char temp_dst[16]; \
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:178:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char temp_src[16]; \
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:180:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( temp_dst, pDst, 16 ); \
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:181:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( temp_src, pSrc, 16 ); \
data/yasm-1.3.0/modules/arch/x86/tests/ssse3.c:196:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   int nIter = atoi( pArgv[ 1 ] );
data/yasm-1.3.0/modules/arch/x86/x86arch.c:168: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 strcpu[16];
data/yasm-1.3.0/modules/arch/x86/x86arch.c:169:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(strcpu, "%lu", yasm_intnum_get_uint(intcpu));
data/yasm-1.3.0/modules/arch/x86/x86arch.c:231: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.
    static const unsigned char fill16_1[1] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:233: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.
    static const unsigned char fill16_2[2] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:235: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.
    static const unsigned char fill16_3[3] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:237: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.
    static const unsigned char fill16_4[4] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:239: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.
    static const unsigned char fill16_5[5] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:242: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.
    static const unsigned char fill16_6[6] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:245: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.
    static const unsigned char fill16_7[7] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:248: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.
    static const unsigned char fill16_8[8] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:251: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.
    static const unsigned char fill16_9[9] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:254: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.
    static const unsigned char fill16_10[10] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:257: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.
    static const unsigned char fill16_11[11] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:260: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.
    static const unsigned char fill16_12[12] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:263: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.
    static const unsigned char fill16_13[13] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:266: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.
    static const unsigned char fill16_14[14] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:269: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.
    static const unsigned char fill16_15[15] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:272: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.
    static const unsigned char *fill16[16] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:280: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.
    static const unsigned char fill32_1[1] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:282: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.
    static const unsigned char fill32_2[2] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:284: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.
    static const unsigned char fill32_3[3] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:286: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.
    static const unsigned char fill32_4[4] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:288: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.
    static const unsigned char fill32_5[5] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:291: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.
    static const unsigned char fill32_6[6] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:293: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.
    static const unsigned char fill32_7[7] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:296: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.
    static const unsigned char fill32_8[8] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:302: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.
    static const unsigned char fill32_9[9] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:306: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.
    static const unsigned char fill32_10[10] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:310: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.
    static const unsigned char fill32_11[11] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:314: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.
    static const unsigned char fill32_12[12] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:317: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.
    static const unsigned char fill32_13[13] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:321: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.
    static const unsigned char fill32_14[14] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:328: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.
    static const unsigned char fill32_9[9] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:331: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.
    static const unsigned char fill32_10[10] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:334: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.
    static const unsigned char fill32_11[11] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:337: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.
    static const unsigned char fill32_12[12] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:340: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.
    static const unsigned char fill32_13[13] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:343: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.
    static const unsigned char fill32_14[14] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:347: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.
    static const unsigned char fill32_15[15] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:350: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.
    static const unsigned char *fill32[16] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:359: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.
    static const unsigned char fill32new_3[3] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:361: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.
    static const unsigned char fill32new_4[4] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:363: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.
    static const unsigned char fill32new_5[5] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:365: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.
    static const unsigned char fill32new_6[6] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:367: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.
    static const unsigned char fill32new_7[7] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:369: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.
    static const unsigned char fill32new_8[8] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:372: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.
    static const unsigned char fill32new_9[9] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:377: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.
    static const unsigned char fill32intel_10[10] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:380: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.
    static const unsigned char fill32intel_11[11] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:383: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.
    static const unsigned char fill32intel_12[12] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:386: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.
    static const unsigned char fill32intel_13[13] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:389: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.
    static const unsigned char fill32intel_14[14] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:392: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.
    static const unsigned char fill32intel_15[15] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:400: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.
    static const unsigned char fill32amd_10[10] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:403: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.
    static const unsigned char fill32amd_11[11] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:406: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.
    static const unsigned char fill32amd_12[12] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:409: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.
    static const unsigned char fill32amd_13[13] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:412: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.
    static const unsigned char fill32amd_14[14] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:415: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.
    static const unsigned char fill32amd_15[15] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:419: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.
    static const unsigned char *fill32_intel[16] =
data/yasm-1.3.0/modules/arch/x86/x86arch.c:426: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.
    static const unsigned char *fill32_amd[16] =
data/yasm-1.3.0/modules/arch/x86/x86arch.h:238:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char opcode[3];        /* opcode */
data/yasm-1.3.0/modules/arch/x86/x86expr.c:941:31:  [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 const unsigned char modrm16[16] = {
data/yasm-1.3.0/modules/arch/x86/x86id.c:256:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char modifiers[3];
data/yasm-1.3.0/modules/arch/x86/x86id.c:288:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char opcode[3];
data/yasm-1.3.0/modules/arch/x86/x86id.c:312:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mod_data[3];
data/yasm-1.3.0/modules/arch/x86/x86id.c:1710:12:  [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 cpuname[200];
data/yasm-1.3.0/modules/arch/x86/x86id.c:1723: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(cpuname, " Protected");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1725: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(cpuname, " Undocumented");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1727: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(cpuname, " Obsolete");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1729: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(cpuname, " Privileged");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1732: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(cpuname, " FPU");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1734: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(cpuname, " MMX");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1736: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(cpuname, " SSE");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1738: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(cpuname, " SSE2");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1740: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(cpuname, " SSE3");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1742: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(cpuname, " 3DNow");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1744: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(cpuname, " Cyrix");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1746: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(cpuname, " AMD");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1748: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(cpuname, " SMM");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1750: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(cpuname, " SVM");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1752: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(cpuname, " PadLock");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1754: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(cpuname, " EM64T");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1756: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(cpuname, " SSSE3");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1758: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(cpuname, " SSE4.1");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1760: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(cpuname, " SSE4.2");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1763: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(cpuname, " 186");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1765: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(cpuname, " 286");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1767: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(cpuname, " 386");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1769: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(cpuname, " 486");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1771: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(cpuname, " 586");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1773: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(cpuname, " 686");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1775: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(cpuname, " P3");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1777: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(cpuname, " P4");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1779: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(cpuname, " IA64");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1781: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(cpuname, " K6");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1783: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(cpuname, " Athlon");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1785: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(cpuname, " Hammer");
data/yasm-1.3.0/modules/arch/x86/x86id.c:1799:12:  [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 lcaseid[17];
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-dbgfmt.h:35:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[16];   /* MD5 digest of source file */
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:376: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).
    f = fopen(filename, "rb");
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:448:9:  [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 symname[8];
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:468:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(symname, ".%06u", info->num_lineinfos++);
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:1082:17:  [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(buf, (char *)cvs->args[arg].p, len);
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:1088:17:  [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(buf, (char *)cvs->args[arg].p, len);
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-type.c:653:17:  [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(buf, (const char *)leaf->args[arg].p, len);
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:58: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.
static unsigned char line_opcode_num_operands[DWARF2_LINE_OPCODE_BASE-1] = {
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:811:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, dbgfmt_dwarf2->dirs[i], len);
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:820:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, dbgfmt_dwarf2->filenames[i].filename, len);
data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c:244: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(str, ":F1");
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:752:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(objfmt_bin->map_filename, "wt");
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:1378:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(symname, "section.");
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:909:9:  [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 namenum[30];
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:910:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(namenum, "/%ld", csd->strtab_name);
data/yasm-1.3.0/modules/objfmts/dbg/dbg-objfmt.c:48:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    objfmt_dbg->dbgfile = tmpfile();
data/yasm-1.3.0/modules/objfmts/dbg/dbg-objfmt.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/yasm-1.3.0/modules/objfmts/elf/elf-objfmt.c:596:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[256];
data/yasm-1.3.0/modules/objfmts/elf/elf.c:471:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[SYMTAB_MAXSIZE], *bufp;
data/yasm-1.3.0/modules/objfmts/elf/elf.c:675:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[SHDR_MAXSIZE], *bufp = buf;
data/yasm-1.3.0/modules/objfmts/elf/elf.c:738:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[SHDR_MAXSIZE], *bufp = buf;
data/yasm-1.3.0/modules/objfmts/elf/elf.c:762:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[RELOC_MAXSIZE], *bufp;
data/yasm-1.3.0/modules/objfmts/elf/elf.c:941:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[EHDR_MAXSIZE], *bufp = buf;
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1040:11:  [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.
    const char pad_data[3] = "\0\0\0";
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:323:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&info->rsd->raw_data[info->rsd->size],
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:652:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(localbuf, name, len);
data/yasm-1.3.0/modules/parsers/gas/gas-parse-intel.c:72:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(line, parser_gas->s.tok, length);
data/yasm-1.3.0/modules/parsers/gas/gas-parse-intel.c:73:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(line + length, parser_gas->linepos, parser_gas->lineleft);
data/yasm-1.3.0/modules/parsers/gas/gas-parse-intel.c:78:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(line, parser_gas->s.tok, length);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:441:13:  [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(pp->expr.symbol, str, symbol_length);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:575:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg1[512], arg2[512];
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:599:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg1[512], arg2[512];
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:638:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[MAXPATHLEN];
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:803:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(macro->name, args, end - args);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:815:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(macro->params[macro->num_params - 1], args, end - args);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:930:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(line + cursor - len, value, value_length);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1093: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 value[64];
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1094:36:  [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.
                int value_length = sprintf(value, "%ld", eval_expr(pp, tokval.t_charptr));
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1102:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(line + cursor - len, value, value_length);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1178:9:  [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 buf1[1024];
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1236:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(in_filename, "r");
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1366:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(name, macronameval, eq - macronameval);
data/yasm-1.3.0/modules/preprocs/nasm/genversion.c:56:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(argv[1], "wt");
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:584:17:  [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(line, "%ifdef BOGUS");
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:600:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(line + 1, p, len + 1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:640:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(p, "%%endm");
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:676:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, "%rep", 4);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:750:13:  [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(TMParameters[i], p, len2);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:962:29:  [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(tasm_param,"%%{%d}",n+1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:997:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(line + n, "iend");
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1058: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).
        lineno = atoi(fname);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1064:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(line, "%%line %d %.*s", lineno, (int)fnlen, fname);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1561: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 buffer[40];
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1565:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "..@%lu.", ctx->number);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2498: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 *arg, directive[256];
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2594: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 *local, directive[256];
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2669:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(directive, "%%assign %%$localsize %%$localsize+%d",
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3860:13:  [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 tmpbuf[30];
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3879:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    int end = atoi(second_text+1)-1;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3882:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    n = atoi(t->text + 1)-1;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3927:29:  [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(tmpbuf, "%ld", mac->nparam);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3932:29:  [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(tmpbuf, "..@%lu.", mac->unique);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3936:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            n = atoi(t->text + 2) - 1;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3970:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            n = atoi(t->text + 2) - 1;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3994:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            n = atoi(t->text + 1) - 1;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:4809:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[1024];
data/yasm-1.3.0/modules/preprocs/nasm/nasm-preproc.c:143:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(in_filename, "r");
data/yasm-1.3.0/modules/preprocs/raw/raw-preproc.c:52:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(in_filename, "r");
data/yasm-1.3.0/plugins/dbg/dbg-objfmt.c:48:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    objfmt_dbg->dbgfile = tmpfile();
data/yasm-1.3.0/plugins/dbg/dbg-objfmt.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/yasm-1.3.0/test_hd.c:42:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bfile = fopen(argv[1], "rb");
data/yasm-1.3.0/tools/genmacro/genmacro.c:52:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(argv[1], "wt");
data/yasm-1.3.0/tools/genmacro/genmacro.c:66:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        in = fopen(argv[i], "rt");
data/yasm-1.3.0/tools/genperf/genperf.c:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[10][80];           /* buffer for generated code */
data/yasm-1.3.0/tools/genperf/genperf.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *buf2[10];             /* also for generated code */
data/yasm-1.3.0/tools/genperf/genperf.c:255:12:  [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 line[1024], tmp[1024];
data/yasm-1.3.0/tools/genperf/genperf.c:256:12:  [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 struct_name[128] = "";
data/yasm-1.3.0/tools/genperf/genperf.c:257:12:  [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 lookup_function_name[128] = "in_word_set";
data/yasm-1.3.0/tools/genperf/genperf.c:258:12:  [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 language[16] = "";
data/yasm-1.3.0/tools/genperf/genperf.c:259:12:  [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 delimiters[16] = ",\r\n";
data/yasm-1.3.0/tools/genperf/genperf.c:260:12:  [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 name[128];
data/yasm-1.3.0/tools/genperf/genperf.c:261:12:  [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 filename[768];
data/yasm-1.3.0/tools/genperf/genperf.c:278:10:  [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).
    in = fopen(argv[1], "rt");
data/yasm-1.3.0/tools/genperf/genperf.c:513:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(argv[2], "wt");
data/yasm-1.3.0/tools/genperf/perfect.c:216: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(final->line[0], 
data/yasm-1.3.0/tools/genperf/perfect.c:218: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(final->line[1], 
data/yasm-1.3.0/tools/genperf/perfect.c:220: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(final->line[2],
data/yasm-1.3.0/tools/genperf/perfect.c:222: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(final->line[3], 
data/yasm-1.3.0/tools/genperf/perfect.c:238: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(final->line[0], 
data/yasm-1.3.0/tools/genperf/perfect.c:242:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(final->line[1], "  rsl = 0;\n");
data/yasm-1.3.0/tools/genperf/perfect.c:246:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(final->line[1], "  rsl = ((val>>%ld)^tab[val&0x%lx]);\n",
data/yasm-1.3.0/tools/genperf/perfect.c:251:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(final->line[1], "  rsl = ((val>>%ld)^scramble[tab[val&0x%lx]]);\n",
data/yasm-1.3.0/tools/genperf/perfect.c:289: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(final->line[0], "  unsigned long rsl = 0;\n");
data/yasm-1.3.0/tools/genperf/perfect.c:293: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(final->line[0], "  unsigned long rsl = ((val & 0x%lx) ^ tab[val >> %ld]);\n",
data/yasm-1.3.0/tools/genperf/perfect.c:298: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(final->line[0], "  unsigned long rsl = ((val & 0x%lx) ^ scramble[tab[val >> %ld]]);\n",
data/yasm-1.3.0/tools/genperf/perfect.c:346: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(final->line[0], "  unsigned long rsl = 0;\n");
data/yasm-1.3.0/tools/genperf/perfect.c:663: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(final->line[0], "  unsigned long rsl = a;\n");
data/yasm-1.3.0/tools/genperf/perfect.c:667: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(final->line[0], "  unsigned long rsl = (a ^ tab[b]);\n");
data/yasm-1.3.0/tools/genperf/perfect.c:671: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(final->line[0], "  unsigned long rsl = (a ^ scramble[tab[b]]);\n");
data/yasm-1.3.0/tools/genperf/perfect.c:999:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen("phash.c", "w");
data/yasm-1.3.0/tools/genperf/perfect.c:1126:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char      buf[10][80];                        /* buffer for generated code */
data/yasm-1.3.0/tools/genperf/perfect.c:1127: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     *buf2[10];                             /* also for generated code */
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:43: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(s->bot, s->tok, s->lim - s->tok);
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:52: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(buf, s->tok, s->lim - s->tok);
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:536:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval.extop.minsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:537:30:  [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).
				  yylval.extop.maxsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:547:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval.extop.minsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:563:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval.extop.minsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/bootstrap/scanner.c:564:55:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				  yylval.extop.maxsize = MAX(yylval.extop.minsize,atoi(strchr((char *)s->tok, ',')+1));
data/yasm-1.3.0/tools/re2c/code.c:872:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s->go.span, span, nSpans*sizeof(Span));
data/yasm-1.3.0/tools/re2c/code.c:905:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    tmpo = tmpfile();
data/yasm-1.3.0/tools/re2c/dfa.c:184:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char*) s->go.span, (char*) span, s->go.nSpans*sizeof(Span));
data/yasm-1.3.0/tools/re2c/dfa.c:244:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s->kernel, kernel, (kCount+1)*sizeof(Ins*));
data/yasm-1.3.0/tools/re2c/examples/rexx/scanio.c:7:13:  [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(s->bot, s->tok, len);
data/yasm-1.3.0/tools/re2c/examples/rexx/scanio.c:10:17:  [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(s->eot, cursor, len);
data/yasm-1.3.0/tools/re2c/examples/rexx/scanio.c:14:13:  [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(s->bot, s->tok, s->lim - s->tok);
data/yasm-1.3.0/tools/re2c/examples/rexx/scanio.c:23:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, s->bot, s->lim - s->bot);
data/yasm-1.3.0/tools/re2c/globals.h:19: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.
extern unsigned char asc2ebc[256];
data/yasm-1.3.0/tools/re2c/globals.h:20: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.
extern unsigned char ebc2asc[256];
data/yasm-1.3.0/tools/re2c/main.c:83:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(copy, str, len);
data/yasm-1.3.0/tools/re2c/main.c:159:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if((f = fopen(fileName, "rt")) == NULL){
data/yasm-1.3.0/tools/re2c/main.c:173:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	output = fopen(outputFileName, "wt");
data/yasm-1.3.0/tools/re2c/scanner.c:43: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(s->bot, s->tok, s->lim - s->tok);
data/yasm-1.3.0/tools/re2c/scanner.c:52: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(buf, s->tok, s->lim - s->tok);
data/yasm-1.3.0/tools/re2c/scanner.c:536:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval.extop.minsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/scanner.c:537:30:  [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).
				  yylval.extop.maxsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/scanner.c:547:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval.extop.minsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/scanner.c:563:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval.extop.minsize = atoi((char *)s->tok+1);
data/yasm-1.3.0/tools/re2c/scanner.c:564:55:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				  yylval.extop.maxsize = MAX(yylval.extop.minsize,atoi(strchr((char *)s->tok, ',')+1));
data/yasm-1.3.0/tools/re2c/substr.c:25:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(r->str, s->str, s->len);
data/yasm-1.3.0/tools/re2c/substr.c:32:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(r->str, s->str, s->len);
data/yasm-1.3.0/tools/re2c/translate.c:3: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.
unsigned char asc2asc[256] = {
data/yasm-1.3.0/tools/re2c/translate.c:25: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.
unsigned char asc2ebc[256] = { /* Based on ISO 8859/1 and Code Page 37 */
data/yasm-1.3.0/tools/re2c/translate.c:44: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.
unsigned char ebc2asc[256] = { /* Based on ISO 8859/1 and Code Page 37 */
data/yasm-1.3.0/frontends/tasm/tasm-options.c:62:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(options[i].opt);
data/yasm-1.3.0/frontends/tasm/tasm.c:826: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).
    predef = yasm_xmalloc(strlen("__YASM_OBJFMT__=")
data/yasm-1.3.0/frontends/tasm/tasm.c:827:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          + strlen(objfmt_keyword) + 1);
data/yasm-1.3.0/frontends/tasm/tasm.c:891: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).
    outlen = strlen(orig) + 2;
data/yasm-1.3.0/frontends/tasm/tasm.c:893: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).
        outlen += strlen(ext) + 1;
data/yasm-1.3.0/frontends/tasm/tasm.c:894: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).
    deflen = strlen(def) + 1;
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:929:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i=0; i<strlen(objfmt_keyword); i++)
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:984:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    listdir_pathname = yasm_xmalloc(strlen(param)+2);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1001:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    objdir_pathname = yasm_xmalloc(strlen(param)+2);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1018:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mapdir_pathname = yasm_xmalloc(strlen(param)+2);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1229: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).
    predef = yasm_xmalloc(strlen("__YASM_OBJFMT__=")
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1230:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          + strlen(objfmt_keyword) + 1);
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1298: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).
    outlen = strlen(orig) + 2;
data/yasm-1.3.0/frontends/vsyasm/vsyasm.c:1300: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).
        outlen += strlen(ext) + 1;
data/yasm-1.3.0/frontends/yasm/yasm-options.c:75:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                (optlen = strlen(options[i].lopt))) == 0) {
data/yasm-1.3.0/frontends/yasm/yasm-options.c:180:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                shortopt_len = strlen(optbuf);
data/yasm-1.3.0/frontends/yasm/yasm-options.c:189:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                longopt_len = strlen(optbuf);
data/yasm-1.3.0/frontends/yasm/yasm-options.c:194:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                shortopt_len = strlen(optbuf);
data/yasm-1.3.0/frontends/yasm/yasm-options.c:201:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                longopt_len = strlen(optbuf);
data/yasm-1.3.0/frontends/yasm/yasm-plugin.c:64: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).
    path = yasm_xmalloc(strlen(name)+10);
data/yasm-1.3.0/frontends/yasm/yasm.c:308: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).
        totlen = strlen(obj_filename)+2+strlen(in_filename);
data/yasm-1.3.0/frontends/yasm/yasm.c:308:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        totlen = strlen(obj_filename)+2+strlen(in_filename);
data/yasm-1.3.0/frontends/yasm/yasm.c:946:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i=0; i<strlen(objfmt_keyword); i++)
data/yasm-1.3.0/frontends/yasm/yasm.c:1220: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).
    predef = yasm_xmalloc(strlen("__YASM_OBJFMT__=")
data/yasm-1.3.0/frontends/yasm/yasm.c:1221:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          + strlen(objfmt_keyword) + 1);
data/yasm-1.3.0/frontends/yasm/yasm.c:1285: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).
    outlen = strlen(orig) + 2;
data/yasm-1.3.0/frontends/yasm/yasm.c:1287: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).
        outlen += strlen(ext) + 1;
data/yasm-1.3.0/frontends/yasm/yasm.c:1288: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).
    deflen = strlen(def) + 1;
data/yasm-1.3.0/genstring.c:75: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).
            len = strlen(strp);
data/yasm-1.3.0/libyasm/bitvect.c:1503: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).
        length = strlen((char *) string);
data/yasm-1.3.0/libyasm/bitvect.c:1544: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).
        length = strlen((char *) string);
data/yasm-1.3.0/libyasm/bitvect.c:1619: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).
        length = strlen((char *) string);
data/yasm-1.3.0/libyasm/bitvect.c:1836: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).
        length = strlen((char *) string);
data/yasm-1.3.0/libyasm/bitvect.c:1941: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).
        length = strlen((char *) string);
data/yasm-1.3.0/libyasm/expr.c:1311:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "+");
data/yasm-1.3.0/libyasm/expr.c:1314:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "-");
data/yasm-1.3.0/libyasm/expr.c:1317:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "*");
data/yasm-1.3.0/libyasm/expr.c:1320:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "/");
data/yasm-1.3.0/libyasm/expr.c:1326:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "%");
data/yasm-1.3.0/libyasm/expr.c:1340:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "|");
data/yasm-1.3.0/libyasm/expr.c:1343:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "&");
data/yasm-1.3.0/libyasm/expr.c:1346:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "^");
data/yasm-1.3.0/libyasm/expr.c:1367:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "!");
data/yasm-1.3.0/libyasm/expr.c:1379:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, "<");
data/yasm-1.3.0/libyasm/expr.c:1382:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, ">");
data/yasm-1.3.0/libyasm/expr.c:1404:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(opstr, ":");
data/yasm-1.3.0/libyasm/file.c:264: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).
    size = strlen(buf);
data/yasm-1.3.0/libyasm/file.c:293:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        out = yasm_xmalloc(strlen(to)+1);
data/yasm-1.3.0/libyasm/file.c:307:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    out = yasm_xmalloc(pathlen+strlen(to)+2);   /* worst case maximum len */
data/yasm-1.3.0/libyasm/file.c:378:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        out = yasm_xmalloc(strlen(to)+1);
data/yasm-1.3.0/libyasm/file.c:396:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    out = yasm_xmalloc(pathlen+strlen(to)+2);   /* worst case maximum len */
data/yasm-1.3.0/libyasm/file.c:475: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).
    lth = len = strlen(path);
data/yasm-1.3.0/libyasm/file.c:613:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(path);
data/yasm-1.3.0/libyasm/genmodule.c:73: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).
    len = strlen(argv[2]);
data/yasm-1.3.0/libyasm/genmodule.c:94: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).
            len = strlen(str);
data/yasm-1.3.0/libyasm/genmodule.c:124:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                inc->filename = malloc(strlen(strp)+1);
data/yasm-1.3.0/libyasm/intnum.c:217:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(str);
data/yasm-1.3.0/libyasm/intnum.c:262:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(str);
data/yasm-1.3.0/libyasm/md5.c:299:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yasm_md5_update (&context, argv[j], strlen (argv[j]));
data/yasm-1.3.0/libyasm/symrec.c:498:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *name = yasm_xmalloc(strlen(object->global_prefix) +
data/yasm-1.3.0/libyasm/symrec.c:499:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(sym->name) +
data/yasm-1.3.0/libyasm/symrec.c:500:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(object->global_suffix) + 1);
data/yasm-1.3.0/libyasm/tests/uncstring_test.c:88:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(str, test->input, test->in_len);
data/yasm-1.3.0/libyasm/xstrdup.c:50: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(str) + 1;
data/yasm-1.3.0/modules/arch/x86/x86arch.c:160:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yasm_x86__parse_cpu(arch_x86, s, strlen(s));
data/yasm-1.3.0/modules/arch/x86/x86arch.c:170:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yasm_x86__parse_cpu(arch_x86, strcpu, strlen(strcpu));
data/yasm-1.3.0/modules/arch/x86/x86id.c:692:69:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        for (i = 0, op = use_ops[0]; op && i<info->num_operands && !mismatch;
data/yasm-1.3.0/modules/arch/x86/x86id.c:903:17:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (mismatch)
data/yasm-1.3.0/modules/arch/x86/x86id.c:946:17:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (mismatch)
data/yasm-1.3.0/modules/arch/x86/x86id.c:959:17:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (mismatch)
data/yasm-1.3.0/modules/arch/x86/x86id.c:989:14:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!mismatch) {
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:410:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen(str)));
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:965:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                slen = (unsigned long)strlen((const char *)cvs->args[arg++].p);
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:970:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    (unsigned long)strlen((const char *)cvs->args[arg++].p) + 1;
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:1079: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).
                len = strlen((char *)cvs->args[arg].p);
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-symline.c:1087: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).
                len = strlen((char *)cvs->args[arg].p)+1;
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-type.c:597:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                slen = (unsigned long)strlen((const char *)leaf->args[arg++].p);
data/yasm-1.3.0/modules/dbgfmts/codeview/cv-type.c:650: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).
                len = strlen((const char *)leaf->args[arg].p);
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-info.c:253:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen(str)));
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:724:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sppbc->len += (unsigned long)strlen(dbgfmt_dwarf2->dirs[i])+1;
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:736:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (unsigned long)strlen(dbgfmt_dwarf2->filenames[i].filename) + 1 +
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:810: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(dbgfmt_dwarf2->dirs[i])+1;
data/yasm-1.3.0/modules/dbgfmts/dwarf2/dwarf2-line.c:819: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(dbgfmt_dwarf2->filenames[i].filename)+1;
data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c:185:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bc->len = (unsigned long)(strlen(str)+1);
data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c:242:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        str = yasm_xmalloc(strlen(name)+4);
data/yasm-1.3.0/modules/dbgfmts/stabs/stabs-dbgfmt.c:451: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).
    buf += strlen(str)+1;
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:622: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).
        for (i=0; i<(65-strlen(s)); i++)
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:719: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).
            for (i=0; i<(65-strlen(s)); i++)
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:1376:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *symname = yasm_xmalloc(8+strlen(sectname)+strlen(suffix)+1);
data/yasm-1.3.0/modules/objfmts/bin/bin-objfmt.c:1376:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *symname = yasm_xmalloc(8+strlen(sectname)+strlen(suffix)+1);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:774:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t namelen = strlen(yasm_section_get_name(sect));
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:875: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).
    len = strlen(name);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:908: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(yasm_section_get_name(sect)) > 8) {
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:911:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)localbuf, namenum, 8);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:913:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)localbuf, yasm_section_get_name(sect), 8);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1024: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(name);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1093:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy((char *)localbuf, name, 8);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1114: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).
                    len = strlen(csymd->aux[0].fname);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1120:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy((char *)localbuf, csymd->aux[0].fname, 14);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1147: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).
        size_t len = strlen(name);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1158: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).
                    len = strlen(csymd->aux[0].fname);
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1349:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i=0; i<strlen(s); i++) {
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1584: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(sectname) > 8 && !objfmt_coff->win32) {
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1715:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen("-export:")));
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1717:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen(symname)));
data/yasm-1.3.0/modules/objfmts/coff/coff-objfmt.c:1868:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        yasm_dv_create_string(yasm__xstrdup(s), strlen(s)));
data/yasm-1.3.0/modules/objfmts/elf/elf-objfmt.c:961:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (data->stdsect && strlen(s) == 0) {
data/yasm-1.3.0/modules/objfmts/elf/elf-objfmt.c:967:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i=0; i<strlen(s); i++) {
data/yasm-1.3.0/modules/objfmts/elf/elf-objfmt.c:1273:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        yasm_dv_create_string(yasm__xstrdup(s), strlen(s)));
data/yasm-1.3.0/modules/objfmts/elf/elf.c:218:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        entry->index = last->index + (unsigned long)strlen(last->str) + 1;
data/yasm-1.3.0/modules/objfmts/elf/elf.c:251:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    entry->index = last->index + (unsigned long)strlen(last->str) + 1;
data/yasm-1.3.0/modules/objfmts/elf/elf.c:288:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = 1 + strlen(entry->str);
data/yasm-1.3.0/modules/objfmts/elf/elf.c:715:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t prepend_length = strlen(elf_march->reloc_section_prefix);
data/yasm-1.3.0/modules/objfmts/elf/elf.c:716:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *sectname = yasm_xmalloc(prepend_length + strlen(basesect) + 1);
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:743:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char *)localbuf, msd->sectname, 16);
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:746:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char *)localbuf, msd->segname, 16);
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:817:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sym_data->length = (unsigned long)strlen(name) + 1;
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:979:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen(name);
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1417: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).
            if (strlen(sectname) > 16)
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1421: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).
            if (strlen(s) > 16)
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1432: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).
            if (strlen(sectname) > 16)
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1478: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).
    realname = yasm_xmalloc(strlen("LC_SEGMENT") + 1 + strlen(data.f_segname) + 1 +
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1478:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    realname = yasm_xmalloc(strlen("LC_SEGMENT") + 1 + strlen(data.f_segname) + 1 +
data/yasm-1.3.0/modules/objfmts/macho/macho-objfmt.c:1479:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen(f_sectname) + 1);
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:559: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).
    len = strlen(name);
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:682: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).
    if (fseek(f, (long)strlen(RDF_MAGIC)+8, SEEK_SET) < 0) {
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:691: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(cur->str)+1;
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:702: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(cur->str)+1;
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:777:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(RDF_MAGIC, strlen(RDF_MAGIC), 1, f);
data/yasm-1.3.0/modules/objfmts/rdf/rdf-objfmt.c:1019: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(str->str) > MODLIB_NAME_MAX-1) {
data/yasm-1.3.0/modules/objfmts/xdf/xdf-objfmt.c:453: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).
        size_t len = strlen(name);
data/yasm-1.3.0/modules/objfmts/xdf/xdf-objfmt.c:527: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).
        size_t len = strlen(name);
data/yasm-1.3.0/modules/parsers/gas/gas-parse.c:1503:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        parser_gas->locallabel_base_len = strlen(name);
data/yasm-1.3.0/modules/parsers/nasm/nasm-parse.c:78:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                              strlen(segreg), &ea->segreg);
data/yasm-1.3.0/modules/parsers/nasm/nasm-parse.c:226:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        parser_nasm->s.lim = line + strlen((char *)line)+1;
data/yasm-1.3.0/modules/parsers/nasm/nasm-parse.c:1503:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        parser_nasm->locallabel_base_len = strlen(name);
data/yasm-1.3.0/modules/parsers/nasm/nasm-parse.c:1670:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    parser_nasm->s.lim = instr + strlen(sinstr) + 1;
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:85: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).
    size_t _len = strlen(s);                        \
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:103:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cmdline = p = yasm_xmalloc(strlen(CPP_PROG)+CMDLINE_SIZE);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:106: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).
    p += strlen(CPP_PROG);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:265: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).
        p += strlen(p);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:305:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ch = fgetc(pp->f_deps);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:307:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fgetc(pp->f_deps);      /* Discard space after colon. */
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:310:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ch = fgetc(pp->f_deps);
data/yasm-1.3.0/modules/preprocs/cpp/cpp-preproc.c:317:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = fgetc(pp->f_deps);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:187:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(to, arg, len);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:213: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).
        p += strlen(p);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:281:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dest, src, len);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:873: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).
                *length = strlen(default_value);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:889:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *length = (default_value ? strlen(default_value) : 0);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:901: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).
        int line_length = strlen(macro->lines[i]);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:912:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       : strlen(macro->params[j]));
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:929:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            memmove(line + cursor - len + value_length, line + cursor, strlen(line + cursor) + 1);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1071:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(cstart, cend + 2, strlen(cend + 2) + 1);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1082: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_length = strlen(line);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1092: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).
                int len = strlen(tokval.t_charptr);
data/yasm-1.3.0/modules/preprocs/gas/gas-preproc.c:1101:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memmove(line + cursor - len + value_length, line + cursor, strlen(line + cursor) + 1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:574: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).
            len = strlen(p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:592: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).
                len = strlen(p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:630:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len += 6 + 1 + strlen(*parameter) + 1;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:655:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            line = nasm_malloc(strlen(irp_format) - 4 + strlen(data[0])
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:655: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).
            line = nasm_malloc(strlen(irp_format) - 4 + strlen(data[0])
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:656:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   + strlen(data[1]));
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:710:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        line = nasm_malloc(strlen(irp_format) - 2 + len2 + 1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:775:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += 1 + 6 + 1 + strlen(name) + 1 + 3; /* macro definition */
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:880: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).
                if (strlen(assume->segreg) == (size_t)(q-p) &&
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:929:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        line = nasm_malloc(1 + len + 1 + len2 + 1 + strlen(q+len2+1) + 1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:974: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).
                    m = strlen(p) + 1 + strlen(field->name)*2 + 8 +
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:974:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    m = strlen(p) + 1 + strlen(field->name)*2 + 8 +
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:975:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(field->type) + 1 + strlen(r+1) + 2;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:975:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(field->type) + 1 + strlen(r+1) + 2;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:986: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).
                    m = strlen(p) + 1 + strlen(field->name)*2 + 8 +
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:986:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    m = strlen(p) + 1 + strlen(field->name)*2 + 8 +
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:987:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(field->type) + 1 + (r ? strlen(r+1) : 1) + 2;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:987:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(field->type) + 1 + (r ? strlen(r+1) : 1) + 2;
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1025:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int lenp = strlen(prev->text);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1026:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int lenn = strlen(next->text);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1028:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(prev->text + lenp, next->text, lenn + 1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1211: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).
        p += strlen(p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1511: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).
            txtlen = strlen(text);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1513:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(t->text, text, txtlen);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1577: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).
            len += strlen(t->text);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1592: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).
            p += strlen(p);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1665: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).
        l = strlen(r);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1823:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            file2 = nasm_malloc(strlen(file)+strlen(env)+1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1823:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            file2 = nasm_malloc(strlen(file)+strlen(env)+1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1826:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            file2 = nasm_realloc(file2, strlen(file2)+strlen(env)+1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:1826:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            file2 = nasm_realloc(file2, strlen(file2)+strlen(env)+1);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2107:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    tt->text[strlen(tt->text) - 1] = t->text[0];
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2723: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).
                p[strlen(p) - 1] = '\0';        /* remove the trailing quote */
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:2865: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).
                p[strlen(p) - 1] = '\0';        /* remove the trailing quote */
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3499: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).
                yasm_intnum_create_uint((unsigned long)(strlen(t->text) - 2)));
data/yasm-1.3.0/modules/preprocs/nasm/nasm-pp.c:3601:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    && yasm_intnum_get_uint(intn) < strlen(t->text) - 1)
data/yasm-1.3.0/modules/preprocs/nasm/nasm-preproc.c:208:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        line = yasm_xmalloc(40+strlen(preproc_nasm->file_name));
data/yasm-1.3.0/modules/preprocs/nasm/nasm-preproc.c:251:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf, name, max_size);
data/yasm-1.3.0/modules/preprocs/nasm/nasm-preproc.c:254: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).
            return strlen(buf);
data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c:177: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).
    size_t ln=strlen(*str);
data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c:196: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).
    size_t l1=strlen(one);
data/yasm-1.3.0/modules/preprocs/nasm/nasmlib.c:197: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).
    rslt = nasm_malloc(l1+strlen(two)+1);
data/yasm-1.3.0/modules/preprocs/raw/raw-preproc.c:93:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p += strlen(p);
data/yasm-1.3.0/test_hd.c:49:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = fgetc(bfile)) != EOF)
data/yasm-1.3.0/tools/genmacro/genmacro.c:102: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).
            len = strlen(strp);
data/yasm-1.3.0/tools/genperf/genperf.c:190: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).
        k->len_k = (ub4)strlen(kw->name);
data/yasm-1.3.0/tools/genperf/perfect.c:979: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).
      mykey->len_k  = (ub4)(strlen((char *)mykey->name_k)-1);
data/yasm-1.3.0/tools/re2c/actions.c:571:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ss = SubStr_new("[\\000-\\377]", strlen("[\\000-\\377]"));
data/yasm-1.3.0/tools/re2c/actions.c:588:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    SubStr *ss = SubStr_new("[\\000-\\377]", strlen("[\\000-\\377]"));
data/yasm-1.3.0/tools/re2c/examples/rexx/scanio.c:36:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((cnt = read(ScanCBIO.u.f.fd, (char*) s->lim, 512)) != 512)
data/yasm-1.3.0/tools/re2c/main.c:81:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;
data/yasm-1.3.0/tools/re2c/main.c:179:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(outputFileName);
data/yasm-1.3.0/tools/re2c/mbo_getopt.c:97: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).
		arg_start = 2 + strlen(opts[opts_idx].opt_name);

ANALYSIS SUMMARY:

Hits = 709
Lines analyzed = 78541 in approximately 2.22 seconds (35434 lines/second)
Physical Source Lines of Code (SLOC) = 56713
Hits@level = [0] 665 [1] 210 [2] 360 [3]   7 [4] 132 [5]   0
Hits@level+ = [0+] 1374 [1+] 709 [2+] 499 [3+] 139 [4+] 132 [5+]   0
Hits/KSLOC@level+ = [0+] 24.2272 [1+] 12.5015 [2+] 8.79869 [3+] 2.45094 [4+] 2.32751 [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.