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/msitools-0.100/libmsi/alter.c
Examining data/msitools-0.100/libmsi/where.c
Examining data/msitools-0.100/libmsi/insert.c
Examining data/msitools-0.100/libmsi/list.h
Examining data/msitools-0.100/libmsi/msipriv.h
Examining data/msitools-0.100/libmsi/streams.c
Examining data/msitools-0.100/libmsi/libmsi-record.c
Examining data/msitools-0.100/libmsi/libmsi-enums.c
Examining data/msitools-0.100/libmsi/libmsi-istream.c
Examining data/msitools-0.100/libmsi/libmsi-query.c
Examining data/msitools-0.100/libmsi/libmsi-summary-info.c
Examining data/msitools-0.100/libmsi/delete.c
Examining data/msitools-0.100/libmsi/distinct.c
Examining data/msitools-0.100/libmsi/drop.c
Examining data/msitools-0.100/libmsi/update.c
Examining data/msitools-0.100/libmsi/select.c
Examining data/msitools-0.100/libmsi/tokenize.c
Examining data/msitools-0.100/libmsi/string.c
Examining data/msitools-0.100/libmsi/libmsi-istream.h
Examining data/msitools-0.100/libmsi/debug.h
Examining data/msitools-0.100/libmsi/libmsi-database.c
Examining data/msitools-0.100/libmsi/create.c
Examining data/msitools-0.100/libmsi/query.h
Examining data/msitools-0.100/libmsi/debug.c
Examining data/msitools-0.100/libmsi/sql-parser.c
Examining data/msitools-0.100/libmsi/sql-parser.h
Examining data/msitools-0.100/libmsi/storages.c
Examining data/msitools-0.100/libmsi/table.c
Examining data/msitools-0.100/libcommon.h
Examining data/msitools-0.100/tests/test.h
Examining data/msitools-0.100/tests/testdatabase.c
Examining data/msitools-0.100/tests/testsuminfo.c
Examining data/msitools-0.100/tests/testrecord.c
Examining data/msitools-0.100/tools/sqldelim.c
Examining data/msitools-0.100/tools/msiinfo.c
Examining data/msitools-0.100/tools/msibuild.c
Examining data/msitools-0.100/tools/wixl/msi-default.c
Examining data/msitools-0.100/tools/wixl/wixl.c
Examining data/msitools-0.100/tools/wixl/util.c
Examining data/msitools-0.100/tools/wixl/preprocessor.c
Examining data/msitools-0.100/tools/wixl/msi.c
Examining data/msitools-0.100/tools/wixl/wixl-heat.c
Examining data/msitools-0.100/tools/wixl/wix.c
Examining data/msitools-0.100/tools/wixl/builder.c
Examining data/msitools-0.100/tools/msiextract.c
Examining data/msitools-0.100/tools/sqldelim.h
Examining data/msitools-0.100/wixl.h
Examining data/msitools-0.100/include/libmsi-summary-info.h
Examining data/msitools-0.100/include/libmsi-enums.h
Examining data/msitools-0.100/include/libmsi.h
Examining data/msitools-0.100/include/libmsi-database.h
Examining data/msitools-0.100/include/libmsi-query.h
Examining data/msitools-0.100/include/libmsi-record.h
Examining data/msitools-0.100/include/libmsi-types.h

FINAL RESULTS:

data/msitools-0.100/libmsi/debug.c:21: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_ret[i], ret);
data/msitools-0.100/libmsi/debug.h:62:38:  [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.
#define wine_dbg_printf(format,...) (printf(format, ## __VA_ARGS__), fflush(stdout))
data/msitools-0.100/libmsi/libmsi-database.c:632: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, db->path );
data/msitools-0.100/libmsi/libmsi-database.c:776:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(prelude, create_fmt, table);
data/msitools-0.100/libmsi/libmsi-database.c:819: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(extra, type_notnull);
data/msitools-0.100/libmsi/libmsi-database.c:822: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(extra, localizable);
data/msitools-0.100/libmsi/libmsi-database.c:824:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(size, size_fmt, ptr);
data/msitools-0.100/libmsi/libmsi-database.c:827: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(extra, type_notnull);
data/msitools-0.100/libmsi/libmsi-database.c:831:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(size, size_fmt, ptr);
data/msitools-0.100/libmsi/libmsi-database.c:834: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(extra, type_notnull);
data/msitools-0.100/libmsi/libmsi-database.c:849: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(extra, type_notnull);
data/msitools-0.100/libmsi/libmsi-database.c:860:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(expanded, column_fmt, columns_data[i], type, size, extra, comma);
data/msitools-0.100/libmsi/libmsi-database.c:871: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(columns, expanded);
data/msitools-0.100/libmsi/libmsi-database.c:897:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(ptr, key_fmt, primary_keys[i]);
data/msitools-0.100/libmsi/libmsi-database.c:909:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(postlude, postlude_fmt, keys);
data/msitools-0.100/libmsi/libmsi-database.c:939: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(create_sql, prelude);
data/msitools-0.100/libmsi/libmsi-database.c:940: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(create_sql, columns_sql);
data/msitools-0.100/libmsi/libmsi-database.c:941: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(create_sql, postlude);
data/msitools-0.100/libmsi/libmsi-database.c:1289:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf( data, fmt, codepage );
data/msitools-0.100/libmsi/libmsi-query.c:540:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf( &szType[1], fmt, (type&0xff) );
data/msitools-0.100/libmsi/libmsi-record.c:410:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buffer, szFormat, rec->fields[field].u.iVal);
data/msitools-0.100/libmsi/libmsi-summary-info.c:847: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( prop->strval, szValue );
data/msitools-0.100/libmsi/sql-parser.c:910:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/msitools-0.100/libmsi/sql-parser.c:2583: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( ret, list );
data/msitools-0.100/libmsi/sql-parser.c:2584: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( ret, space );
data/msitools-0.100/libmsi/sql-parser.c:2585: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( ret, table );
data/msitools-0.100/libmsi/table.c:581: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( table->name, name );
data/msitools-0.100/libmsi/table.c:747: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( table->name, name );
data/msitools-0.100/libmsi/table.c:1073: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( stname, tv->name );
data/msitools-0.100/libmsi/table.c:1103:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    sprintf( number, fmt, ival-0x8000 );
data/msitools-0.100/libmsi/table.c:1106:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    sprintf( number, fmt, ival^0x80000000 );
data/msitools-0.100/libmsi/table.c:1125:13:  [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( stname, szDot );
data/msitools-0.100/libmsi/table.c:1126:13:  [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( stname, sval );
data/msitools-0.100/libmsi/table.c:2022: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( tv->name, name );
data/msitools-0.100/libmsi/table.c:2106: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( stname, tv->name );
data/msitools-0.100/libmsi/table.c:2128:13:  [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( stname, szDot );
data/msitools-0.100/libmsi/table.c:2129:13:  [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( stname, sval );
data/msitools-0.100/libmsi/table.c:2481:25:  [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( coltable, table );
data/msitools-0.100/tests/test.h:16:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(str, ap);
data/msitools-0.100/tests/testdatabase.c:71:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 != access( msifile, F_OK ), "database should exist\n");
data/msitools-0.100/tests/testdatabase.c:81:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 != access( msifile2, F_OK ), "database should exist\n");
data/msitools-0.100/tests/testdatabase.c:90:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 == access( msifile2, F_OK ), "uncommitted database should not exist\n");
data/msitools-0.100/tests/testdatabase.c:100:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 != access( msifile2, F_OK ), "committed database should exist\n");
data/msitools-0.100/tests/testdatabase.c:114:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 != access( msifile, F_OK ), "database should exist\n");
data/msitools-0.100/tests/testdatabase.c:124:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 == access( msifile, F_OK ), "database should not exist\n");
data/msitools-0.100/tests/testdatabase.c:132:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ok( -1 != access( msifile, F_OK ), "database should exist\n");
data/msitools-0.100/tests/testdatabase.c:262:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(sql,insert,values); \
data/msitools-0.100/tests/testdatabase.c:796:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(sql, "select * from `_Columns` where  `Table` = '%s'", table );
data/msitools-0.100/tests/testdatabase.c:1038:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(str, insert_query);
data/msitools-0.100/tests/testdatabase.c:1040:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(str+len+STRING_LENGTH, insert_query+len+1);
data/msitools-0.100/tools/msiinfo.c:457: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(size, type+1);
data/msitools-0.100/tools/msiinfo.c:458:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(type, "CHAR(%s)", size);
data/msitools-0.100/tools/wixl/util.c:825:17:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				_tmp3_[i] = g_random_int ();
data/msitools-0.100/libmsi/debug.c:7: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 *p_ret[10];
data/msitools-0.100/libmsi/libmsi-database.c:379: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(mem, data, sz);
data/msitools-0.100/libmsi/libmsi-database.c:494: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 decoded[MAX_STREAM_NAME_LEN];
data/msitools-0.100/libmsi/libmsi-database.c:624: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 path[PATH_MAX];
data/msitools-0.100/libmsi/libmsi-database.c:635:13:  [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, ".tmp" );
data/msitools-0.100/libmsi/libmsi-database.c:677:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    msi_free(tmpfile);
data/msitools-0.100/libmsi/libmsi-database.c:786: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 expanded[128], *ptr;
data/msitools-0.100/libmsi/libmsi-database.c:787: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 size[10], comma[2], extra[30];
data/msitools-0.100/libmsi/libmsi-database.c:813:15:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        len = atol(ptr);
data/msitools-0.100/libmsi/libmsi-database.c:982:56:  [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).
                    libmsi_record_set_int(*rec, i + 1, atoi(data[i]));
data/msitools-0.100/libmsi/libmsi-database.c:1083:57:  [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).
        r = msi_set_string_table_codepage( db->strings, atoi( types[0] ) );
data/msitools-0.100/libmsi/libmsi-database.c:1286: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 data[sizeof(fmt) + 10];
data/msitools-0.100/libmsi/libmsi-database.c:2113: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 decname[0x40];
data/msitools-0.100/libmsi/libmsi-database.c:2339: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 decname[0x40];
data/msitools-0.100/libmsi/libmsi-query.c:514: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 szType[0x10];
data/msitools-0.100/libmsi/libmsi-record.c:392: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 buffer[16];
data/msitools-0.100/libmsi/libmsi-summary-info.c:381: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( str, &data[dwOffset], len-1 );
data/msitools-0.100/libmsi/libmsi-summary-info.c:400:36:  [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).
                property->intval = atoi( str );
data/msitools-0.100/libmsi/libmsi-summary-info.c:510: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( &data[ofs + 4], str, len );
data/msitools-0.100/libmsi/libmsi-summary-info.c:568: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( &data[sz], &fmtid_SummaryInformation, 16 );
data/msitools-0.100/libmsi/libmsi-summary-info.c:968:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *pid = atoi( prop );
data/msitools-0.100/libmsi/libmsi-summary-info.c:976:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *int_value = atoi( value );
data/msitools-0.100/libmsi/sql-parser.c:1157: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/msitools-0.100/libmsi/sql-parser.c:1350: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 yymsgbuf[128];
data/msitools-0.100/libmsi/sql-parser.c:2663: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( *str, p, len*sizeof(char) );
data/msitools-0.100/libmsi/streams.c:65: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 decoded[MAX_STREAM_NAME_LEN];
data/msitools-0.100/libmsi/string.c:338: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( str, data, len*sizeof(char) );
data/msitools-0.100/libmsi/string.c:397: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(buffer, str, len);
data/msitools-0.100/libmsi/table.c:64: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 name[1];
data/msitools-0.100/libmsi/table.c:234: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 name[0x40];
data/msitools-0.100/libmsi/table.c:565: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 decname[0x40];
data/msitools-0.100/libmsi/table.c:1014: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          name[1];
data/msitools-0.100/libmsi/table.c:1080: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 number[0x20];
data/msitools-0.100/libmsi/table.c:1683: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(tv->table->data[i - 1], tv->table->data[i], tv->row_size);
data/msitools-0.100/libmsi/table.c:2373: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 coltable[32];
data/msitools-0.100/libmsi/table.c:2461: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 table[32];
data/msitools-0.100/libmsi/table.c:2571: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 name[0x40];
data/msitools-0.100/libmsi/tokenize.c:113:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[MAX_TOKEN_LEN+1];
data/msitools-0.100/libmsi/tokenize.c:119:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( str, z, n*sizeof (char) );
data/msitools-0.100/libmsi/where.c:142: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(new->values, vals, wv->table_count * sizeof(unsigned));
data/msitools-0.100/tests/testdatabase.c:306: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[80];
data/msitools-0.100/tests/testdatabase.c:728: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 buffer[0x20];
data/msitools-0.100/tests/testdatabase.c:794: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 sql[0x100];
data/msitools-0.100/tests/testdatabase.c:948: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 buffer[0x100];
data/msitools-0.100/tests/testdatabase.c:985:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(file, O_WRONLY | O_BINARY | O_CREAT, 0644);
data/msitools-0.100/tests/testdatabase.c:998:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(file, O_RDONLY | O_BINARY);
data/msitools-0.100/tests/testdatabase.c:1076:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = open(name, O_CREAT | O_WRONLY | O_BINARY, 0644);
data/msitools-0.100/tests/testdatabase.c:1098: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 file[256];
data/msitools-0.100/tests/testdatabase.c:1099: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[256];
data/msitools-0.100/tests/testdatabase.c:1340: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 file[256];
data/msitools-0.100/tests/testdatabase.c:1341: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[256];
data/msitools-0.100/tests/testdatabase.c:1520: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[256];
data/msitools-0.100/tests/testdatabase.c:1695:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = open(filename, O_CREAT | O_WRONLY | O_BINARY, 0644);
data/msitools-0.100/tests/testdatabase.c:2030: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 file[256];
data/msitools-0.100/tests/testdatabase.c:2031: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[256];
data/msitools-0.100/tests/testdatabase.c:2273: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.
        static char szQueryBuf[256] = "SELECT * from `_Tables`";
data/msitools-0.100/tests/testdatabase.c:2390:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, mstfile, -1, name, 0x20);
data/msitools-0.100/tests/testdatabase.c:2492: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 buffer[MAX_PATH];
data/msitools-0.100/tests/testdatabase.c:2676: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 one[32];
data/msitools-0.100/tests/testdatabase.c:2677: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 two[32];
data/msitools-0.100/tests/testdatabase.c:2682: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 one[32];
data/msitools-0.100/tests/testdatabase.c:2683: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 two[32];
data/msitools-0.100/tests/testdatabase.c:2684: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 three[32];
data/msitools-0.100/tests/testdatabase.c:2685: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 four[32];
data/msitools-0.100/tests/testdatabase.c:2773: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[256];
data/msitools-0.100/tests/testdatabase.c:3348: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[0x10];
data/msitools-0.100/tests/testdatabase.c:3767: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 result[256];
data/msitools-0.100/tests/testdatabase.c:4088: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 buffer[100];
data/msitools-0.100/tests/testdatabase.c:4195: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 buffer[100];
data/msitools-0.100/tests/testdatabase.c:4317: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 buffer[100];
data/msitools-0.100/tests/testdatabase.c:4433: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[256];
data/msitools-0.100/tests/testdatabase.c:4581: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 buffer[MAX_PATH];
data/msitools-0.100/tests/testdatabase.c:4706:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, msifile, -1, name, 0x20);
data/msitools-0.100/tests/testdatabase.c:4886: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 buffer[256];
data/msitools-0.100/tests/testdatabase.c:5140: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[256];
data/msitools-0.100/tests/testdatabase.c:5205: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[256];
data/msitools-0.100/tests/testdatabase.c:5303: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[256];
data/msitools-0.100/tests/testdatabase.c:5478: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[256];
data/msitools-0.100/tests/testdatabase.c:5636:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( filename, O_RDONLY | O_BINARY );
data/msitools-0.100/tests/testdatabase.c:5646: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 buffer[512];
data/msitools-0.100/tests/testdatabase.c:5683:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("forcecodepage.idt", O_WRONLY | O_BINARY | O_CREAT, 0644);
data/msitools-0.100/tests/testdatabase.c:5699:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("forcecodepage.idt", O_WRONLY | O_BINARY | O_CREAT, 0644);
data/msitools-0.100/tests/testdatabase.c:5730:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, name, -1, nameW, MAX_PATH);
data/msitools-0.100/tests/testdatabase.c:5763: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 file[MAX_PATH];
data/msitools-0.100/tests/testdatabase.c:5764: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[MAX_PATH];
data/msitools-0.100/tests/testdatabase.c:5844:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, msifile, -1, name, MAX_PATH);
data/msitools-0.100/tests/testdatabase.c:5850:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, "stgname", -1, name, MAX_PATH);
data/msitools-0.100/tests/testdatabase.c:5856:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, "storage.bin", -1, name, MAX_PATH);
data/msitools-0.100/tests/testdatabase.c:5879: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[200];
data/msitools-0.100/tests/testdatabase.c:6078: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[100];
data/msitools-0.100/tests/testdatabase.c:6874: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[100];
data/msitools-0.100/tests/testdatabase.c:6917: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(buf, "kiwi");
data/msitools-0.100/tests/testdatabase.c:7165: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 buffer[0x20];
data/msitools-0.100/tests/testdatabase.c:7263: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 buffer[32];
data/msitools-0.100/tests/testdatabase.c:7293: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 buffer[32];
data/msitools-0.100/tests/testrecord.c:36: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 buffer[26], i;
data/msitools-0.100/tests/testrecord.c:39: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 (name, "msitext-XXXXXX.tmp");
data/msitools-0.100/tests/testrecord.c:57: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];
data/msitools-0.100/tests/testrecord.c:59: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[100];
data/msitools-0.100/tests/testrecord.c:270: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[100];
data/msitools-0.100/tests/testrecord.c:329: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[100];
data/msitools-0.100/tests/testsuminfo.c:130: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.
    ok(!strcpy(str, "Mike"));
data/msitools-0.100/tools/msibuild.c:36: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 uustr[40];
data/msitools-0.100/tools/msiinfo.c:358: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 buffer[4096];
data/msitools-0.100/tools/msiinfo.c:423: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 size[20], extra[30];
data/msitools-0.100/tools/msiinfo.c:448:13:  [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(extra, " NOT NULL");
data/msitools-0.100/tools/msiinfo.c:454: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(extra, " LOCALIZABLE");
data/msitools-0.100/tools/msiinfo.c:461:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                len = atol(type + 1);
data/msitools-0.100/tools/msiinfo.c:463:21:  [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(type, "INT");
data/msitools-0.100/tools/msiinfo.c:465:21:  [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(type, "LONG");
data/msitools-0.100/tools/msiinfo.c:470: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(type, "OBJECT");
data/msitools-0.100/tools/sqldelim.c:88: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[MAX_TOKEN_LEN + 1];
data/msitools-0.100/tools/sqldelim.c:94: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(str, z, n);
data/msitools-0.100/tools/wixl/builder.c:3752:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		wixl_msi_summary_info_set_codepage (_tmp3_, atoi (_tmp5_), &_inner_error0_);
data/msitools-0.100/tools/wixl/builder.c:3983:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		version = atoi (_tmp21_);
data/msitools-0.100/tools/wixl/builder.c:4555:14:  [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).
			display = atoi (_tmp11_);
data/msitools-0.100/tools/wixl/builder.c:4604:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_tmp18_ = atoi (_tmp22_);
data/msitools-0.100/tools/wixl/builder.c:5709:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		wixl_msi_table_shortcut_set_icon_index (_tmp36_, atoi (_tmp38_), &_inner_error0_);
data/msitools-0.100/tools/wixl/builder.c:6041:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_tmp22_->sequence = atoi (_tmp24_);
data/msitools-0.100/tools/wixl/builder.c:6687: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 (dup, self, sizeof (gboolean));
data/msitools-0.100/tools/wixl/msi.c:2957:49:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (!libmsi_record_set_int (_tmp4_, (guint) 1, atoi (DiskId))) {
data/msitools-0.100/tools/wixl/util.c:170: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 (dup, self, sizeof (GEnumValue));
data/msitools-0.100/libmsi/debug.c:16: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(ret);
data/msitools-0.100/libmsi/libmsi-database.c:771: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).
    size = sizeof(create_fmt)/sizeof(create_fmt[0]) + strlen(table) - 2;
data/msitools-0.100/libmsi/libmsi-database.c:861: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).
        sql_size += strlen(expanded);
data/msitools-0.100/libmsi/libmsi-database.c:888: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).
        size += strlen(key_fmt) + strlen(primary_keys[i]) - 2;
data/msitools-0.100/libmsi/libmsi-database.c:888: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).
        size += strlen(key_fmt) + strlen(primary_keys[i]) - 2;
data/msitools-0.100/libmsi/libmsi-database.c:896: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).
        key_size = strlen(key_fmt) + strlen(primary_keys[i]) -2;
data/msitools-0.100/libmsi/libmsi-database.c:896: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).
        key_size = strlen(key_fmt) + strlen(primary_keys[i]) -2;
data/msitools-0.100/libmsi/libmsi-database.c:904: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(postlude_fmt) + size - 1;
data/msitools-0.100/libmsi/libmsi-database.c:934: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(prelude) + strlen(columns_sql) + strlen(postlude) + 1;
data/msitools-0.100/libmsi/libmsi-database.c:934: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 = strlen(prelude) + strlen(columns_sql) + strlen(postlude) + 1;
data/msitools-0.100/libmsi/libmsi-database.c:934:52:  [1] (buffer) strlen:
  Does not handle 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(prelude) + strlen(columns_sql) + strlen(postlude) + 1;
data/msitools-0.100/libmsi/libmsi-database.c:1248:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write (fd, str, strlen (str)) != strlen (str)) {
data/msitools-0.100/libmsi/libmsi-database.c:1248: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).
        if (write (fd, str, strlen (str)) != strlen (str)) {
data/msitools-0.100/libmsi/libmsi-database.c:1256:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write (fd, sep, strlen (sep)) != strlen (sep))
data/msitools-0.100/libmsi/libmsi-database.c:1256: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).
        if (write (fd, sep, strlen (sep)) != strlen (sep))
data/msitools-0.100/libmsi/libmsi-database.c:1291: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).
    sz = strlen(data) + 1;
data/msitools-0.100/libmsi/libmsi-database.c:1311: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).
    sz = strlen (header);
data/msitools-0.100/libmsi/libmsi-database.c:1321: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).
            sz = strlen (str);
data/msitools-0.100/libmsi/libmsi-record.c:411: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( buffer );
data/msitools-0.100/libmsi/libmsi-record.c:416: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( rec->fields[field].u.szVal );
data/msitools-0.100/libmsi/libmsi-summary-info.c:507: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).
    unsigned len = strlen( str ) + 1;
data/msitools-0.100/libmsi/libmsi-summary-info.c:698: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 (prop->strval);
data/msitools-0.100/libmsi/libmsi-summary-info.c:845: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( szValue ) + 1;
data/msitools-0.100/libmsi/sql-parser.c:1057:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/msitools-0.100/libmsi/sql-parser.c:2577: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).
    unsigned len = strlen( list ) + strlen( table ) + 2;
data/msitools-0.100/libmsi/sql-parser.c:2577: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).
    unsigned len = strlen( list ) + strlen( table ) + 2;
data/msitools-0.100/libmsi/string.c:332: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(data);
data/msitools-0.100/libmsi/table.c:127: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).
        count = strlen( in )+2;
data/msitools-0.100/libmsi/table.c:576: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).
    table = msi_alloc_zero( sizeof(LibmsiTable) + strlen( name ) * sizeof(char) );
data/msitools-0.100/libmsi/table.c:736: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).
    table = msi_alloc( sizeof (LibmsiTable) + strlen(name)*sizeof (char) );
data/msitools-0.100/libmsi/table.c:1065: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( tv->name ) + 1;
data/msitools-0.100/libmsi/table.c:1116: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( szDot ) + strlen( sval );
data/msitools-0.100/libmsi/table.c:1116: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).
            len += strlen( szDot ) + strlen( sval );
data/msitools-0.100/libmsi/table.c:1997: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).
    sz = sizeof *tv + strlen(name)*sizeof name[0] ;
data/msitools-0.100/libmsi/table.c:2098: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( tv->name ) + 1;
data/msitools-0.100/libmsi/table.c:2119: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( szDot ) + strlen ( sval );
data/msitools-0.100/libmsi/table.c:2119: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).
            len += strlen( szDot ) + strlen ( sval );
data/msitools-0.100/tests/testdatabase.c:260: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).
        sz = strlen(values) + sizeof insert; \
data/msitools-0.100/tests/testdatabase.c:1001:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        length = read(fd, buffer, sizeof buffer);
data/msitools-0.100/tests/testdatabase.c:1008: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).
    ok( length == strlen(expected), "length of data wrong\n");
data/msitools-0.100/tests/testdatabase.c:1080: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).
    write(file, data, size ? size : strlen(data));
data/msitools-0.100/tests/testdatabase.c:1082: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).
        write(file, "\n", strlen("\n"));
data/msitools-0.100/tests/testdatabase.c:1708: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).
    write_file("temp_file", table_data, (strlen(table_data) - 1) * sizeof(char));
data/msitools-0.100/tests/testdatabase.c:4583:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned sz, read;
data/msitools-0.100/tests/testdatabase.c:4715:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hr = IStream_Read(stm, data, MAX_PATH, &read);
data/msitools-0.100/tests/testdatabase.c:4717:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ok(read == 4, "Expected 4, got %d\n", read);
data/msitools-0.100/tests/testdatabase.c:4718:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    todo_wine ok(!memcmp(data, data10, read), "Unexpected data\n");
data/msitools-0.100/tests/testdatabase.c:4727:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hr = IStream_Read(stm, data, MAX_PATH, &read);
data/msitools-0.100/tests/testdatabase.c:4729:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ok(read == 8, "Expected 8, got %d\n", read);
data/msitools-0.100/tests/testdatabase.c:4732:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ok(!memcmp(data, data11, read), "Unexpected data\n");
data/msitools-0.100/tests/testdatabase.c:4742:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hr = IStream_Read(stm, buffer, MAX_PATH, &read);
data/msitools-0.100/tests/testdatabase.c:4744:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ok(read == 24, "Expected 24, got %d\n", read);
data/msitools-0.100/tests/testdatabase.c:4745:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ok(!memcmp(buffer, data12, read), "Unexpected data\n");
data/msitools-0.100/tests/testdatabase.c:4754:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    hr = IStream_Read(stm, data, MAX_PATH, &read);
data/msitools-0.100/tests/testdatabase.c:4758:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ok(read == 64, "Expected 64, got %d\n", read);
data/msitools-0.100/tests/testdatabase.c:4759:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ok(!memcmp(data, data13, read), "Unexpected data\n");
data/msitools-0.100/tests/testdatabase.c:5638:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, buffer, 512);
data/msitools-0.100/tools/msibuild.c:69:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(uustr, "}");
data/msitools-0.100/tools/msiextract.c:291: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).
		_tmp1_ = strlen (self);
data/msitools-0.100/tools/wixl/builder.c:3503:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					_tmp13_ = strlen ((const gchar*) _tmp12_);
data/msitools-0.100/tools/wixl/builder.c:3519: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).
		_tmp16_ = strlen ((const gchar*) separator);
data/msitools-0.100/tools/wixl/preprocessor.c:618: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).
	_tmp0_ = strlen (self);
data/msitools-0.100/tools/wixl/preprocessor.c:694: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).
		_tmp5_ = strlen (str);
data/msitools-0.100/tools/wixl/preprocessor.c:785: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).
	_tmp27_ = strlen (str);
data/msitools-0.100/tools/wixl/preprocessor.c:2512: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).
	_tmp1_ = strlen (str);
data/msitools-0.100/tools/wixl/util.c:352: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).
				_tmp5_ = strlen (_tmp4_);
data/msitools-0.100/tools/wixl/util.c:363: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).
				_tmp10_ = strlen (_tmp9_);
data/msitools-0.100/tools/wixl/util.c:405: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).
	_tmp0_ = strlen (self);
data/msitools-0.100/tools/wixl/util.c:463: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).
	_tmp5_ = strlen (s);
data/msitools-0.100/tools/wixl/util.c:573:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					_tmp13_ = strlen ((const gchar*) _tmp12_);
data/msitools-0.100/tools/wixl/util.c:589: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).
		_tmp16_ = strlen ((const gchar*) separator);
data/msitools-0.100/tools/wixl/util.c:659: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).
	_tmp0_ = strlen (self);
data/msitools-0.100/tools/wixl/util.c:893: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).
		_tmp2_ = strlen (str);
data/msitools-0.100/tools/wixl/util.c:906: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).
			_tmp5_ = strlen (str);
data/msitools-0.100/tools/wixl/util.c:939: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).
		_tmp0_ = strlen (prefix);
data/msitools-0.100/tools/wixl/util.c:941: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).
		_tmp2_ = strlen (str);
data/msitools-0.100/tools/wixl/util.c:977: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).
				_tmp2_ = strlen (str);
data/msitools-0.100/tools/wixl/util.c:1104:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = read (_tmp0_, buffer, (gsize) buffer_length1);
data/msitools-0.100/tools/wixl/wixl-heat.c:268:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					_tmp13_ = strlen ((const gchar*) _tmp12_);
data/msitools-0.100/tools/wixl/wixl-heat.c:284: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).
		_tmp16_ = strlen ((const gchar*) separator);
data/msitools-0.100/tools/wixl/wixl-heat.c:354: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).
	_tmp0_ = strlen (self);
data/msitools-0.100/tools/wixl/wixl-heat.c:645: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).
			_tmp41_ = strlen (_tmp40_);
data/msitools-0.100/tools/wixl/wixl-heat.c:648: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).
			_tmp44_ = strlen (_tmp43_);
data/msitools-0.100/tools/wixl/wixl.c:216: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).
	_tmp0_ = strlen (self);

ANALYSIS SUMMARY:

Hits = 259
Lines analyzed = 64578 in approximately 1.42 seconds (45566 lines/second)
Physical Source Lines of Code (SLOC) = 55410
Hits@level = [0]  88 [1]  84 [2] 122 [3]   1 [4]  52 [5]   0
Hits@level+ = [0+] 347 [1+] 259 [2+] 175 [3+]  53 [4+]  52 [5+]   0
Hits/KSLOC@level+ = [0+] 6.26241 [1+] 4.67425 [2+] 3.15827 [3+] 0.956506 [4+] 0.938459 [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.