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/pkg-config-0.29.2/main.c Examining data/pkg-config-0.29.2/glib/glib/gmappedfile.h Examining data/pkg-config-0.29.2/glib/glib/gvariant.c Examining data/pkg-config-0.29.2/glib/glib/gmarkup.h Examining data/pkg-config-0.29.2/glib/glib/gshell.c Examining data/pkg-config-0.29.2/glib/glib/gdatetime.h Examining data/pkg-config-0.29.2/glib/glib/gthread-win32.c Examining data/pkg-config-0.29.2/glib/glib/gsequence.c Examining data/pkg-config-0.29.2/glib/glib/gmacros.h Examining data/pkg-config-0.29.2/glib/glib/gbookmarkfile.c Examining data/pkg-config-0.29.2/glib/glib/gbookmarkfile.h Examining data/pkg-config-0.29.2/glib/glib/gmappedfile.c Examining data/pkg-config-0.29.2/glib/glib/gpattern.h Examining data/pkg-config-0.29.2/glib/glib/gcharset.c Examining data/pkg-config-0.29.2/glib/glib/gthreadpool.h Examining data/pkg-config-0.29.2/glib/glib/glib-unix.c Examining data/pkg-config-0.29.2/glib/glib/gmessages.h Examining data/pkg-config-0.29.2/glib/glib/gspawn-win32.c Examining data/pkg-config-0.29.2/glib/glib/goption.c Examining data/pkg-config-0.29.2/glib/glib/glib-private.c Examining data/pkg-config-0.29.2/glib/glib/gbacktrace.c Examining data/pkg-config-0.29.2/glib/glib/glib-unix.h Examining data/pkg-config-0.29.2/glib/glib/gurifuncs.h Examining data/pkg-config-0.29.2/glib/glib/docs.c Examining data/pkg-config-0.29.2/glib/glib/gconstructor.h Examining data/pkg-config-0.29.2/glib/glib/gstringchunk.c Examining data/pkg-config-0.29.2/glib/glib/ghostutils.c Examining data/pkg-config-0.29.2/glib/glib/valgrind.h Examining data/pkg-config-0.29.2/glib/glib/gtimezone.c Examining data/pkg-config-0.29.2/glib/glib/giochannel.c Examining data/pkg-config-0.29.2/glib/glib/gfileutils.c Examining data/pkg-config-0.29.2/glib/glib/gtestutils.h Examining data/pkg-config-0.29.2/glib/glib/gmem.h Examining data/pkg-config-0.29.2/glib/glib/gasyncqueue.h Examining data/pkg-config-0.29.2/glib/glib/gdataset.h Examining data/pkg-config-0.29.2/glib/glib/gmessages-private.h Examining data/pkg-config-0.29.2/glib/glib/gdatasetprivate.h Examining data/pkg-config-0.29.2/glib/glib/glib_trace.h Examining data/pkg-config-0.29.2/glib/glib/gstring.c Examining data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.c Examining data/pkg-config-0.29.2/glib/glib/gmain.h Examining data/pkg-config-0.29.2/glib/glib/gerror.h Examining data/pkg-config-0.29.2/glib/glib/gvarianttype.c Examining data/pkg-config-0.29.2/glib/glib/genviron.h Examining data/pkg-config-0.29.2/glib/glib/gbase64.c Examining data/pkg-config-0.29.2/glib/glib/gpattern.c Examining data/pkg-config-0.29.2/glib/glib/giochannel.h Examining data/pkg-config-0.29.2/glib/glib/gslist.c Examining data/pkg-config-0.29.2/glib/glib/ggettext.h Examining data/pkg-config-0.29.2/glib/glib/gmain-internal.h Examining data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c Examining data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/packtab.c Examining data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/packtab.h Examining data/pkg-config-0.29.2/glib/glib/gchecksum.h Examining data/pkg-config-0.29.2/glib/glib/glibintl.h Examining data/pkg-config-0.29.2/glib/glib/gqueue.c Examining data/pkg-config-0.29.2/glib/glib/gvariant-internal.h Examining data/pkg-config-0.29.2/glib/glib/ghash.h Examining data/pkg-config-0.29.2/glib/glib/gthreadpool.c Examining data/pkg-config-0.29.2/glib/glib/gvarianttypeinfo.c Examining data/pkg-config-0.29.2/glib/glib/gwin32.h Examining data/pkg-config-0.29.2/glib/glib/glib.h Examining data/pkg-config-0.29.2/glib/glib/gunichartables.h Examining data/pkg-config-0.29.2/glib/glib/gversion.h Examining data/pkg-config-0.29.2/glib/glib/gurifuncs.c Examining data/pkg-config-0.29.2/glib/glib/gscripttable.h Examining data/pkg-config-0.29.2/glib/glib/gunidecomp.c Examining data/pkg-config-0.29.2/glib/glib/glib-init.h Examining data/pkg-config-0.29.2/glib/glib/gtimer.c Examining data/pkg-config-0.29.2/glib/glib/gqsort.c Examining data/pkg-config-0.29.2/glib/glib/gkeyfile.c Examining data/pkg-config-0.29.2/glib/glib/gchecksum.c Examining data/pkg-config-0.29.2/glib/glib/gspawn.c Examining data/pkg-config-0.29.2/glib/glib/gversion.c Examining data/pkg-config-0.29.2/glib/glib/gdatetime.c Examining data/pkg-config-0.29.2/glib/glib/gvariant-core.h Examining data/pkg-config-0.29.2/glib/glib/goption.h Examining data/pkg-config-0.29.2/glib/glib/guniprop.c Examining data/pkg-config-0.29.2/glib/glib/gqsort.h Examining data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.h Examining data/pkg-config-0.29.2/glib/glib/deprecated/gthread-deprecated.c Examining data/pkg-config-0.29.2/glib/glib/deprecated/grel.h Examining data/pkg-config-0.29.2/glib/glib/deprecated/gmain.h Examining data/pkg-config-0.29.2/glib/glib/deprecated/gcache.h Examining data/pkg-config-0.29.2/glib/glib/deprecated/gcache.c Examining data/pkg-config-0.29.2/glib/glib/deprecated/gallocator.h Examining data/pkg-config-0.29.2/glib/glib/deprecated/gallocator.c Examining data/pkg-config-0.29.2/glib/glib/deprecated/grel.c Examining data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c Examining data/pkg-config-0.29.2/glib/glib/deprecated/gthread.h Examining data/pkg-config-0.29.2/glib/glib/gtree.c Examining data/pkg-config-0.29.2/glib/glib/gbase64.h Examining data/pkg-config-0.29.2/glib/glib/gasyncqueue.c Examining data/pkg-config-0.29.2/glib/glib/grand.h Examining data/pkg-config-0.29.2/glib/glib/gquark.c Examining data/pkg-config-0.29.2/glib/glib/gthread.c Examining data/pkg-config-0.29.2/glib/glib/gmessages.c Examining data/pkg-config-0.29.2/glib/glib/gutils.h Examining data/pkg-config-0.29.2/glib/glib/gasyncqueueprivate.h Examining data/pkg-config-0.29.2/glib/glib/gmarkup.c Examining data/pkg-config-0.29.2/glib/glib/gtypes.h Examining data/pkg-config-0.29.2/glib/glib/gtestutils.c Examining data/pkg-config-0.29.2/glib/glib/glist.h Examining data/pkg-config-0.29.2/glib/glib/gvarianttype.h Examining data/pkg-config-0.29.2/glib/glib/gstringchunk.h Examining data/pkg-config-0.29.2/glib/glib/glib-private.h Examining data/pkg-config-0.29.2/glib/glib/gstring.h Examining data/pkg-config-0.29.2/glib/glib/gquark.h Examining data/pkg-config-0.29.2/glib/glib/gversionmacros.h Examining data/pkg-config-0.29.2/glib/glib/gpoll.c Examining data/pkg-config-0.29.2/glib/glib/gdir.c Examining data/pkg-config-0.29.2/glib/glib/gunicollate.c Examining data/pkg-config-0.29.2/glib/glib/gscanner.h Examining data/pkg-config-0.29.2/glib/glib/glib-object.h Examining data/pkg-config-0.29.2/glib/glib/gdataset.c Examining data/pkg-config-0.29.2/glib/glib/gdate.h Examining data/pkg-config-0.29.2/glib/glib/gcharsetprivate.h Examining data/pkg-config-0.29.2/glib/glib/gconvert.h Examining data/pkg-config-0.29.2/glib/glib/gunicode.h Examining data/pkg-config-0.29.2/glib/glib/gprimes.h Examining data/pkg-config-0.29.2/glib/glib/gi18n.h Examining data/pkg-config-0.29.2/glib/glib/gunibreak.h Examining data/pkg-config-0.29.2/glib/glib/galloca.h Examining data/pkg-config-0.29.2/glib/glib/gqueue.h Examining data/pkg-config-0.29.2/glib/glib/gtree.h Examining data/pkg-config-0.29.2/glib/glib/gprintfint.h Examining data/pkg-config-0.29.2/glib/glib/gwakeup.h Examining data/pkg-config-0.29.2/glib/glib/genviron.c Examining data/pkg-config-0.29.2/glib/glib/ghook.c Examining data/pkg-config-0.29.2/glib/glib/garray.h Examining data/pkg-config-0.29.2/glib/glib/gnode.h Examining data/pkg-config-0.29.2/glib/glib/gvariant-core.c Examining data/pkg-config-0.29.2/glib/glib/gerror.c Examining data/pkg-config-0.29.2/glib/glib/gslist.h Examining data/pkg-config-0.29.2/glib/glib/gvariant-parser.c Examining data/pkg-config-0.29.2/glib/glib/win_iconv.c Examining data/pkg-config-0.29.2/glib/glib/gmirroringtable.h Examining data/pkg-config-0.29.2/glib/glib/gwin32.c Examining data/pkg-config-0.29.2/glib/glib/gnode.c Examining data/pkg-config-0.29.2/glib/glib/gtimer.h Examining data/pkg-config-0.29.2/glib/glib/gsequence.h Examining data/pkg-config-0.29.2/glib/glib/gbitlock.h Examining data/pkg-config-0.29.2/glib/glib/ghook.h Examining data/pkg-config-0.29.2/glib/glib/gi18n-lib.h Examining data/pkg-config-0.29.2/glib/glib/gslice.h Examining data/pkg-config-0.29.2/glib/glib/gdate.c Examining data/pkg-config-0.29.2/glib/glib/gfileutils.h Examining data/pkg-config-0.29.2/glib/glib/gstrfuncs.c Examining data/pkg-config-0.29.2/glib/glib/gbytes.h Examining data/pkg-config-0.29.2/glib/glib/ghmac.c Examining data/pkg-config-0.29.2/glib/glib/gmem.c Examining data/pkg-config-0.29.2/glib/glib/gbitlock.c Examining data/pkg-config-0.29.2/glib/glib/gutils.c Examining data/pkg-config-0.29.2/glib/glib/gpoll.h Examining data/pkg-config-0.29.2/glib/glib/gstdio.c Examining data/pkg-config-0.29.2/glib/glib/libcharset/libcharset.h Examining data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.h Examining data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c Examining data/pkg-config-0.29.2/glib/glib/gthreadprivate.h Examining data/pkg-config-0.29.2/glib/glib/gvarianttypeinfo.h Examining data/pkg-config-0.29.2/glib/glib/gbsearcharray.h Examining data/pkg-config-0.29.2/glib/glib/gthread-posix.c Examining data/pkg-config-0.29.2/glib/glib/gbytes.c Examining data/pkg-config-0.29.2/glib/glib/gvariant.h Examining data/pkg-config-0.29.2/glib/glib/glib-init.c Examining data/pkg-config-0.29.2/glib/glib/gmain.c Examining data/pkg-config-0.29.2/glib/glib/gstdio.h Examining data/pkg-config-0.29.2/glib/glib/giowin32.c Examining data/pkg-config-0.29.2/glib/glib/gstrfuncs.h Examining data/pkg-config-0.29.2/glib/glib/gtimezone.h Examining data/pkg-config-0.29.2/glib/glib/ggettext.c Examining data/pkg-config-0.29.2/glib/glib/gbacktrace.h Examining data/pkg-config-0.29.2/glib/glib/glist.c Examining data/pkg-config-0.29.2/glib/glib/gunibreak.c Examining data/pkg-config-0.29.2/glib/glib/grand.c Examining data/pkg-config-0.29.2/glib/glib/gshell.h Examining data/pkg-config-0.29.2/glib/glib/gprintf.c Examining data/pkg-config-0.29.2/glib/glib/gcharset.h Examining data/pkg-config-0.29.2/glib/glib/gwakeup.c Examining data/pkg-config-0.29.2/glib/glib/gspawn.h Examining data/pkg-config-0.29.2/glib/glib/gtrashstack.h Examining data/pkg-config-0.29.2/glib/glib/gunicodeprivate.h Examining data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.h Examining data/pkg-config-0.29.2/glib/glib/ghmac.h Examining data/pkg-config-0.29.2/glib/glib/gconvert.c Examining data/pkg-config-0.29.2/glib/glib/ghash.c Examining data/pkg-config-0.29.2/glib/glib/gatomic.h Examining data/pkg-config-0.29.2/glib/glib/gunicomp.h Examining data/pkg-config-0.29.2/glib/glib/giounix.c Examining data/pkg-config-0.29.2/glib/glib/gthread.h Examining data/pkg-config-0.29.2/glib/glib/ghostutils.h Examining data/pkg-config-0.29.2/glib/glib/gprimes.c Examining data/pkg-config-0.29.2/glib/glib/gdir.h Examining data/pkg-config-0.29.2/glib/glib/gkeyfile.h Examining data/pkg-config-0.29.2/glib/glib/gunidecomp.h Examining data/pkg-config-0.29.2/glib/glib/gnulib/printf-parse.h Examining data/pkg-config-0.29.2/glib/glib/gnulib/g-gnulib.h Examining data/pkg-config-0.29.2/glib/glib/gnulib/printf-parse.c Examining data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.h Examining data/pkg-config-0.29.2/glib/glib/gnulib/printf-args.c Examining data/pkg-config-0.29.2/glib/glib/gnulib/printf-args.h Examining data/pkg-config-0.29.2/glib/glib/gnulib/asnprintf.c Examining data/pkg-config-0.29.2/glib/glib/gnulib/printf.c Examining data/pkg-config-0.29.2/glib/glib/gnulib/printf.h Examining data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c Examining data/pkg-config-0.29.2/glib/glib/gslice.c Examining data/pkg-config-0.29.2/glib/glib/gscanner.c Examining data/pkg-config-0.29.2/glib/glib/garray.c Examining data/pkg-config-0.29.2/glib/glib/gtrashstack.c Examining data/pkg-config-0.29.2/glib/glib/gutf8.c Examining data/pkg-config-0.29.2/glib/glib/gprintf.h Examining data/pkg-config-0.29.2/glib/glib/gatomic.c Examining data/pkg-config-0.29.2/rpmvercmp.c Examining data/pkg-config-0.29.2/pkg.h Examining data/pkg-config-0.29.2/rpmvercmp.h Examining data/pkg-config-0.29.2/parse.c Examining data/pkg-config-0.29.2/parse.h Examining data/pkg-config-0.29.2/pkg.c FINAL RESULTS: data/pkg-config-0.29.2/glib/glib/gfileutils.c:2071:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. read_size = readlink (filename, buffer, size); data/pkg-config-0.29.2/glib/glib/gstdio.c:156:10: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod (filename, mode); data/pkg-config-0.29.2/glib/glib/gstdio.h:64:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. #define g_chmod chmod data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:490:39: [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. g_list_foreach (result, (GFunc) printf, NULL); data/pkg-config-0.29.2/glib/glib/gbacktrace.c:305:7: [4] (shell) execvp: 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. execvp (args[0], args); /* exec gdb */ data/pkg-config-0.29.2/glib/glib/gdir.c:280:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (dir->utf8_buf, utf8_name); data/pkg-config-0.29.2/glib/glib/gdir.c:322:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (dir->utf8_buf, retval); data/pkg-config-0.29.2/glib/glib/gfileutils.c:410:39: [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. if ((test & G_FILE_TEST_EXISTS) && (access (filename, F_OK) == 0)) data/pkg-config-0.29.2/glib/glib/gfileutils.c:413:46: [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. if ((test & G_FILE_TEST_IS_EXECUTABLE) && (access (filename, X_OK) == 0)) data/pkg-config-0.29.2/glib/glib/gfileutils.c:2429:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (base, file_name); data/pkg-config-0.29.2/glib/glib/ggettext.c:235:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (tmp, msgctxtid); data/pkg-config-0.29.2/glib/glib/giowin32.c:217:67: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define BIT(n) checked_bits |= FD_##n; if (mask & FD_##n) bufp += sprintf (bufp, "%s" #n, (bufp>buf ? "|" : "")) data/pkg-config-0.29.2/glib/glib/giowin32.c:248:76: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define BIT(n) checked_bits |= G_IO_##n; if (condition & G_IO_##n) bufp += sprintf (bufp, "%s" #n, (bufp>buf ? "|" : "")) data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4166:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (q, escaped_character); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4179:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (q, escaped_character); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4190:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (q, escaped_character); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4195:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (q, escaped_character); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4200:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (q, escaped_character); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4208:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (q, escaped_character); data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:49:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, appname ": %s\n", msg); data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:59:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, appname ": "); data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:60:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, fmt, p); data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:73:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, appname ": "); data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:74:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, fmt, l, p, q); data/pkg-config-0.29.2/glib/glib/gmarkup.c:710:23: [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 (to, buf); data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:746:15: [4] (format) snprintf: 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. retcount = snprintf (result + length, maxlen, buf, \ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:750:15: [4] (format) snprintf: 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. retcount = snprintf (result + length, maxlen, buf, \ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:754:15: [4] (format) snprintf: 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. retcount = snprintf (result + length, maxlen, buf, \ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:766:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:769:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:772:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.h:37:22: [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 __printf__ printf data/pkg-config-0.29.2/glib/glib/goption.c:1652:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (*n->ptr + 1, n->value); data/pkg-config-0.29.2/glib/glib/gprintfint.h:32:22: [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 _g_printf printf data/pkg-config-0.29.2/glib/glib/gprintfint.h:33:22: [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 _g_fprintf fprintf data/pkg-config-0.29.2/glib/glib/gprintfint.h:34:22: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define _g_sprintf sprintf data/pkg-config-0.29.2/glib/glib/gprintfint.h:35:22: [4] (format) snprintf: 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. #define _g_snprintf snprintf data/pkg-config-0.29.2/glib/glib/gprintfint.h:37:22: [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. #define _g_vprintf vprintf data/pkg-config-0.29.2/glib/glib/gprintfint.h:38:22: [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. #define _g_vfprintf vfprintf data/pkg-config-0.29.2/glib/glib/gprintfint.h:39:22: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define _g_vsprintf vsprintf data/pkg-config-0.29.2/glib/glib/gprintfint.h:40:22: [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. #define _g_vsnprintf vsnprintf data/pkg-config-0.29.2/glib/glib/gslice.c:1452:3: [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, format, args); data/pkg-config-0.29.2/glib/glib/gspawn.c:1665:7: [4] (shell) execv: 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. execv (new_argv[0], new_argv); data/pkg-config-0.29.2/glib/glib/gspawn.c:1701:9: [4] (shell) execv: 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. execv (file, argv); data/pkg-config-0.29.2/glib/glib/gspawn.c:1765:13: [4] (shell) execv: 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. execv (startp, argv); data/pkg-config-0.29.2/glib/glib/gstdio.c:50:43: [4] (shell) system: 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. #error Please port this to your operating system data/pkg-config-0.29.2/glib/glib/gstdio.c:109:10: [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. return access (filename, mode); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2274:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (__glib_assert_msg, s); data/pkg-config-0.29.2/glib/glib/gtimezone.c:1157:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((*rules)[0].std_name, rule->std_name); data/pkg-config-0.29.2/glib/glib/gtimezone.c:1158:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((*rules)[0].dlt_name, rule->dlt_name); data/pkg-config-0.29.2/glib/glib/gtimezone.c:1279:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((*rules)[i].std_name, tzr.std_name); data/pkg-config-0.29.2/glib/glib/gtimezone.c:1280:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((*rules)[i].dlt_name, tzr.dlt_name); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:197:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:198:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res_ptr + res_size - (l2 + 1), buf2); data/pkg-config-0.29.2/rpmvercmp.c:49: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(str1, a); data/pkg-config-0.29.2/rpmvercmp.c:50: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(str2, b); data/pkg-config-0.29.2/glib/glib/gconvert.c:1042:11: [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. p = getenv ("G_FILENAME_ENCODING"); data/pkg-config-0.29.2/glib/glib/gconvert.c:1058:16: [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. else if (getenv ("G_BROKEN_FILENAMES") != NULL) data/pkg-config-0.29.2/glib/glib/genviron.c:256:10: [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. return getenv (variable); data/pkg-config-0.29.2/glib/glib/genviron.c:308:21: [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 (!overwrite && getenv (variable) != NULL) data/pkg-config-0.29.2/glib/glib/gfileutils.c:1558:12: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. tmpdir = g_get_tmp_dir (); data/pkg-config-0.29.2/glib/glib/gfileutils.c:2511:9: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. dir = getwd (buffer); data/pkg-config-0.29.2/glib/glib/giowin32.c:268:11: [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. return (getenv ("G_IO_WIN32_DEBUG") != NULL); data/pkg-config-0.29.2/glib/glib/giowin32.c:276:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:337:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:355:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:377:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:454:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:475:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:496:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:569:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:582:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:605:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:640:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:657:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:674:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:736:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:1335:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&win32_channel->mutex); data/pkg-config-0.29.2/glib/glib/giowin32.c:1389:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&win32_channel->mutex); data/pkg-config-0.29.2/glib/glib/glib-init.c:176:11: [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. value = getenv (envvar); data/pkg-config-0.29.2/glib/glib/gmain.c:585:11: [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 ("G_MAIN_POLL_DEBUG") != NULL) data/pkg-config-0.29.2/glib/glib/gmain.c:1101:14: [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. id = g_random_int (); data/pkg-config-0.29.2/glib/glib/grand.c:423:1: [3] (random) g_rand_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. g_rand_int (GRand* rand) data/pkg-config-0.29.2/glib/glib/grand.c:472:1: [3] (random) g_rand_int_range: 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. g_rand_int_range (GRand* rand, gint32 begin, gint32 end) data/pkg-config-0.29.2/glib/glib/grand.c:475:11: [3] (random) random: 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. guint32 random; data/pkg-config-0.29.2/glib/glib/grand.c:494:26: [3] (random) g_rand_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. gdouble double_rand = g_rand_int (rand) * data/pkg-config-0.29.2/glib/glib/grand.c:505:22: [3] (random) g_rand_double_range: 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. random = (gint32) g_rand_double_range (rand, 0, dist); data/pkg-config-0.29.2/glib/glib/grand.c:527:15: [3] (random) g_rand_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. random = g_rand_int (rand); data/pkg-config-0.29.2/glib/glib/grand.c:528:11: [3] (random) random: 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. while (random > maxvalue); data/pkg-config-0.29.2/glib/glib/grand.c:530:4: [3] (random) random: 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. random %= dist; data/pkg-config-0.29.2/glib/glib/grand.c:538:18: [3] (random) random: 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. return begin + random; data/pkg-config-0.29.2/glib/glib/grand.c:551:1: [3] (random) g_rand_double: 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. g_rand_double (GRand* rand) data/pkg-config-0.29.2/glib/glib/grand.c:555:20: [3] (random) g_rand_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. gdouble retval = g_rand_int (rand) * G_RAND_DOUBLE_TRANSFORM; data/pkg-config-0.29.2/glib/glib/grand.c:556:22: [3] (random) g_rand_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. retval = (retval + g_rand_int (rand)) * G_RAND_DOUBLE_TRANSFORM; data/pkg-config-0.29.2/glib/glib/grand.c:561:12: [3] (random) g_rand_double: 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. return g_rand_double (rand); data/pkg-config-0.29.2/glib/glib/grand.c:578:1: [3] (random) g_rand_double_range: 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. g_rand_double_range (GRand* rand, gdouble begin, gdouble end) data/pkg-config-0.29.2/glib/glib/grand.c:582:7: [3] (random) g_rand_double: 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. r = g_rand_double (rand); data/pkg-config-0.29.2/glib/glib/grand.c:603:1: [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. g_random_int (void) data/pkg-config-0.29.2/glib/glib/grand.c:610:12: [3] (random) g_rand_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. result = g_rand_int (global_random); data/pkg-config-0.29.2/glib/glib/grand.c:626:1: [3] (random) g_random_int_range: 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. g_random_int_range (gint32 begin, gint32 end) data/pkg-config-0.29.2/glib/glib/grand.c:633:12: [3] (random) g_rand_int_range: 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. result = g_rand_int_range (global_random, begin, end); data/pkg-config-0.29.2/glib/glib/grand.c:646:1: [3] (random) g_random_double: 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. g_random_double (void) data/pkg-config-0.29.2/glib/glib/grand.c:653:12: [3] (random) g_rand_double: 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. result = g_rand_double (global_random); data/pkg-config-0.29.2/glib/glib/grand.c:668:1: [3] (random) g_random_double_range: 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. g_random_double_range (gdouble begin, gdouble end) data/pkg-config-0.29.2/glib/glib/grand.c:675:12: [3] (random) g_rand_double_range: 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. result = g_rand_double_range (global_random, begin, end); data/pkg-config-0.29.2/glib/glib/grand.h:68:9: [3] (random) g_rand_boolean: 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. #define g_rand_boolean(rand_) ((g_rand_int (rand_) & (1 << 15)) != 0) data/pkg-config-0.29.2/glib/glib/grand.h:68:33: [3] (random) g_rand_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. #define g_rand_boolean(rand_) ((g_rand_int (rand_) & (1 << 15)) != 0) data/pkg-config-0.29.2/glib/glib/grand.h:71:9: [3] (random) g_rand_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. guint32 g_rand_int (GRand *rand_); data/pkg-config-0.29.2/glib/glib/grand.h:73:9: [3] (random) g_rand_int_range: 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. gint32 g_rand_int_range (GRand *rand_, data/pkg-config-0.29.2/glib/glib/grand.h:77:9: [3] (random) g_rand_double: 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. gdouble g_rand_double (GRand *rand_); data/pkg-config-0.29.2/glib/glib/grand.h:79:9: [3] (random) g_rand_double_range: 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. gdouble g_rand_double_range (GRand *rand_, data/pkg-config-0.29.2/glib/glib/grand.h:85:9: [3] (random) g_random_boolean: 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. #define g_random_boolean() ((g_random_int () & (1 << 15)) != 0) data/pkg-config-0.29.2/glib/glib/grand.h:85:30: [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. #define g_random_boolean() ((g_random_int () & (1 << 15)) != 0) data/pkg-config-0.29.2/glib/glib/grand.h:88:9: [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. guint32 g_random_int (void); data/pkg-config-0.29.2/glib/glib/grand.h:90:9: [3] (random) g_random_int_range: 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. gint32 g_random_int_range (gint32 begin, data/pkg-config-0.29.2/glib/glib/grand.h:93:9: [3] (random) g_random_double: 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. gdouble g_random_double (void); data/pkg-config-0.29.2/glib/glib/grand.h:95:9: [3] (random) g_random_double_range: 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. gdouble g_random_double_range (gdouble begin, data/pkg-config-0.29.2/glib/glib/gslice.c:372: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. val = getenv ("G_SLICE"); data/pkg-config-0.29.2/glib/glib/gspawn-win32.c:76:10: [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 ("G_SPAWN_WIN32_DEBUG") != NULL) \ data/pkg-config-0.29.2/glib/glib/gtestutils.c:1116:66: [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. g_snprintf (seedstr, sizeof (seedstr), "R02S%08x%08x%08x%08x", g_random_int(), g_random_int(), g_random_int(), g_random_int()); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1116:82: [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. g_snprintf (seedstr, sizeof (seedstr), "R02S%08x%08x%08x%08x", g_random_int(), g_random_int(), g_random_int(), g_random_int()); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1116:98: [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. g_snprintf (seedstr, sizeof (seedstr), "R02S%08x%08x%08x%08x", g_random_int(), g_random_int(), g_random_int(), g_random_int()); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1116:114: [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. g_snprintf (seedstr, sizeof (seedstr), "R02S%08x%08x%08x%08x", g_random_int(), g_random_int(), g_random_int(), g_random_int()); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1128:20: [3] (random) g_rand_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. guint32 t1 = g_rand_int (rg), t2 = g_rand_int (rg), t3 = g_rand_int (rg), t4 = g_rand_int (rg); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1128:42: [3] (random) g_rand_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. guint32 t1 = g_rand_int (rg), t2 = g_rand_int (rg), t3 = g_rand_int (rg), t4 = g_rand_int (rg); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1128:64: [3] (random) g_rand_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. guint32 t1 = g_rand_int (rg), t2 = g_rand_int (rg), t3 = g_rand_int (rg), t4 = g_rand_int (rg); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1128:86: [3] (random) g_rand_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. guint32 t1 = g_rand_int (rg), t2 = g_rand_int (rg), t3 = g_rand_int (rg), t4 = g_rand_int (rg); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1220:10: [3] (random) g_rand_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. return g_rand_int (test_run_rand); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1239:10: [3] (random) g_rand_int_range: 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. return g_rand_int_range (test_run_rand, begin, end); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1255:10: [3] (random) g_rand_double: 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. return g_rand_double (test_run_rand); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1274:10: [3] (random) g_rand_double_range: 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. return g_rand_double_range (test_run_rand, range_start, range_end); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:163:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (cs); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:206:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (g_rec_mutex_get_impl (mutex)); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:344:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&g_private_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:607:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&g_thread_xp_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:618:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&result->writer_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:635:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->writer_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:647:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->atomicity); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:682:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->atomicity); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:715:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->atomicity); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:722:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->atomicity); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:732:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->writer_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:769:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->atomicity); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:845:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&g_thread_xp_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:860:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&g_thread_xp_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:882:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&g_thread_xp_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:907:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&g_thread_xp_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:947:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&g_thread_xp_lock); data/pkg-config-0.29.2/glib/glib/gthread-win32.c:992:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&g_private_lock); data/pkg-config-0.29.2/glib/glib/gtimezone.c:417: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. tzdir = getenv ("TZDIR"); data/pkg-config-0.29.2/glib/glib/gtimezone.c:1508:27: [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. return g_time_zone_new (getenv ("TZ")); data/pkg-config-0.29.2/glib/glib/gutils.c:879:1: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. g_get_home_dir (void) data/pkg-config-0.29.2/glib/glib/gutils.c:974:1: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. g_get_tmp_dir (void) data/pkg-config-0.29.2/glib/glib/gutils.c:1234:35: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar *home_dir = g_get_home_dir (); data/pkg-config-0.29.2/glib/glib/gutils.c:1239:42: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. data_dir = g_build_filename (g_get_tmp_dir (), g_get_user_name (), ".local", "share", NULL); data/pkg-config-0.29.2/glib/glib/gutils.c:1269:35: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar *home_dir = g_get_home_dir (); data/pkg-config-0.29.2/glib/glib/gutils.c:1274:44: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. config_dir = g_build_filename (g_get_tmp_dir (), g_get_user_name (), ".config", NULL); data/pkg-config-0.29.2/glib/glib/gutils.c:1352:35: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar *home_dir = g_get_home_dir (); data/pkg-config-0.29.2/glib/glib/gutils.c:1357:43: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. cache_dir = g_build_filename (g_get_tmp_dir (), g_get_user_name (), ".cache", NULL); data/pkg-config-0.29.2/glib/glib/gutils.c:1400:31: [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. runtime_dir = g_strdup (getenv ("XDG_RUNTIME_DIR")); data/pkg-config-0.29.2/glib/glib/gutils.c:1687:62: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. g_user_special_dirs[directory] = g_build_filename (g_get_home_dir (), d, NULL); data/pkg-config-0.29.2/glib/glib/gutils.c:1793:75: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. g_user_special_dirs[G_USER_DIRECTORY_DESKTOP] = g_build_filename (g_get_home_dir (), "Desktop", NULL); data/pkg-config-0.29.2/glib/glib/gutils.c:2376:50: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar *g_get_home_dir_utf8 (void) { return g_get_home_dir (); } data/pkg-config-0.29.2/glib/glib/gutils.c:2377:49: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar *g_get_tmp_dir_utf8 (void) { return g_get_tmp_dir (); } data/pkg-config-0.29.2/glib/glib/gutils.h:92:23: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar * g_get_home_dir (void); data/pkg-config-0.29.2/glib/glib/gutils.h:94:23: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. const gchar * g_get_tmp_dir (void); data/pkg-config-0.29.2/glib/glib/gwin32.c:106:14: [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 (((ev = getenv ("LC_ALL")) != NULL && ev[0] != '\0') data/pkg-config-0.29.2/glib/glib/gwin32.c:107:17: [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. || ((ev = getenv ("LC_MESSAGES")) != NULL && ev[0] != '\0') data/pkg-config-0.29.2/glib/glib/gwin32.c:108:17: [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. || ((ev = getenv ("LANG")) != NULL && ev[0] != '\0')) data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:122:13: [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. dir = getenv ("CHARSETALIASDIR"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:305:16: [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. locale = getenv ("LC_ALL"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:308:13: [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. locale = getenv ("LC_CTYPE"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:310: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. locale = getenv ("LANG"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:356:16: [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. locale = getenv ("LC_ALL"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:359:13: [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. locale = getenv ("LC_CTYPE"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:361: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. locale = getenv ("LANG"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:389:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:392:16: [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. locale = getenv ("LC_CTYPE"); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:394:11: [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. locale = getenv ("LANG"); data/pkg-config-0.29.2/glib/glib/win_iconv.c:721:13: [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. h = LoadLibrary(mlang_dll); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1147: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. p = getenv("WINICONV_LIBICONV_DLL"); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1159:21: [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. hlibiconv = LoadLibrary(dllname); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1201:16: [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. hlastdll = LoadLibrary(dllname); data/pkg-config-0.29.2/main.c:500:7: [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 ("PKG_CONFIG_DEBUG_SPEW")) data/pkg-config-0.29.2/main.c:520:17: [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. search_path = getenv ("PKG_CONFIG_PATH"); data/pkg-config-0.29.2/main.c:525:7: [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("PKG_CONFIG_LIBDIR") != NULL) data/pkg-config-0.29.2/main.c:527:23: [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. add_search_dirs(getenv("PKG_CONFIG_LIBDIR"), G_SEARCHPATH_SEPARATOR_S); data/pkg-config-0.29.2/main.c:534:18: [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. pcsysrootdir = getenv ("PKG_CONFIG_SYSROOT_DIR"); data/pkg-config-0.29.2/main.c:544:16: [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. pcbuilddir = getenv ("PKG_CONFIG_TOP_BUILD_DIR"); data/pkg-config-0.29.2/main.c:555:7: [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 ("PKG_CONFIG_DISABLE_UNINSTALLED")) data/pkg-config-0.29.2/main.c:600:34: [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 (want_silence_errors && getenv ("PKG_CONFIG_DEBUG_SPEW") == NULL) data/pkg-config-0.29.2/main.c:669:7: [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("PKG_CONFIG_LOG") != NULL) data/pkg-config-0.29.2/main.c:671:20: [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. log = fopen (getenv ("PKG_CONFIG_LOG"), "a"); data/pkg-config-0.29.2/main.c:675:6: [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. getenv ("PKG_CONFIG_LOG")); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:470: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). file = fopen (argv[1], "r"); data/pkg-config-0.29.2/glib/glib/deprecated/grel.c:432: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 (tuples->data + (tuples->len * tuples->width), data/pkg-config-0.29.2/glib/glib/garray.c:425: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 (g_array_elt_pos (array, array->len), data, data/pkg-config-0.29.2/glib/glib/garray.c:482: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 (g_array_elt_pos (array, 0), data, g_array_elt_len (array, len)); data/pkg-config-0.29.2/glib/glib/garray.c:532: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 (g_array_elt_pos (array, index_), data, g_array_elt_len (array, len)); data/pkg-config-0.29.2/glib/glib/garray.c:640: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 (g_array_elt_pos (array, index_), data/pkg-config-0.29.2/glib/glib/gbacktrace.c:179: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, "E\n"); data/pkg-config-0.29.2/glib/glib/gbacktrace.c:286: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 buffer[256]; data/pkg-config-0.29.2/glib/glib/gbase64.c:114:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (len + ((char *) save) [0] > 2) data/pkg-config-0.29.2/glib/glib/gbase64.c:122: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. switch (((char *) save) [0]) data/pkg-config-0.29.2/glib/glib/gbase64.c:125: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. c1 = ((unsigned char *) save) [1]; data/pkg-config-0.29.2/glib/glib/gbase64.c:128: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. c1 = ((unsigned char *) save) [1]; data/pkg-config-0.29.2/glib/glib/gbase64.c:129: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. c2 = ((unsigned char *) save) [2]; data/pkg-config-0.29.2/glib/glib/gbase64.c:158: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 *)save)[0] = 0; data/pkg-config-0.29.2/glib/glib/gbase64.c:168:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. saveout = & (((char *)save)[1]) + ((char *)save)[0]; data/pkg-config-0.29.2/glib/glib/gbase64.c:168:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. saveout = & (((char *)save)[1]) + ((char *)save)[0]; data/pkg-config-0.29.2/glib/glib/gbase64.c:176: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 *)save)[0] += len; data/pkg-config-0.29.2/glib/glib/gbase64.c:212:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. c1 = ((unsigned char *) save) [1]; data/pkg-config-0.29.2/glib/glib/gbase64.c:213:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. c2 = ((unsigned char *) save) [2]; data/pkg-config-0.29.2/glib/glib/gbase64.c:215: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. switch (((char *) save) [0]) data/pkg-config-0.29.2/glib/glib/gbase64.c:278:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 mime_base64_rank[256] = { data/pkg-config-0.29.2/glib/glib/gbookmarkfile.c:876:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ai->count = atoi (count); data/pkg-config-0.29.2/glib/glib/gbookmarkfile.c:888:30: [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). ai->stamp = (time_t) atol (stamp); data/pkg-config-0.29.2/glib/glib/gbsearcharray.h:248: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 (node, key_node, bconfig->sizeof_node); data/pkg-config-0.29.2/glib/glib/gbsearcharray.h:258: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 (node, key_node, bconfig->sizeof_node); data/pkg-config-0.29.2/glib/glib/gcharset.c:240: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[256]; data/pkg-config-0.29.2/glib/glib/gcharset.c:244:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (file,"r"); data/pkg-config-0.29.2/glib/glib/gchecksum.c:362:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, data, length); data/pkg-config-0.29.2/glib/glib/gchecksum.c:366: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 (p, data, bit); data/pkg-config-0.29.2/glib/glib/gchecksum.c:378: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 (md5->u.data, data, MD5_DATASIZE); data/pkg-config-0.29.2/glib/glib/gchecksum.c:388: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 (md5->u.data, data, length); data/pkg-config-0.29.2/glib/glib/gchecksum.c:437: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 (md5->digest, md5->buf, 16); data/pkg-config-0.29.2/glib/glib/gchecksum.c:716:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, buffer, count); data/pkg-config-0.29.2/glib/glib/gchecksum.c:720: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 (p, buffer, dataCount); data/pkg-config-0.29.2/glib/glib/gchecksum.c:732: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 (sha1->data, buffer, SHA1_DATASIZE); data/pkg-config-0.29.2/glib/glib/gchecksum.c:742: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 (sha1->data, buffer, count); data/pkg-config-0.29.2/glib/glib/gchecksum.c:790: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 (sha1->digest, sha1->buf, SHA1_DIGEST_LEN); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1010: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 ((sha256->data + left), input, fill); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1028: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 (sha256->data + left, input, length); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1273: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 (sha512->block + sha512->block_len, buffer, fill_len); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1288: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 (sha512->block, buffer + offset, SHA512_BLOCK_LEN); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1299: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 (sha512->block, buffer + offset, length); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1353: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 (digest, sha512->digest, SHA512_DIGEST_LEN); data/pkg-config-0.29.2/glib/glib/gdate.c:929: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). pt->n[0] = pt->num_ints > 0 ? atoi (num[0]) : 0; data/pkg-config-0.29.2/glib/glib/gdate.c:930: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). pt->n[1] = pt->num_ints > 1 ? atoi (num[1]) : 0; data/pkg-config-0.29.2/glib/glib/gdate.c:931: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). pt->n[2] = pt->num_ints > 2 ? atoi (num[2]) : 0; data/pkg-config-0.29.2/glib/glib/gdate.c:1322: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 ((void *) &tm, (void *) ptm, sizeof(struct tm)); data/pkg-config-0.29.2/glib/glib/gdate.c:2410: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 (s, convbuf, convlen); data/pkg-config-0.29.2/glib/glib/gdate.c:2548: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 (s, convbuf, convlen); data/pkg-config-0.29.2/glib/glib/genviron.c:447:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t dummy[2], *wname, *wvalue; data/pkg-config-0.29.2/glib/glib/gfileutils.c:693: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 (str + total_bytes, buf, bytes); data/pkg-config-0.29.2/glib/glib/gfileutils.c:825:8: [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/pkg-config-0.29.2/glib/glib/gfileutils.c:1532:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 c[2]; data/pkg-config-0.29.2/glib/glib/gfileutils.c:2328: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 (retval, file_name + base + 1, len); data/pkg-config-0.29.2/glib/glib/gfileutils.c:2480:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t dummy[2], *wdir; data/pkg-config-0.29.2/glib/glib/gfileutils.c:2602: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). return open (filename, flags, mode); data/pkg-config-0.29.2/glib/glib/ggettext.c:285: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/pkg-config-0.29.2/glib/glib/ggettext.c:287: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/pkg-config-0.29.2/glib/glib/ghmac.c:140: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 (buffer, key, key_len); data/pkg-config-0.29.2/glib/glib/giochannel.c:2108: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 (buf, USE_BUF (channel)->str, got_bytes); data/pkg-config-0.29.2/glib/glib/giochannel.c:2336:15: [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 (channel->partial_write_buf + from_buf_old_len, buf, data/pkg-config-0.29.2/glib/glib/giochannel.c:2429: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 (channel->partial_write_buf, from_buf, left_len); data/pkg-config-0.29.2/glib/glib/giowin32.c:210: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[100]; data/pkg-config-0.29.2/glib/glib/giowin32.c:233:12: [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. bufp += sprintf (bufp, "|%#x", mask & ~checked_bits); data/pkg-config-0.29.2/glib/glib/giowin32.c:241: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[100]; data/pkg-config-0.29.2/glib/glib/giowin32.c:260:12: [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. bufp += sprintf (bufp, "|%#x", condition & ~checked_bits); data/pkg-config-0.29.2/glib/glib/giowin32.c:602: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 (dest, channel->buffer + channel->rdp, nbytes); data/pkg-config-0.29.2/glib/glib/giowin32.c:671: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 (channel->buffer + channel->wrp, dest, nbytes); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:2176: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 list_separator[2]; data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:85:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[4000]; data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:161:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(f = fopen (data_file_name, "rt"))) data/pkg-config-0.29.2/glib/glib/glib-mirroring-tab/gen-mirroring-tab.c:220:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int max_depth = atoi (argv[1]); data/pkg-config-0.29.2/glib/glib/gmacros.h:181:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED data/pkg-config-0.29.2/glib/glib/gmacros.h:183:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __LINE__)[(expr) ? 1 : -1] G_GNUC_UNUSED data/pkg-config-0.29.2/glib/glib/gmem.c:679: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 (local_data, profile_data, data/pkg-config-0.29.2/glib/glib/gmessages.c:277: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 (fatal_msg_ptr, buf, len); data/pkg-config-0.29.2/glib/glib/gmessages.c:800:7: [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 (level_prefix, "ERROR"); data/pkg-config-0.29.2/glib/glib/gmessages.c:804:7: [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 (level_prefix, "CRITICAL"); data/pkg-config-0.29.2/glib/glib/gmessages.c:808:7: [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 (level_prefix, "WARNING"); data/pkg-config-0.29.2/glib/glib/gmessages.c:812:7: [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 (level_prefix, "Message"); data/pkg-config-0.29.2/glib/glib/gmessages.c:816:7: [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 (level_prefix, "INFO"); data/pkg-config-0.29.2/glib/glib/gmessages.c:819:7: [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 (level_prefix, "DEBUG"); data/pkg-config-0.29.2/glib/glib/gmessages.c:824:4: [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 (level_prefix, "LOG-"); data/pkg-config-0.29.2/glib/glib/gmessages.c:828:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (level_prefix, "LOG"); data/pkg-config-0.29.2/glib/glib/gmessages.c:832: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 (level_prefix, " (recursed)"); data/pkg-config-0.29.2/glib/glib/gmessages.c:834: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 (level_prefix, " **"); data/pkg-config-0.29.2/glib/glib/gmessages.c:1048: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 *s, lstr[32]; data/pkg-config-0.29.2/glib/glib/gnulib/printf.c:114: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 (string, result, length + 1); data/pkg-config-0.29.2/glib/glib/gnulib/printf.c:131: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 (string, result, MIN(length + 1, n)); data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:89: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 buffer[128]; data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:321: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 (memory, result, length); \ data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:332: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 (result + length, cp, n); data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:385: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 tmpbuf[700]; data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:644: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 (p, dp->width_start, n); data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:650: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 (p, dp->precision_start, n); data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:1053: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 (result + length, tmp, count); data/pkg-config-0.29.2/glib/glib/goption.c:2173: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 (group->entries + group->n_entries, entries, sizeof (GOptionEntry) * n_entries); data/pkg-config-0.29.2/glib/glib/gqsort.c:174:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, b1, s); data/pkg-config-0.29.2/glib/glib/gqsort.c:181:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, b2, s); data/pkg-config-0.29.2/glib/glib/gqsort.c:191: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 (tmp, b1, n1 * s); data/pkg-config-0.29.2/glib/glib/gqsort.c:192: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 (b, p->t, (n - n2) * s); data/pkg-config-0.29.2/glib/glib/gqsort.c:248: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 (tmp_storage, ip, s); data/pkg-config-0.29.2/glib/glib/gqsort.c:254: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 (jp, kp, s); data/pkg-config-0.29.2/glib/glib/gqsort.c:262: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 (jp, tmp_storage, s); data/pkg-config-0.29.2/glib/glib/gquark.c:159: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 (copy, string, len); data/pkg-config-0.29.2/glib/glib/gquark.c:280: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 (quarks_new, quarks, sizeof (char *) * quark_seq_id); data/pkg-config-0.29.2/glib/glib/grand.c:220:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dev_urandom = fopen("/dev/urandom", "rb"); data/pkg-config-0.29.2/glib/glib/grand.c:298: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 (new_rand, rand, sizeof (GRand)); data/pkg-config-0.29.2/glib/glib/gslice.c:1066: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 (mem, mem_block, mem_size); data/pkg-config-0.29.2/glib/glib/gspawn-win32.c:533: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 args[ARG_COUNT][10]; data/pkg-config-0.29.2/glib/glib/gspawn.c:1117:9: [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). ret = open (path, mode); data/pkg-config-0.29.2/glib/glib/gspawn.c:1185:24: [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). gint read_null = open ("/dev/null", O_RDONLY); data/pkg-config-0.29.2/glib/glib/gspawn.c:1740: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 (name + pathlen + 1, file, len); data/pkg-config-0.29.2/glib/glib/gspawn.c:1759:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. startp = memcpy (name - (p - path), path, p - path); data/pkg-config-0.29.2/glib/glib/gstdio.c:215: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, flags, mode); data/pkg-config-0.29.2/glib/glib/gstdio.c:736: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). return fopen (filename, mode); data/pkg-config-0.29.2/glib/glib/gstdio.h:65:19: [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). #define g_open open data/pkg-config-0.29.2/glib/glib/gstdio.h:72:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define g_fopen fopen data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:365: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 (new_str, str, length); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:393: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 (new_mem, mem, byte_size); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:800: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 (c, nptr, decimal_point_pos - nptr); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:802: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 (c, decimal_point, decimal_point_len); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:804: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 (c, decimal_point_pos + 1, end - (decimal_point_pos + 1)); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:828: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 (copy, nptr, end - nptr); data/pkg-config-0.29.2/glib/glib/gstring.c:469:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (string->str + pos, val, precount); data/pkg-config-0.29.2/glib/glib/gstring.c:474: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 (string->str + pos + precount, data/pkg-config-0.29.2/glib/glib/gstring.c:492: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 (string->str + pos, val, len); data/pkg-config-0.29.2/glib/glib/gstring.c:961: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 (string->str + pos, val, len); data/pkg-config-0.29.2/glib/glib/gstring.c:1169: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 (string->str + string->len, buf, len + 1); data/pkg-config-0.29.2/glib/glib/gstringchunk.c:322: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 (pos, string, size); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1097:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char seedstr[4 + 4 * 8 + 1]; data/pkg-config-0.29.2/glib/glib/gtestutils.c:1178:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (hexbuf, s + 0, 8); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1181:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (hexbuf, s + 8, 8); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1184:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (hexbuf, s + 16, 8); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1187:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (hexbuf, s + 24, 8); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2256: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 lstr[32]; data/pkg-config-0.29.2/glib/glib/gtestutils.c:2793:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 log_fd_buf[128]; data/pkg-config-0.29.2/glib/glib/gtestutils.c:2984: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 (&aligned_int64, *ipointer, 8); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2994: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 (&aligned_int, *ipointer, 4); data/pkg-config-0.29.2/glib/glib/gtimezone.c:93:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. gint64 tmp; memcpy (&tmp, &be, sizeof tmp); return GINT64_FROM_BE (tmp); data/pkg-config-0.29.2/glib/glib/gtimezone.c:97:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. gint32 tmp; memcpy (&tmp, &be, sizeof tmp); return GINT32_FROM_BE (tmp); data/pkg-config-0.29.2/glib/glib/gtimezone.c:101:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. guint32 tmp; memcpy (&tmp, &be, sizeof tmp); return GUINT32_FROM_BE (tmp); data/pkg-config-0.29.2/glib/glib/gtimezone.c:710: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 (®tzi_prev, ®tzi, sizeof regtzi); data/pkg-config-0.29.2/glib/glib/gunicollate.c:463: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 (result + 1, str_norm, xfrm_len); data/pkg-config-0.29.2/glib/glib/guniprop.c:748: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 locale[2]; data/pkg-config-0.29.2/glib/glib/guniprop.c:822: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 (out_buffer, p, len); data/pkg-config-0.29.2/glib/glib/guniprop.c:932: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 (out_buffer + len, last, char_len); data/pkg-config-0.29.2/glib/glib/guniprop.c:1121: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 (out_buffer + len, last, char_len); data/pkg-config-0.29.2/glib/glib/gutf8.c:289: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 (out, start, end - start); data/pkg-config-0.29.2/glib/glib/gutils.c:141:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wc_fn[MAX_PATH]; data/pkg-config-0.29.2/glib/glib/gutils.c:199:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy (src, dest, len); data/pkg-config-0.29.2/glib/glib/gutils.c:336: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 (decorated_program, program, program_length); data/pkg-config-0.29.2/glib/glib/gutils.c:337: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 (decorated_program+program_length, p, q-p); data/pkg-config-0.29.2/glib/glib/gutils.c:398:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wfilename[MAXPATHLEN], wsysdir[MAXPATHLEN], data/pkg-config-0.29.2/glib/glib/gutils.c:498: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 (name + pathlen + 1, program, len); data/pkg-config-0.29.2/glib/glib/gutils.c:517:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. startp = memcpy (name - (p - path), path, p - path); data/pkg-config-0.29.2/glib/glib/gutils.c:603:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t path[MAX_PATH+1]; data/pkg-config-0.29.2/glib/glib/gutils.c:623:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wwindowsdir[MAX_PATH]; data/pkg-config-0.29.2/glib/glib/gutils.c:779:9: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buffer[UNLEN+1]; data/pkg-config-0.29.2/glib/glib/gutils.c:1090:4: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buf[MAX_PATH+1]; data/pkg-config-0.29.2/glib/glib/gutils.h:364:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wcbfr[1000]; \ data/pkg-config-0.29.2/glib/glib/gvariant-core.c:1054: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, value->contents.serialised.data, value->size); data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.c:566: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 (&tmpvalue.bytes, bytes, size); data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.c:583: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 (bytes, &tmpvalue.bytes, size); data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.c:1226: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 (value.data + child.size + 1, type_string, strlen (type_string)); data/pkg-config-0.29.2/glib/glib/gvarianttype.c:637: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 (new, type, length); data/pkg-config-0.29.2/glib/glib/gvarianttype.c:1382: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 buffer[1024]; data/pkg-config-0.29.2/glib/glib/gvarianttype.c:1407: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 (&buffer[offset], type, size); data/pkg-config-0.29.2/glib/glib/gvarianttype.c:1442: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 (new + 1, element, size); data/pkg-config-0.29.2/glib/glib/gvarianttype.c:1472: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 (new + 1, element, size); data/pkg-config-0.29.2/glib/glib/gvarianttype.c:1507: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 (new + 1, key, keysize); data/pkg-config-0.29.2/glib/glib/gvarianttype.c:1508: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 (new + 1 + keysize, value, valsize); data/pkg-config-0.29.2/glib/glib/gvarianttypeinfo.c:151: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 g_variant_type_info_basic_chars[24][2] = { data/pkg-config-0.29.2/glib/glib/gwakeup.c:209: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 buffer[16]; data/pkg-config-0.29.2/glib/glib/gwin32.c:97: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 iso639[10]; data/pkg-config-0.29.2/glib/glib/gwin32.c:98: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 iso3166[10]; data/pkg-config-0.29.2/glib/glib/gwin32.c:245:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wc_fn[MAX_PATH]; data/pkg-config-0.29.2/glib/glib/gwin32.c:566:4: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wshortname[MAX_PATH + 1]; data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:134: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 (file_name, dir, dir_len); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:137: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 (file_name + dir_len + add_slash, base, base_len + 1); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:141:38: [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 (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:153: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. char buf1[50+1]; data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:154: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. char buf2[50+1]; data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:303:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:329: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 (buf, dot, modifier - dot); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:337: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 (buf, "CP%u", GetACP ()); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:374:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:377:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:383:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:412:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:428:4: [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 (buf, "CP%u", cp[0]); data/pkg-config-0.29.2/glib/glib/win_iconv.c:710: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 mlang_dll[MAX_PATH + 100]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:720: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(mlang_dll, "mlang.dll"); data/pkg-config-0.29.2/glib/glib/win_iconv.c:906: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[128]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:1008: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). return atoi(name + 2); /* CP123 */ data/pkg-config-0.29.2/glib/glib/win_iconv.c:1010: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). return atoi(name); /* 123 */ data/pkg-config-0.29.2/glib/glib/win_iconv.c:1012: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). return atoi(name + 2); /* XX123 for debug */ data/pkg-config-0.29.2/glib/glib/win_iconv.c:1137: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 dllname[_MAX_PATH]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:1381:17: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). *wbufsize = MultiByteToWideChar(cv->codepage, mbtowc_flags (cv->codepage), data/pkg-config-0.29.2/glib/glib/win_iconv.c:1450: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 tmpbuf[MB_CHAR_MAX]; /* enough room for one character */ data/pkg-config-0.29.2/glib/glib/win_iconv.c:1463: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(buf, tmpbuf, tmpsize); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1625:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[MB_CHAR_MAX]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:1642: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. if (strncmp((char *)buf, iesc[i].esc, bufsize) == 0) data/pkg-config-0.29.2/glib/glib/win_iconv.c:1647: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. if (strncmp((char *)buf, iesc[i].esc, esc_len) == 0) data/pkg-config-0.29.2/glib/glib/win_iconv.c:1688: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(tmp, iesc[cs].esc, esc_len); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1691: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(tmp + esc_len, iso2022_SO_seq, 1); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1694: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(tmp + esc_len, buf, len); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1702: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(tmp, iesc[ISO2022JP_CS_JISX0201_KANA].esc, esc_len); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1703: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(tmp + esc_len, buf, len); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1729:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[MB_CHAR_MAX]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:1803: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(tmp, iesc[ISO2022JP_CS_ASCII].esc, esc_len); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1809: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(tmp, iso2022_SI_seq, 1); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1816: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(buf, tmp, len + esc_len); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1840: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(buf, iso2022_SI_seq, 1); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1845: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(buf + esc_len, iesc[ISO2022JP_CS_ASCII].esc, data/pkg-config-0.29.2/glib/glib/win_iconv.c:1882: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 inbuf[BUFSIZ]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:1883: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 outbuf[BUFSIZ]; data/pkg-config-0.29.2/glib/glib/win_iconv.c:1911:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in = fopen(argv[i], "rb"); data/pkg-config-0.29.2/main.c:671: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). log = fopen (getenv ("PKG_CONFIG_LOG"), "a"); data/pkg-config-0.29.2/parse.c:1097: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 (path, "r"); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:255:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmp->prefix); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:259: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). plen = strlen (postfix); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:276:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*new_prefix, cmp->prefix, len); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:277:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*new_prefix + len, postfix, plen); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:316: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). p = *new_prefix + strlen (*new_prefix); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:363:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (prefix); data/pkg-config-0.29.2/glib/glib/deprecated/gcompletion.c:366: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). plen = strlen (cmp->prefix); data/pkg-config-0.29.2/glib/glib/gbacktrace.c:337:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (out_fd[0], &c, 1)) data/pkg-config-0.29.2/glib/glib/gbase64.c:415: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). input_length = strlen (text); data/pkg-config-0.29.2/glib/glib/gbase64.c:450: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). input_length = strlen (text); data/pkg-config-0.29.2/glib/glib/gbookmarkfile.c:1439: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). length = strlen (buffer); data/pkg-config-0.29.2/glib/glib/gbookmarkfile.c:1665: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). length = strlen (data); data/pkg-config-0.29.2/glib/glib/gcharset.c:63: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). aliases += strlen (aliases) + 1; data/pkg-config-0.29.2/glib/glib/gcharset.c:65: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). aliases += strlen (aliases) + 1; data/pkg-config-0.29.2/glib/glib/gcharset.c:353: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). at_pos = locale + strlen (locale); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1552: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). length = strlen ((const gchar *) data); data/pkg-config-0.29.2/glib/glib/gchecksum.c:1776: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). length = strlen (str); data/pkg-config-0.29.2/glib/glib/gconstructor.h:34:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). __pragma(section(".CRT$XCU",read)) \ data/pkg-config-0.29.2/glib/glib/gconstructor.h:40:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). __pragma(section(".CRT$XCU",read)) \ data/pkg-config-0.29.2/glib/glib/gconstructor.h:52:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). section(".CRT$XCU",read) data/pkg-config-0.29.2/glib/glib/gconstructor.h:59:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). section(".CRT$XCU",read) data/pkg-config-0.29.2/glib/glib/gconvert.c:430: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 (str); data/pkg-config-0.29.2/glib/glib/gconvert.c:666: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 (str); data/pkg-config-0.29.2/glib/glib/gconvert.c:775: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). inbytes_remaining = strlen (p); data/pkg-config-0.29.2/glib/glib/gconvert.c:864: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). real_len = strlen (string); data/pkg-config-0.29.2/glib/glib/gconvert.c:1443: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 (escaped); data/pkg-config-0.29.2/glib/glib/gconvert.c:1579: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). path_part = uri + strlen ("file:"); data/pkg-config-0.29.2/glib/glib/gdate.c:2071:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = g_array_sized_new (FALSE, FALSE, sizeof (wchar_t), MAX (128, strlen (format) * 2)); data/pkg-config-0.29.2/glib/glib/gdate.c:2362:53: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_array_append_vals (result, tzinfo.StandardName, wcslen (tzinfo.StandardName)); data/pkg-config-0.29.2/glib/glib/gdate.c:2364:53: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_array_append_vals (result, tzinfo.DaylightName, wcslen (tzinfo.DaylightName)); data/pkg-config-0.29.2/glib/glib/gdatetime.c:2819: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). outstr = g_string_sized_new (strlen (format) * 2); data/pkg-config-0.29.2/glib/glib/genviron.c:61:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (variable); data/pkg-config-0.29.2/glib/glib/genviron.c:108: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). return envp[index] + strlen (variable) + 1; data/pkg-config-0.29.2/glib/glib/genviron.c:175:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (variable); data/pkg-config-0.29.2/glib/glib/genviron.c:603:16: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += wcslen (q) + 1; data/pkg-config-0.29.2/glib/glib/genviron.c:625:12: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += wcslen (q) + 1; data/pkg-config-0.29.2/glib/glib/genviron.c:642:10: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n += wcslen (strings + n) + 1; data/pkg-config-0.29.2/glib/glib/genviron.c:648:12: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n += wcslen (strings + n) + 1; data/pkg-config-0.29.2/glib/glib/gfileutils.c:382: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). extlen = strlen (lastdot); data/pkg-config-0.29.2/glib/glib/gfileutils.c:389: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). q = p + strlen (p); data/pkg-config-0.29.2/glib/glib/gfileutils.c:771:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read (fd, buf + bytes_read, size - bytes_read); data/pkg-config-0.29.2/glib/glib/gfileutils.c:1221: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). length = strlen (contents); data/pkg-config-0.29.2/glib/glib/gfileutils.c:1560: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). if (G_IS_DIR_SEPARATOR (tmpdir [strlen (tmpdir) - 1])) data/pkg-config-0.29.2/glib/glib/gfileutils.c:1686: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). gint separator_len = strlen (separator); data/pkg-config-0.29.2/glib/glib/gfileutils.c:1730: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). end = start + strlen (start); data/pkg-config-0.29.2/glib/glib/gfileutils.c:1918: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). end = start + strlen (start); data/pkg-config-0.29.2/glib/glib/gfileutils.c:2298: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). last_nonslash = strlen (file_name) - 1; data/pkg-config-0.29.2/glib/glib/gfileutils.c:2427: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). len = (guint) strlen (file_name) + 1; data/pkg-config-0.29.2/glib/glib/ggettext.c:72: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). const char *p = GLIB_LOCALE_DIR + strlen (GLIB_LOCALE_DIR); data/pkg-config-0.29.2/glib/glib/ggettext.c:234: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). gchar *tmp = g_alloca (strlen (msgctxtid) + 1); data/pkg-config-0.29.2/glib/glib/ggettext.c:278: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). size_t msgctxt_len = strlen (msgctxt) + 1; data/pkg-config-0.29.2/glib/glib/ggettext.c:279: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 msgid_len = strlen (msgid) + 1; data/pkg-config-0.29.2/glib/glib/ghmac.c:396: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). length = strlen (str); data/pkg-config-0.29.2/glib/glib/gi18n-lib.h:35:81: [1] (buffer) strlen: Does not handle 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 C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1) data/pkg-config-0.29.2/glib/glib/gi18n.h:31:70: [1] (buffer) strlen: Does not handle 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 C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1) data/pkg-config-0.29.2/glib/glib/giochannel.c:906: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). length = strlen (line_term); data/pkg-config-0.29.2/glib/glib/giochannel.c:2217: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). count = strlen (buf); data/pkg-config-0.29.2/glib/glib/giochannel.c:2332: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). from_buf_old_len = strlen (channel->partial_write_buf); data/pkg-config-0.29.2/glib/glib/giounix.c:194:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read (unix_channel->fd, buf, count); data/pkg-config-0.29.2/glib/glib/giowin32.c:375:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nbytes = read (channel->fd, buffer, nbytes); data/pkg-config-0.29.2/glib/glib/giowin32.c:1204:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read (win32_channel->fd, buf, count); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:770:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (fd, read_buf, 4096); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:887: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). length = strlen (data); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:1330: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 (locale && strlen (locale) <= 2) data/pkg-config-0.29.2/glib/glib/gkeyfile.c:1334: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). locale = g_strndup (locale + 1, strlen (locale) - 2); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:2199:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (value); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4045: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). string_value = g_new (gchar, strlen (value) + 1); data/pkg-config-0.29.2/glib/glib/gkeyfile.c:4146: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). length = strlen (string) + 1; data/pkg-config-0.29.2/glib/glib/glib-init.c:127: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). q = p + strlen (p); data/pkg-config-0.29.2/glib/glib/glibintl.h:20:66: [1] (buffer) strlen: Does not handle 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 C_(Context,String) glib_pgettext (Context "\004" String, strlen (Context) + 1) data/pkg-config-0.29.2/glib/glib/gmarkup.c:458: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). if (!g_utf8_validate (name, strlen (name), NULL)) data/pkg-config-0.29.2/glib/glib/gmarkup.c:711: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). to += strlen (buf) - 1; data/pkg-config-0.29.2/glib/glib/gmarkup.c:1073: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). text_len = strlen (text); data/pkg-config-0.29.2/glib/glib/gmarkup.c:2220: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). length = strlen (text); data/pkg-config-0.29.2/glib/glib/gmessages.c:297: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). res = write (fd, string, strlen (string)); data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:48:24: [1] (buffer) wcslen: Does not handle 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 local_wcslen wcslen data/pkg-config-0.29.2/glib/glib/gnulib/vasnprintf.c:585:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : strlen (a.arg[dp->arg_index].a.a_string); data/pkg-config-0.29.2/glib/glib/goption.c:1479: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). gint len = strlen (group->entries[j].long_name); data/pkg-config-0.29.2/glib/glib/goption.c:1916: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). arg_length = strlen (arg); data/pkg-config-0.29.2/glib/glib/gpattern.c:270: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). pspec->pattern_length = strlen (pattern); data/pkg-config-0.29.2/glib/glib/gpattern.c:417: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). return g_pattern_match (pspec, strlen (string), string, NULL); data/pkg-config-0.29.2/glib/glib/gpattern.c:443: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). ergo = g_pattern_match (pspec, strlen (string), string, NULL); data/pkg-config-0.29.2/glib/glib/gquark.c:144:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (string) + 1; data/pkg-config-0.29.2/glib/glib/gscanner.c:645: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). key.symbol = g_new (gchar, strlen (symbol) + 1); data/pkg-config-0.29.2/glib/glib/gscanner.c:1179:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read (scanner->input_fd, buffer, READ_BUFFER_SIZE); data/pkg-config-0.29.2/glib/glib/gscanner.c:1254:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read (scanner->input_fd, buffer, READ_BUFFER_SIZE); data/pkg-config-0.29.2/glib/glib/gscanner.c:2230:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (value.v_identifier) == 4) data/pkg-config-0.29.2/glib/glib/gslice.c:1397:20: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. aligned_memory = memalign (alignment, memsize); data/pkg-config-0.29.2/glib/glib/gspawn-win32.c:327:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk = read (fd, ((gchar*)report) + bytes, data/pkg-config-0.29.2/glib/glib/gspawn-win32.c:624:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (args[ARG_CHILD_ERR_REPORT], "#"); data/pkg-config-0.29.2/glib/glib/gspawn.c:184:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read (fd, buf, 4096); data/pkg-config-0.29.2/glib/glib/gspawn.c:1262:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chunk = read (fd, data/pkg-config-0.29.2/glib/glib/gspawn.c:1735:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (file) + 1; data/pkg-config-0.29.2/glib/glib/gspawn.c:1736: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). pathlen = strlen (path); data/pkg-config-0.29.2/glib/glib/gstdio.c:489:9: [1] (buffer) wcslen: Does not handle 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 = wcslen (wfilename); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:363: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). length = strlen (str) + 1; data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:429:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (new_str, str, n); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:579: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). l = 1 + strlen (string1); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:584: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). l += strlen (s); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:722: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). decimal_point_len = strlen (decimal_point); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:933: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). format_char = format[strlen (format) - 1]; data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:956: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). decimal_point_len = strlen (decimal_point); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:984: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). rest_len = strlen (p + (decimal_point_len-1)); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:1451: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). return dlength + strlen (s); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:1490: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 (str); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:1521: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 (str); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:1615: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). t = string + strlen (string) - 1; data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2012: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). dest = g_malloc (strlen (source) + 1); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2100: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). q = dest = g_malloc (strlen (source) * 4 + 1); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2198: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). g_memmove (string, start, strlen ((gchar *) start) + 1); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2224:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (string); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2280: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). gsize delimiter_len = strlen (delimiter); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2499: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). separator_len = strlen (separator); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2501: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). len = 1 + strlen (str_array[0]); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2503:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen (str_array[i]); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2546: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). separator_len = strlen (separator); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2555: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). len = 1 + strlen (s); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2560: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). len += separator_len + strlen (s); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2618: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). gsize needle_len = strlen (needle); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2669: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). needle_len = strlen (needle); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2670: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). haystack_len = strlen (haystack); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2720: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). gsize needle_len = strlen (needle); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2771: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). str_len = strlen (str); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2772: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). suffix_len = strlen (suffix); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2801: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). str_len = strlen (str); data/pkg-config-0.29.2/glib/glib/gstrfuncs.c:2802: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). prefix_len = strlen (prefix); data/pkg-config-0.29.2/glib/glib/gstring.c:157:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (init); data/pkg-config-0.29.2/glib/glib/gstring.c:440: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 (val); data/pkg-config-0.29.2/glib/glib/gstring.c:558: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). end = unescaped + strlen (unescaped); data/pkg-config-0.29.2/glib/glib/gstring.c:920: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). return g_string_overwrite_len (string, pos, val, strlen (val)); data/pkg-config-0.29.2/glib/glib/gstring.c:954: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 (val); data/pkg-config-0.29.2/glib/glib/gstringchunk.c:303: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 (string); data/pkg-config-0.29.2/glib/glib/gtestutils.c:1174:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (s) >= 32) /* require 4 * 8 chars */ data/pkg-config-0.29.2/glib/glib/gtestutils.c:2116:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen (path); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2124: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). guint n = l ? strlen (tc->name) : 0; data/pkg-config-0.29.2/glib/glib/gtestutils.c:2136: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). guint n = l ? strlen (ts->name) : 0; data/pkg-config-0.29.2/glib/glib/gtestutils.c:2183: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). guint l, n = strlen (suite->name); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2194: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). l = strlen (path); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2273: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). __glib_assert_msg = (char*) malloc (strlen (s) + 1); data/pkg-config-0.29.2/glib/glib/gtestutils.c:2968: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). guint l = strlen (msg->strings[ui]); data/pkg-config-0.29.2/glib/glib/gtimezone.c:565:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (rule->std_name, (gchar*)tzi->StandardName, NAME_SIZE - 1); data/pkg-config-0.29.2/glib/glib/gtimezone.c:566:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (rule->dlt_name, (gchar*)tzi->DaylightName, NAME_SIZE - 1); data/pkg-config-0.29.2/glib/glib/gtimezone.c:1213:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buffer, name_pos, len); data/pkg-config-0.29.2/glib/glib/gunicollate.c:460: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). xfrm_len = strlen (str_norm); data/pkg-config-0.29.2/glib/glib/gunicollate.c:564: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 (str); data/pkg-config-0.29.2/glib/glib/guniprop.c:818: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 (p) + 1; data/pkg-config-0.29.2/glib/glib/guniprop.c:820:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (p); data/pkg-config-0.29.2/glib/glib/gurifuncs.c:98: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). escaped_string_end = escaped_string + strlen (escaped_string); data/pkg-config-0.29.2/glib/glib/gurifuncs.c:248: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). s = g_string_sized_new (strlen (unescaped) + 10); data/pkg-config-0.29.2/glib/glib/gutf8.c:435:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, src, s - src); data/pkg-config-0.29.2/glib/glib/gutf8.c:1683: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 (str); data/pkg-config-0.29.2/glib/glib/gutf8.c:1712: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). remaining_bytes = strlen (name); data/pkg-config-0.29.2/glib/glib/gutils.c:321: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). const gint program_length = strlen (program); data/pkg-config-0.29.2/glib/glib/gutils.c:493:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (program) + 1; data/pkg-config-0.29.2/glib/glib/gutils.c:494: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). pathlen = strlen (path); data/pkg-config-0.29.2/glib/glib/gutils.c:999: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). k = strlen (tmp); data/pkg-config-0.29.2/glib/glib/gutils.c:1600:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (buffer); data/pkg-config-0.29.2/glib/glib/gutils.c:1608: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). if (strncmp (p, "XDG_DESKTOP_DIR", strlen ("XDG_DESKTOP_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1611: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). p += strlen ("XDG_DESKTOP_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1613: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). else if (strncmp (p, "XDG_DOCUMENTS_DIR", strlen ("XDG_DOCUMENTS_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1616: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). p += strlen ("XDG_DOCUMENTS_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1618:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp (p, "XDG_DOWNLOAD_DIR", strlen ("XDG_DOWNLOAD_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1621: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). p += strlen ("XDG_DOWNLOAD_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1623:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp (p, "XDG_MUSIC_DIR", strlen ("XDG_MUSIC_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1626: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). p += strlen ("XDG_MUSIC_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1628:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp (p, "XDG_PICTURES_DIR", strlen ("XDG_PICTURES_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1631: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). p += strlen ("XDG_PICTURES_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1633: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). else if (strncmp (p, "XDG_PUBLICSHARE_DIR", strlen ("XDG_PUBLICSHARE_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1636: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). p += strlen ("XDG_PUBLICSHARE_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1638: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). else if (strncmp (p, "XDG_TEMPLATES_DIR", strlen ("XDG_TEMPLATES_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1641: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). p += strlen ("XDG_TEMPLATES_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1643: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). else if (strncmp (p, "XDG_VIDEOS_DIR", strlen ("XDG_VIDEOS_DIR")) == 0) data/pkg-config-0.29.2/glib/glib/gutils.c:1646: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). p += strlen ("XDG_VIDEOS_DIR"); data/pkg-config-0.29.2/glib/glib/gutils.c:1681:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (d); data/pkg-config-0.29.2/glib/glib/gvariant-parser.c:306: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). gint length = strlen (token); data/pkg-config-0.29.2/glib/glib/gvariant-parser.c:416: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 = result = g_malloc (strlen (left) + strlen (right)); data/pkg-config-0.29.2/glib/glib/gvariant-parser.c:416: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). out = result = g_malloc (strlen (left) + strlen (right)); data/pkg-config-0.29.2/glib/glib/gvariant-parser.c:1528:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buffer, src + *src_ofs, length); data/pkg-config-0.29.2/glib/glib/gvariant-parser.c:1570: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). length = strlen (token); data/pkg-config-0.29.2/glib/glib/gvariant-parser.c:1699: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). length = strlen (token); data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.c:1209: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). return child.size + 1 + strlen (type_string); data/pkg-config-0.29.2/glib/glib/gvariant-serialiser.c:1226: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). memcpy (value.data + child.size + 1, type_string, strlen (type_string)); data/pkg-config-0.29.2/glib/glib/gvariant.c:1273: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). string, strlen (string) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1305: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). bytes = g_bytes_new_take (string, strlen (string) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1343: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). bytes = g_bytes_new_take (string, strlen (string) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1368: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). object_path, strlen (object_path) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1393: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). return g_variant_serialiser_is_object_path (string, strlen (string) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1414: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). signature, strlen (signature) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1437: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). return g_variant_serialiser_is_signature (string, strlen (string) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1835: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). string, strlen (string) + 1); data/pkg-config-0.29.2/glib/glib/gvariant.c:1908: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). size = strlen (original); data/pkg-config-0.29.2/glib/glib/gvariant.c:2735:12: [1] (buffer) equal: 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. gboolean equal; data/pkg-config-0.29.2/glib/glib/gvariant.c:2780:10: [1] (buffer) equal: 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. return equal; data/pkg-config-0.29.2/glib/glib/gwakeup.c:212:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read (wakeup->fds[0], buffer, sizeof buffer) == sizeof buffer); data/pkg-config-0.29.2/glib/glib/gwin32.c:189:16: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nchars = wcslen (msg); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:87:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:88:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:128: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 dir_len = strlen (dir); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:129:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t base_len = strlen (base); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:158:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:167:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:174:12: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:176: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). l1 = strlen (buf1); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:177: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). l2 = strlen (buf2); data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:450: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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:450: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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/pkg-config-0.29.2/glib/glib/libcharset/localcharset.c:454: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). codeset = aliases + strlen (aliases) + 1; data/pkg-config-0.29.2/glib/glib/win_iconv.c:60:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, src, size); \ data/pkg-config-0.29.2/glib/glib/win_iconv.c:719:13: [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(mlang_dll, "\\"); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1122:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(token); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1123: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). const char *p = str + strlen(str); data/pkg-config-0.29.2/glib/glib/win_iconv.c:1157: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). e = p + strlen(p); data/pkg-config-0.29.2/main.c:758: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). if (strlen(key) > 0) data/pkg-config-0.29.2/parse.c:69:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (stream); data/pkg-config-0.29.2/parse.c:93:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int next_c = getc (stream); data/pkg-config-0.29.2/parse.c:120:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int next_c = getc (stream); data/pkg-config-0.29.2/parse.c:151:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/pkg-config-0.29.2/parse.c:593: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 r_s = strlen(s)+10, c = 0; data/pkg-config-0.29.2/parse.c:1052: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). strncmp (p, pkg->orig_prefix, strlen (pkg->orig_prefix)) == 0 && data/pkg-config-0.29.2/parse.c:1053: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). G_IS_DIR_SEPARATOR (p[strlen (pkg->orig_prefix)])) data/pkg-config-0.29.2/parse.c:1058: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 (pkg->orig_prefix), NULL); data/pkg-config-0.29.2/pkg.c:95:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (str); data/pkg-config-0.29.2/pkg.c:112:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (str); data/pkg-config-0.29.2/pkg.c:133: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). int dirnamelen = strlen (dirname); data/pkg-config-0.29.2/pkg.c:298: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). key[strlen (key) - EXT_LEN] = '\0'; data/pkg-config-0.29.2/pkg.c:1193: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). mlen = MAX (mlen, strlen (key)); data/pkg-config-0.29.2/pkg.c:1203: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). pad = g_strnfill (mlen + 1 - strlen (pkg->key), ' '); data/pkg-config-0.29.2/rpmvercmp.c:46: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). str1 = g_alloca(strlen(a) + 1); data/pkg-config-0.29.2/rpmvercmp.c:47: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). str2 = g_alloca(strlen(b) + 1); data/pkg-config-0.29.2/rpmvercmp.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). if (strlen(one) > strlen(two)) return 1; data/pkg-config-0.29.2/rpmvercmp.c:106: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 (strlen(one) > strlen(two)) return 1; data/pkg-config-0.29.2/rpmvercmp.c:107:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(two) > strlen(one)) return -1; data/pkg-config-0.29.2/rpmvercmp.c:107: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 (strlen(two) > strlen(one)) return -1; ANALYSIS SUMMARY: Hits = 647 Lines analyzed = 199371 in approximately 4.58 seconds (43560 lines/second) Physical Source Lines of Code (SLOC) = 134823 Hits@level = [0] 82 [1] 233 [2] 220 [3] 138 [4] 53 [5] 3 Hits@level+ = [0+] 729 [1+] 647 [2+] 414 [3+] 194 [4+] 56 [5+] 3 Hits/KSLOC@level+ = [0+] 5.40709 [1+] 4.79888 [2+] 3.07069 [3+] 1.43892 [4+] 0.415359 [5+] 0.0222514 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.