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/gtkextra-3.3.4/glade/glade-gtksheet-editor.c
Examining data/gtkextra-3.3.4/gtkextra/testgtkfont.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasellipse.h
Examining data/gtkextra-3.3.4/gtkextra/testgtksheet.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotsegment.c
Examining data/gtkextra-3.3.4/gtkextra/gtkdataentry.c
Examining data/gtkextra-3.3.4/gtkextra/gtkpsfont.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvas.c
Examining data/gtkextra-3.3.4/gtkextra/gtkdirtree.c
Examining data/gtkextra-3.3.4/gtkextra/testiterator.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotsegment.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotarray.c
Examining data/gtkextra-3.3.4/gtkextra/testprintexport.c
Examining data/gtkextra-3.3.4/gtkextra/testpixmap.c
Examining data/gtkextra-3.3.4/gtkextra/gtktogglecombo.h
Examining data/gtkextra-3.3.4/gtkextra/gtkcheckitem.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotsurface.c
Examining data/gtkextra-3.3.4/gtkextra/gtkcombobutton.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotgdk.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcsurface.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotpolar.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcandle.h
Examining data/gtkextra-3.3.4/gtkextra/testflux.c
Examining data/gtkextra-3.3.4/gtkextra/testsegment.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvas.h
Examining data/gtkextra-3.3.4/gtkextra/testimage.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotdt.c
Examining data/gtkextra-3.3.4/gtkextra/testpolar.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcairo.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotpixmap.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotgdk.h
Examining data/gtkextra-3.3.4/gtkextra/testgtkplotcanvas.c
Examining data/gtkextra-3.3.4/gtkextra/gtkfontcombo.h
Examining data/gtkextra-3.3.4/gtkextra/gtkdataentry.h
Examining data/gtkextra-3.3.4/gtkextra/testbubbles.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcairo.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotflux.h
Examining data/gtkextra-3.3.4/gtkextra/gtkcombobutton.c
Examining data/gtkextra-3.3.4/gtkextra/gtkpsfont.h
Examining data/gtkextra-3.3.4/gtkextra/gtkiconlist.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotps.h
Examining data/gtkextra-3.3.4/gtkextra/testcontour.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotpc.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasrectangle.h
Examining data/gtkextra-3.3.4/gtkextra/gtktogglecombo.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplot.c
Examining data/gtkextra-3.3.4/gtkextra/gtkitementry.h
Examining data/gtkextra-3.3.4/gtkextra/gtksheet.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotps.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotbox.h
Examining data/gtkextra-3.3.4/gtkextra/gtkitementry.c
Examining data/gtkextra-3.3.4/gtkextra/gtkdataformat.h
Examining data/gtkextra-3.3.4/gtkextra/testcharsel.c
Examining data/gtkextra-3.3.4/gtkextra/gtkcolorcombo.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasplot.c
Examining data/gtkextra-3.3.4/gtkextra/gtkbordercombo.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotdata.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotbar.h
Examining data/gtkextra-3.3.4/gtkextra/gtkiconlist.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvastext.c
Examining data/gtkextra-3.3.4/gtkextra/gtkdatatextview.h
Examining data/gtkextra-3.3.4/gtkextra/gtkdirtree.h
Examining data/gtkextra-3.3.4/gtkextra/gtkextra-compat.h
Examining data/gtkextra-3.3.4/gtkextra/testgtkplot.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplot.h
Examining data/gtkextra-3.3.4/gtkextra/gtkdatatextview.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplot3d.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotpixmap.c
Examining data/gtkextra-3.3.4/gtkextra/gtkcolorcombo.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotsurface.h
Examining data/gtkextra-3.3.4/gtkextra/gtkfilelist.c
Examining data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.h
Examining data/gtkextra-3.3.4/gtkextra/gtkfilelist.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasplot.h
Examining data/gtkextra-3.3.4/gtkextra/testgtkplotdt.c
Examining data/gtkextra-3.3.4/gtkextra/gtksheetcolumn.h
Examining data/gtkextra-3.3.4/gtkextra/testcandles.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotbox.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotdt.h
Examining data/gtkextra-3.3.4/gtkextra/gtkbordercombo.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvaspixmap.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasrectangle.c
Examining data/gtkextra-3.3.4/gtkextra/gtkcharsel.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotarray.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasellipse.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasline.c
Examining data/gtkextra-3.3.4/gtkextra/gtksheet.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotbubble.c
Examining data/gtkextra-3.3.4/gtkextra/gtkextra.h
Examining data/gtkextra-3.3.4/gtkextra/gtkfileicons.h
Examining data/gtkextra-3.3.4/gtkextra/gtkcharsel.c
Examining data/gtkextra-3.3.4/gtkextra/gtkdataformat.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvaspixmap.c
Examining data/gtkextra-3.3.4/gtkextra/gtkcheckitem.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotdata.c
Examining data/gtkextra-3.3.4/gtkextra/icons.h
Examining data/gtkextra-3.3.4/gtkextra/gtkfontcombo.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvasline.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotpc.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplot3d.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotflux.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcandle.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcsurface.c
Examining data/gtkextra-3.3.4/gtkextra/gtkextraicons.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotbar.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotbubble.h
Examining data/gtkextra-3.3.4/gtkextra/testrealtime.c
Examining data/gtkextra-3.3.4/gtkextra/testgtkfilesel.c
Examining data/gtkextra-3.3.4/gtkextra/testdt.c
Examining data/gtkextra-3.3.4/gtkextra/testgtkiconlist.c
Examining data/gtkextra-3.3.4/gtkextra/testgtkplot3d.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotprint.c
Examining data/gtkextra-3.3.4/gtkextra/gtkplotprint.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotcanvastext.h
Examining data/gtkextra-3.3.4/gtkextra/gtkplotpolar.h
Examining data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c
Examining data/gtkextra-3.3.4/gtkextra/pixmaps.h
Examining data/gtkextra-3.3.4/gtkextra/testboxes.c
Examining data/gtkextra-3.3.4/gtkextra/gtkextra.c
Examining data/gtkextra-3.3.4/gtkextra/gtksheetcolumn.c

FINAL RESULTS:

data/gtkextra-3.3.4/gtkextra/gtkcolorcombo.c:401:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(color_string,"X     c %s",name);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:540:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root,"%s",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:541:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root1,"%s.",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:542:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root2,"%s..",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:543:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root3,"%s..%s",G_DIR_SEPARATOR_S,G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:544:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root4,"%s.%s",G_DIR_SEPARATOR_S,G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:434:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root,"%s",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:435:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root1,"%s.",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:436:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root2,"%s..",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:437:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root3,"%s..%s",G_DIR_SEPARATOR_S,G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:438:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root4,"%s.%s",G_DIR_SEPARATOR_S,G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:797:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root,"%s",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:798:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root1,"%s.",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:799:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root2,"%s..",G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:800:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root3,"%s..%s",G_DIR_SEPARATOR_S,G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:801:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(root4,"%s.%s",G_DIR_SEPARATOR_S,G_DIR_SEPARATOR_S);
data/gtkextra-3.3.4/gtkextra/gtkiconlist.c:1580:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(entry_label,"%s...", entry_label);
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:300:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(label, text);
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:1064:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cell,"  %s:%d  ", gtk_sheet_get_column_title(GTK_SHEET(widget), column), row);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:203:45:  [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.
  gtk_icon_file_selection_open_dir(filesel, g_get_home_dir());
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:229:3:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
  getwd (cwd_path);
data/gtkextra-3.3.4/gtkextra/testdt.c:48: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("HAVE_PROGRESSBAR"))
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:228:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str_buf, "%.*f", comma_digits, d);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:230:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str_buf, "%.*g", SIGNIFICANT_DIGITS, d);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:242:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str_buf, "%d", i);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:277: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 (localhost, "LocalHost");
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:279: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 (localhost, "My PC");
data/gtkextra-3.3.4/gtkextra/gtkfontcombo.c:369:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     if(atoi(default_sizes[i]) >= height) break;
data/gtkextra-3.3.4/gtkextra/gtkfontcombo.c:391:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	isize = atoi(size);
data/gtkextra-3.3.4/gtkextra/gtkitementry.c:944: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(entry->text + index, new_text, new_text_length);
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3807: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 (label, "%*.*E", 1, precision, val);
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3811:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (label, "10\\S%i", power);
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3813:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (label, "%*.*f\\4x\\N10\\S%i", 1, precision, v, power);
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3818: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 (label, "%*.*f", intspace, precision, val);
data/gtkextra-3.3.4/gtkextra/gtkplot.c:4110: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).
           insert_char = (gchar)atoi(num);
data/gtkextra-3.3.4/gtkextra/gtkplotbubble.c:455: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(text, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotbubble.c:459: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(text, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotbubble.c:534: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(text_max, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotbubble.c:539: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(text_max, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotcairo.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).
           insert_char = (gchar)atoi(num);
data/gtkextra-3.3.4/gtkextra/gtkplotdt.c:114: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(nodes,data->nodes,sizeof(GtkPlotDTnode)*data->node_cnt);
data/gtkextra-3.3.4/gtkextra/gtkplotdt.c:292: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(n, &node, sizeof(GtkPlotDTnode));
data/gtkextra-3.3.4/gtkextra/gtkplotdt.c:910:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(data->tmp_nodes[node_idx]),n,sizeof(GtkPlotDTnode));
data/gtkextra-3.3.4/gtkextra/gtkplotflux.c:565: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(text, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotflux.c:569: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(text, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotflux.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(text_max, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotflux.c:655: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(text_max, aux_text, 100*sizeof(gchar));
data/gtkextra-3.3.4/gtkextra/gtkplotgdk.c:853: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).
           insert_char = (gchar)atoi(num);
data/gtkextra-3.3.4/gtkextra/gtkplotps.c:502:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((psout = fopen(ps->psname, "w")) == NULL){
data/gtkextra-3.3.4/gtkextra/gtkplotps.c:1112:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  i = atoi(num);
data/gtkextra-3.3.4/gtkextra/gtksheet.c:13548:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(label_buf, "%d", index);
data/gtkextra-3.3.4/gtkextra/testboxes.c:144:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testbubbles.c:157:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testcandles.c:153:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testcontour.c:143:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testdt.c:30: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[100];
data/gtkextra-3.3.4/gtkextra/testdt.c:39:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(f=fopen(argv[1],"r"))) {
data/gtkextra-3.3.4/gtkextra/testflux.c:156:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testgtkiconlist.c:85:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(label,"Data %d",i); 
data/gtkextra-3.3.4/gtkextra/testgtkiconlist.c:94:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(label,"Plot %d",i); 
data/gtkextra-3.3.4/gtkextra/testgtkplot.c:235:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testgtkplot3d.c:61:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testgtkplot3d.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char buffer[1000];
data/gtkextra-3.3.4/gtkextra/testgtkplot3d.c:237:21:  [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 (argc!=2 || !(f=fopen(argv[1],"r"))) {
data/gtkextra-3.3.4/gtkextra/testgtkplotdt.c:70:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testgtkplotdt.c:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char buffer[1000];
data/gtkextra-3.3.4/gtkextra/testgtkplotdt.c:243:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if (!(f=fopen(argv[1],"r"))) {
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:318:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (label, "%*.*E", intspace, DEFAULT_PRECISION, val);
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:323:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (label, "%*.*f", intspace, DEFAULT_PRECISION, val);
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:325:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (label, "%*.*E", intspace, DEFAULT_PRECISION, val);
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:333: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 label[400];
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:1056: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 cell[100];
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:1066:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cell, " ROW: %d COLUMN: %d ", row, column);
data/gtkextra-3.3.4/gtkextra/testimage.c:90:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testiterator.c:39:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testiterator.c:62:2:  [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(point_label, "%d\n", iter);
data/gtkextra-3.3.4/gtkextra/testpixmap.c:39:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testpolar.c:148:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testprintexport.c:105:33:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                                strcat(filename,".eps");
data/gtkextra-3.3.4/gtkextra/testprintexport.c:121:33:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                                strcat(filename,".pdf");
data/gtkextra-3.3.4/gtkextra/testprintexport.c:134:33:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                                strcat(filename,".png");
data/gtkextra-3.3.4/gtkextra/testrealtime.c:42:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/testsegment.c:154:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(label, "%d", nlayers);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:172:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (len < 0 ) len = strlen(str);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:222:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p += strlen(pat);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:909: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).
    if (length < 0) length = strlen(str);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:994: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).
    if (new_text_length < 0) new_text_length = strlen(my_text);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:1009: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).
        new_text_length = strlen(my_text);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:1021: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).
        gint old_length = strlen(old_text);
data/gtkextra-3.3.4/gtkextra/gtkdataentry.c:1057: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).
            new_text_length = strlen(my_text);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:85: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).
    radix_str = g_locale_to_utf8(r, strlen(r), NULL, NULL, &err);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:96:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    thousands_c = g_locale_to_utf8(tc, strlen(r), NULL, NULL, &err);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:125: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).
    gint thousands_len = strlen(thousands_c);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:128: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).
    gint len = strlen(cp);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:164:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dst - thousands_len + 1, thousands_c, thousands_len);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:182: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).
    gint i=0, l = strlen(src);
data/gtkextra-3.3.4/gtkextra/gtkdataformat.c:186: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).
    gint thousands_len = strlen(thousands_c);
data/gtkextra-3.3.4/gtkextra/gtkdatatextview.c:414:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (new_text_len_bytes < 0) new_text_len_bytes = strlen(new_text);
data/gtkextra-3.3.4/gtkextra/gtkdatatextview.c:456: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).
	gint old_length_bytes = old_text ? strlen(old_text) : 0;
data/gtkextra-3.3.4/gtkextra/gtkdatatextview.c:478:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(cp, new_text, cpe-new_text);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:340: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).
    drive += (strlen(drive) + 1);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:550: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).
     length = strlen(aux_path);
data/gtkextra-3.3.4/gtkextra/gtkdirtree.c:597:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(aux_path) == 0)
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:51: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).
  int slen = strlen(s);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:52: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).
  int plen = strlen(pattern);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:444: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).
     length = strlen(aux_path);
data/gtkextra-3.3.4/gtkextra/gtkfilelist.c:492:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if(strlen(aux_path) == 0)
data/gtkextra-3.3.4/gtkextra/gtkfontcombo.c:301: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).
  if(!text || strlen(text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkfontcombo.c:306: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).
  if(!text || strlen(text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:175: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).
  dir_len = strlen (current_dir);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:549:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(path) == 1)
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:804: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(aux_path);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:852:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(aux_path) == 0)
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:869: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).
  dir_len = strlen (current_dir);
data/gtkextra-3.3.4/gtkextra/gtkiconfilesel.c:908: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(path[strlen(path)-1] != G_DIR_SEPARATOR)
data/gtkextra-3.3.4/gtkextra/gtkiconlist.c:1554: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).
  entry_label = (gchar *)g_malloc(strlen(label) + 5);
data/gtkextra-3.3.4/gtkextra/gtkiconlist.c:1567: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).
  for(n = 0; n < strlen(label); n++){
data/gtkextra-3.3.4/gtkextra/gtkiconlist.c:1568: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).
     space = strlen(label) - n + 1;
data/gtkextra-3.3.4/gtkextra/gtkiconlist.c:1579:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(entry_label) < strlen(label))
data/gtkextra-3.3.4/gtkextra/gtkiconlist.c:1579:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(entry_label) < strlen(label))
data/gtkextra-3.3.4/gtkextra/gtkitementry.c:774:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(text, new_text, new_text_length);
data/gtkextra-3.3.4/gtkextra/gtkitementry.c:883: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).
	new_text_length = strlen(new_text);
data/gtkextra-3.3.4/gtkextra/gtkitementry.c:952: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).
    entry->text_length = strlen(entry->text);
data/gtkextra-3.3.4/gtkextra/gtkitementry.c:1251: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).
    entry->preedit_length = strlen(preedit_string);
data/gtkextra-3.3.4/gtkextra/gtkitementry.c:1307: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).
    gtk_editable_insert_text(editable, str, strlen(str), &tmp_pos);
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3838:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(text.text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3856:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(text.text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkplot.c:3917: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).
  if(!text || strlen(text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkplotcairo.c:616: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).
  if(!text || strlen(text) == 0) return 0;
data/gtkextra-3.3.4/gtkextra/gtkplotcairo.c:626:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pango_layout_set_text(GTK_PLOT_CAIRO(pc)->layout, text, strlen(text));
data/gtkextra-3.3.4/gtkextra/gtkplotcairo.c:1060: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).
     new_text = (gchar *) g_new0(gchar , strlen(text)+1); /* Tiny C Compiler support */
data/gtkextra-3.3.4/gtkextra/gtkplotcsurface.c:1698:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(GTK_PLOT_DATA(data)->show_legend && data->legend && strlen(data->legend) > 0){
data/gtkextra-3.3.4/gtkextra/gtkplotgdk.c:572: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).
  if(!text || strlen(text) == 0) return 0;
data/gtkextra-3.3.4/gtkextra/gtkplotgdk.c:576:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pango_layout_set_text(GTK_PLOT_GDK(pc)->layout, text, strlen(text));
data/gtkextra-3.3.4/gtkextra/gtkplotgdk.c:653: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).
  if(!text || strlen(text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkplotgdk.c:986: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).
     new_text = (gchar *) g_new0(gchar , strlen(text)+1); /* Tiny C Compiler support */
data/gtkextra-3.3.4/gtkextra/gtkplotpc.c:420:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkplotps.c:931:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (text == NULL || strlen(text) == 0) return;
data/gtkextra-3.3.4/gtkextra/gtkplotsurface.c:950:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(data->legend && strlen(data->legend) > 0)
data/gtkextra-3.3.4/gtkextra/gtkplotsurface.c:999:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(data->legend && strlen(data->legend) > 0)
data/gtkextra-3.3.4/gtkextra/gtkplotsurface.c:1039: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(data->legend && strlen(data->legend) > 0) gtk_plot_draw_text(plot, legend);
data/gtkextra-3.3.4/gtkextra/testgtkfont.c:38:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 if (strlen(text) == 0)
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:256:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(text) != 0)
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:258: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).
        for (ipos=0; ipos<strlen(text); ipos++)
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:322: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).
        intspace=MIN(intspace, strlen(text)-digspace-1);
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:324:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(label) > space)
data/gtkextra-3.3.4/gtkextra/testgtksheet.c:539: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 (text && strlen(text) > 0)
data/gtkextra-3.3.4/gtkextra/testprintexport.c:103: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).
                        if (strcmp(filename+strlen(filename)-4, ".eps") != 0) {
data/gtkextra-3.3.4/gtkextra/testprintexport.c:104:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                filename = (gchar *) g_realloc(filename,sizeof(gchar)*(strlen(filename)+4));
data/gtkextra-3.3.4/gtkextra/testprintexport.c:119: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).
                        if (strcmp(filename+strlen(filename)-4, ".pdf") != 0) {
data/gtkextra-3.3.4/gtkextra/testprintexport.c:120:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                filename = (gchar *) g_realloc(filename,sizeof(gchar)*(strlen(filename)+4));
data/gtkextra-3.3.4/gtkextra/testprintexport.c:132: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).
                        if (strcmp(filename+strlen(filename)-4, ".png") != 0) {
data/gtkextra-3.3.4/gtkextra/testprintexport.c:133:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                filename = (gchar *) g_realloc(filename,sizeof(gchar)*(strlen(filename)+4));

ANALYSIS SUMMARY:

Hits = 153
Lines analyzed = 87973 in approximately 1.83 seconds (48105 lines/second)
Physical Source Lines of Code (SLOC) = 60732
Hits@level = [0] 269 [1]  70 [2]  61 [3]   3 [4]  19 [5]   0
Hits@level+ = [0+] 422 [1+] 153 [2+]  83 [3+]  22 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 6.94856 [1+] 2.51926 [2+] 1.36666 [3+] 0.362247 [4+] 0.31285 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.