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/synaptic-0.90.2/common/i18n.h
Examining data/synaptic-0.90.2/common/pkg_acqfile.cc
Examining data/synaptic-0.90.2/common/pkg_acqfile.h
Examining data/synaptic-0.90.2/common/raptoptions.cc
Examining data/synaptic-0.90.2/common/raptoptions.h
Examining data/synaptic-0.90.2/common/rcacheactor.cc
Examining data/synaptic-0.90.2/common/rcacheactor.h
Examining data/synaptic-0.90.2/common/rcdscanner.cc
Examining data/synaptic-0.90.2/common/rcdscanner.h
Examining data/synaptic-0.90.2/common/rconfiguration.cc
Examining data/synaptic-0.90.2/common/rconfiguration.h
Examining data/synaptic-0.90.2/common/rdependency.h
Examining data/synaptic-0.90.2/common/rinstallprogress.cc
Examining data/synaptic-0.90.2/common/rinstallprogress.h
Examining data/synaptic-0.90.2/common/rpackage.cc
Examining data/synaptic-0.90.2/common/rpackage.h
Examining data/synaptic-0.90.2/common/rpackagecache.cc
Examining data/synaptic-0.90.2/common/rpackagecache.h
Examining data/synaptic-0.90.2/common/rpackagefilter.cc
Examining data/synaptic-0.90.2/common/rpackagefilter.h
Examining data/synaptic-0.90.2/common/rpackagelistactor.cc
Examining data/synaptic-0.90.2/common/rpackagelistactor.h
Examining data/synaptic-0.90.2/common/rpackagelister.cc
Examining data/synaptic-0.90.2/common/rpackagelister.h
Examining data/synaptic-0.90.2/common/rpackagemanager.h
Examining data/synaptic-0.90.2/common/rpackagestatus.cc
Examining data/synaptic-0.90.2/common/rpackagestatus.h
Examining data/synaptic-0.90.2/common/rpackageview.cc
Examining data/synaptic-0.90.2/common/rpackageview.h
Examining data/synaptic-0.90.2/common/rpmindexcopy.cc
Examining data/synaptic-0.90.2/common/rpmindexcopy.h
Examining data/synaptic-0.90.2/common/rsources.cc
Examining data/synaptic-0.90.2/common/rsources.h
Examining data/synaptic-0.90.2/common/rswig.cc
Examining data/synaptic-0.90.2/common/rswig.h
Examining data/synaptic-0.90.2/common/rtagcollbuilder.cc
Examining data/synaptic-0.90.2/common/rtagcollbuilder.h
Examining data/synaptic-0.90.2/common/rtagcollfilter.cc
Examining data/synaptic-0.90.2/common/rtagcollfilter.h
Examining data/synaptic-0.90.2/common/ruserdialog.cc
Examining data/synaptic-0.90.2/common/ruserdialog.h
Examining data/synaptic-0.90.2/common/sections_trans.cc
Examining data/synaptic-0.90.2/common/sections_trans.h
Examining data/synaptic-0.90.2/gtk/gsynaptic.cc
Examining data/synaptic-0.90.2/gtk/gsynaptic.h
Examining data/synaptic-0.90.2/gtk/gtk3compat.h
Examining data/synaptic-0.90.2/gtk/gtkpkglist.cc
Examining data/synaptic-0.90.2/gtk/gtkpkglist.h
Examining data/synaptic-0.90.2/gtk/gtktagtree.cc
Examining data/synaptic-0.90.2/gtk/gtktagtree.h
Examining data/synaptic-0.90.2/gtk/rgaboutpanel.cc
Examining data/synaptic-0.90.2/gtk/rgaboutpanel.h
Examining data/synaptic-0.90.2/gtk/rgcacheprogress.cc
Examining data/synaptic-0.90.2/gtk/rgcacheprogress.h
Examining data/synaptic-0.90.2/gtk/rgcdscanner.cc
Examining data/synaptic-0.90.2/gtk/rgcdscanner.h
Examining data/synaptic-0.90.2/gtk/rgchangelogdialog.cc
Examining data/synaptic-0.90.2/gtk/rgchangelogdialog.h
Examining data/synaptic-0.90.2/gtk/rgchangeswindow.cc
Examining data/synaptic-0.90.2/gtk/rgchangeswindow.h
Examining data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc
Examining data/synaptic-0.90.2/gtk/rgdebinstallprogress.h
Examining data/synaptic-0.90.2/gtk/rgdummyinstallprogress.cc
Examining data/synaptic-0.90.2/gtk/rgdummyinstallprogress.h
Examining data/synaptic-0.90.2/gtk/rgfetchprogress.cc
Examining data/synaptic-0.90.2/gtk/rgfetchprogress.h
Examining data/synaptic-0.90.2/gtk/rgfiltermanager.cc
Examining data/synaptic-0.90.2/gtk/rgfiltermanager.h
Examining data/synaptic-0.90.2/gtk/rgfindwindow.cc
Examining data/synaptic-0.90.2/gtk/rgfindwindow.h
Examining data/synaptic-0.90.2/gtk/rggtkbuilderwindow.cc
Examining data/synaptic-0.90.2/gtk/rggtkbuilderwindow.h
Examining data/synaptic-0.90.2/gtk/rgiconlegend.cc
Examining data/synaptic-0.90.2/gtk/rgiconlegend.h
Examining data/synaptic-0.90.2/gtk/rginstallprogress.cc
Examining data/synaptic-0.90.2/gtk/rginstallprogress.h
Examining data/synaptic-0.90.2/gtk/rglogview.cc
Examining data/synaptic-0.90.2/gtk/rglogview.h
Examining data/synaptic-0.90.2/gtk/rgmainwindow.cc
Examining data/synaptic-0.90.2/gtk/rgmainwindow.h
Examining data/synaptic-0.90.2/gtk/rgpackagestatus.cc
Examining data/synaptic-0.90.2/gtk/rgpackagestatus.h
Examining data/synaptic-0.90.2/gtk/rgpkgcdrom.cc
Examining data/synaptic-0.90.2/gtk/rgpkgcdrom.h
Examining data/synaptic-0.90.2/gtk/rgpkgdetails.cc
Examining data/synaptic-0.90.2/gtk/rgpkgdetails.h
Examining data/synaptic-0.90.2/gtk/rgpkgtreeview.cc
Examining data/synaptic-0.90.2/gtk/rgpkgtreeview.h
Examining data/synaptic-0.90.2/gtk/rgpreferenceswindow.cc
Examining data/synaptic-0.90.2/gtk/rgpreferenceswindow.h
Examining data/synaptic-0.90.2/gtk/rgrepositorywin.cc
Examining data/synaptic-0.90.2/gtk/rgrepositorywin.h
Examining data/synaptic-0.90.2/gtk/rgsetoptwindow.cc
Examining data/synaptic-0.90.2/gtk/rgsetoptwindow.h
Examining data/synaptic-0.90.2/gtk/rgslideshow.cc
Examining data/synaptic-0.90.2/gtk/rgslideshow.h
Examining data/synaptic-0.90.2/gtk/rgsummarywindow.cc
Examining data/synaptic-0.90.2/gtk/rgsummarywindow.h
Examining data/synaptic-0.90.2/gtk/rgtaskswin.cc
Examining data/synaptic-0.90.2/gtk/rgtaskswin.h
Examining data/synaptic-0.90.2/gtk/rgterminstallprogress.cc
Examining data/synaptic-0.90.2/gtk/rgterminstallprogress.h
Examining data/synaptic-0.90.2/gtk/rguserdialog.cc
Examining data/synaptic-0.90.2/gtk/rguserdialog.h
Examining data/synaptic-0.90.2/gtk/rgutils.cc
Examining data/synaptic-0.90.2/gtk/rgutils.h
Examining data/synaptic-0.90.2/gtk/rgvendorswindow.cc
Examining data/synaptic-0.90.2/gtk/rgvendorswindow.h
Examining data/synaptic-0.90.2/gtk/rgwindow.cc
Examining data/synaptic-0.90.2/gtk/rgwindow.h
Examining data/synaptic-0.90.2/intl/bindtextdom.c
Examining data/synaptic-0.90.2/intl/cat-compat.c
Examining data/synaptic-0.90.2/intl/dcgettext.c
Examining data/synaptic-0.90.2/intl/dgettext.c
Examining data/synaptic-0.90.2/intl/explodename.c
Examining data/synaptic-0.90.2/intl/finddomain.c
Examining data/synaptic-0.90.2/intl/gettext.c
Examining data/synaptic-0.90.2/intl/gettext.h
Examining data/synaptic-0.90.2/intl/gettextP.h
Examining data/synaptic-0.90.2/intl/hash-string.h
Examining data/synaptic-0.90.2/intl/intl-compat.c
Examining data/synaptic-0.90.2/intl/l10nflist.c
Examining data/synaptic-0.90.2/intl/libgettext.h
Examining data/synaptic-0.90.2/intl/loadinfo.h
Examining data/synaptic-0.90.2/intl/loadmsgcat.c
Examining data/synaptic-0.90.2/intl/localealias.c
Examining data/synaptic-0.90.2/intl/textdomain.c
Examining data/synaptic-0.90.2/tests/test_gtkpkglist.cc
Examining data/synaptic-0.90.2/tests/test_rpackage.cc
Examining data/synaptic-0.90.2/tests/test_rpackagefilter.cc
Examining data/synaptic-0.90.2/tests/test_rpackageview.cc
Examining data/synaptic-0.90.2/wings/rwaboutpanel.cc
Examining data/synaptic-0.90.2/wings/rwaboutpanel.h
Examining data/synaptic-0.90.2/wings/rwcacheprogress.cc
Examining data/synaptic-0.90.2/wings/rwcacheprogress.h
Examining data/synaptic-0.90.2/wings/rwconfigwindow.cc
Examining data/synaptic-0.90.2/wings/rwconfigwindow.h
Examining data/synaptic-0.90.2/wings/rwdummyinstallprogress.cc
Examining data/synaptic-0.90.2/wings/rwdummyinstallprogress.h
Examining data/synaptic-0.90.2/wings/rwfetchprogress.cc
Examining data/synaptic-0.90.2/wings/rwfetchprogress.h
Examining data/synaptic-0.90.2/wings/rwfiltereditor.cc
Examining data/synaptic-0.90.2/wings/rwfiltereditor.h
Examining data/synaptic-0.90.2/wings/rwfiltermanager.cc
Examining data/synaptic-0.90.2/wings/rwfiltermanager.h
Examining data/synaptic-0.90.2/wings/rwfilterwindow.cc
Examining data/synaptic-0.90.2/wings/rwfilterwindow.h
Examining data/synaptic-0.90.2/wings/rwinstallprogress.cc
Examining data/synaptic-0.90.2/wings/rwinstallprogress.h
Examining data/synaptic-0.90.2/wings/rwmainwindow.cc
Examining data/synaptic-0.90.2/wings/rwmainwindow.h
Examining data/synaptic-0.90.2/wings/rwsourceswindow.cc
Examining data/synaptic-0.90.2/wings/rwsourceswindow.h
Examining data/synaptic-0.90.2/wings/rwsummarywindow.cc
Examining data/synaptic-0.90.2/wings/rwsummarywindow.h
Examining data/synaptic-0.90.2/wings/rwuserdialog.cc
Examining data/synaptic-0.90.2/wings/rwuserdialog.h
Examining data/synaptic-0.90.2/wings/rwwindow.cc
Examining data/synaptic-0.90.2/wings/rwwindow.h
Examining data/synaptic-0.90.2/wings/synaptic.cc

FINAL RESULTS:

data/synaptic-0.90.2/common/rpackage.cc:1105:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      chmod(File.c_str(), stat_buf.st_mode);
data/synaptic-0.90.2/gtk/rgmainwindow.cc:3401:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
   chmod(file, 0755);
data/synaptic-0.90.2/common/raptoptions.cc:218:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   fp = popen(cmd, "r");
data/synaptic-0.90.2/common/rpackage.cc:1327: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(descrBuffer, descr.c_str());
data/synaptic-0.90.2/common/rpackage.cc:1337: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(descrBuffer, descr.c_str());
data/synaptic-0.90.2/common/rpackage.cc:1409:10:  [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(descrBuffer, descr.c_str());
data/synaptic-0.90.2/common/rpackagestatus.cc:109:15:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   FILE *fp = popen("lsb_release -c -s","r");
data/synaptic-0.90.2/common/rpmindexcopy.cc:128:13:  [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], (char **)Args);
data/synaptic-0.90.2/common/rpmindexcopy.cc:144:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(S, "cdrom:[%s]/%s", Name.c_str(), File.c_str() + CDROM.length());
data/synaptic-0.90.2/common/rpmindexcopy.cc:182:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(S, "cdrom:[%s]/%s/%s", Name.c_str(),
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:155: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(servaddr.sun_path, UNIXSTR_PATH);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:184: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(servaddr.sun_path, UNIXSTR_PATH);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:264:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   FILE *f = popen(cmd,"r");
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:609:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	 strcat(line, buf);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:692:3:  [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.
	 system("dpkg --configure -a");
data/synaptic-0.90.2/gtk/rginstallprogress.cc:233:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
         strcat(line, buf);
data/synaptic-0.90.2/gtk/rgtaskswin.cc:80:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      FILE *f = popen(cmd.c_str(), "r");
data/synaptic-0.90.2/gtk/rgtaskswin.cc:132:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   FILE *f=popen(cmd.c_str(), "r");
data/synaptic-0.90.2/gtk/rgtaskswin.cc:226:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   FILE *f = popen(cmd.c_str(),"r");
data/synaptic-0.90.2/intl/cat-compat.c:111: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 (new_name, PACKAGE);
data/synaptic-0.90.2/intl/cat-compat.c:117:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (new_name, "%s/%s/LC_MESSAGES/%s.cat", LOCALEDIR, lang,
data/synaptic-0.90.2/wings/rwinstallprogress.cc:76:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(line, buf);
data/synaptic-0.90.2/wings/rwmainwindow.cc:814:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    buf = buf + sprintf(buf, "%s: %s\n", tag, value);
data/synaptic-0.90.2/wings/rwmainwindow.cc:824: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(buf, text);
data/synaptic-0.90.2/wings/rwsummarywindow.cc:247:13:  [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.
    used += snprintf(buffer+used, left, descr, number, \
data/synaptic-0.90.2/wings/rwsummarywindow.cc:281:14:  [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.
	    used += snprintf(buffer+used, left, templ,
data/synaptic-0.90.2/common/rpackagefilter.cc:923: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("DEBUG_SYNAPTIC"))
data/synaptic-0.90.2/gtk/gsynaptic.cc:145: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.
      char *lang = getenv("LANG");
data/synaptic-0.90.2/gtk/gsynaptic.cc:147: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.
         lang = getenv("LC_MESSAGES");
data/synaptic-0.90.2/gtk/gsynaptic.cc:149: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.
            lang = getenv("LC_ALL");
data/synaptic-0.90.2/gtk/rgmainwindow.cc:2556: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("SUDO_USER") != NULL) {
data/synaptic-0.90.2/gtk/rgutils.cc:144: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.
    sudo_user = getenv("PKEXEC_UID");
data/synaptic-0.90.2/gtk/rgutils.cc:147: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.
       sudo_user = getenv("SUDO_UID");
data/synaptic-0.90.2/gtk/rgutils.cc:150: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.
       sudo_user = getenv("USER");
data/synaptic-0.90.2/gtk/rgutils.cc:210:30:  [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.
   gchar **path = g_strsplit(getenv("PATH"), ":", 0);
data/synaptic-0.90.2/intl/cat-compat.c:28: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.
char *getenv ();
data/synaptic-0.90.2/intl/cat-compat.c:84: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.
  lang = getenv ("LC_ALL");
data/synaptic-0.90.2/intl/cat-compat.c:87: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.
      lang = getenv ("LC_MESSAGES");
data/synaptic-0.90.2/intl/cat-compat.c:89: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.
	lang = getenv ("LANG");
data/synaptic-0.90.2/intl/cat-compat.c:159: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.
  old_val = getenv ("NLSPATH");
data/synaptic-0.90.2/intl/dcgettext.c:52: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.
char *getenv ();
data/synaptic-0.90.2/intl/dcgettext.c:97:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/synaptic-0.90.2/intl/dcgettext.c:98:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/synaptic-0.90.2/intl/dcgettext.c:546: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.
  retval = getenv ("LANGUAGE");
data/synaptic-0.90.2/intl/dcgettext.c:557: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.
  retval = getenv ("LC_ALL");
data/synaptic-0.90.2/intl/dcgettext.c:562: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.
  retval = getenv (categoryname);
data/synaptic-0.90.2/intl/dcgettext.c:567: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.
  retval = getenv ("LANG");
data/synaptic-0.90.2/intl/localealias.c:47: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.
char *getenv ();
data/synaptic-0.90.2/common/raptoptions.cc:213:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[255];
data/synaptic-0.90.2/common/rcdscanner.cc:182:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Buffer[300];
data/synaptic-0.90.2/common/rcdscanner.cc:442:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char S[300];
data/synaptic-0.90.2/common/rconfiguration.cc:280: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).
   out.open(path.c_str());
data/synaptic-0.90.2/common/rconfiguration.cc:291:7:  [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).
   in.open(path.c_str());
data/synaptic-0.90.2/common/rconfiguration.cc:305: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).
   out.open(path.c_str(), ios::out);
data/synaptic-0.90.2/common/rpackage.cc:479:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char buffer[32];
data/synaptic-0.90.2/common/rpackage.cc:950:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char uri[512];
data/synaptic-0.90.2/common/rpackagecache.cc:40:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool RPackageCache::open(OpProgress *progress, bool locking)
data/synaptic-0.90.2/common/rpackagecache.h:60: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).
   bool open(OpProgress *progress, bool lock=true);
data/synaptic-0.90.2/common/rpackagefilter.cc:582: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 instVer[301];
data/synaptic-0.90.2/common/rpackagefilter.cc:583: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 availVer[301];
data/synaptic-0.90.2/common/rpackagefilter.cc:672:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[16];
data/synaptic-0.90.2/common/rpackagefilter.cc:800:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[255];
data/synaptic-0.90.2/common/rpackagelister.cc:315:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if (!_cache->open(_progMeter,lock)) {
data/synaptic-0.90.2/common/rpackagelister.cc:1571:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(logfile.c_str(),"w+");
data/synaptic-0.90.2/common/rpackagelister.cc:1800:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Buffer[300];
data/synaptic-0.90.2/common/rpackagestatus.cc:40: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.
   const char *status_short[N_STATUS_COUNT] = {
data/synaptic-0.90.2/common/rpackagestatus.cc:46: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(PackageStatusShortString, status_short, sizeof(status_short));
data/synaptic-0.90.2/common/rpackagestatus.cc:48: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.
   const char *status_long[N_STATUS_COUNT] = {
data/synaptic-0.90.2/common/rpackagestatus.cc:63: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(PackageStatusLongString, status_long, sizeof(status_long));
data/synaptic-0.90.2/common/rpackagestatus.h:55:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char release[255];
data/synaptic-0.90.2/common/rpackagestatus.h:64: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.
   const char *PackageStatusShortString[N_STATUS_COUNT];
data/synaptic-0.90.2/common/rpackagestatus.h:66: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.
   const char *PackageStatusLongString[N_STATUS_COUNT];
data/synaptic-0.90.2/common/rpackageview.h:120: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 letter[2] = { ' ', '\0' };
data/synaptic-0.90.2/common/rpmindexcopy.cc:105:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
         FILE *tmp = tmpfile();
data/synaptic-0.90.2/common/rpmindexcopy.cc:124: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.
            const char *Args[3];
data/synaptic-0.90.2/common/rpmindexcopy.cc:143: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 S[400];
data/synaptic-0.90.2/common/rsources.cc:62:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[512];
data/synaptic-0.90.2/gtk/gsynaptic.cc:233:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char marker[1] = {'S'};
data/synaptic-0.90.2/gtk/gsynaptic.cc:272:13:  [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).
   int FD = open(File.c_str(),0);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:77:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char   control[CMSG_SPACE(sizeof(int))];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:112:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char   control[CMSG_SPACE(sizeof(int))];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:262:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[512];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:541:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[2];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:542:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char line[1024] = "";
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:55:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *purge_stages[NR_PURGE_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:56:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *purge_stages_translations[NR_PURGE_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:60:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *purge_only_stages[NR_PURGE_ONLY_STAGES]; 
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:61:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *purge_only_stages_translations[NR_PURGE_ONLY_STAGES]; 
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:64:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *install_stages[NR_INSTALL_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:65:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *install_stages_translations[NR_INSTALL_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:68:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *update_stages[NR_UPDATE_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:69:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *update_stages_translations[NR_UPDATE_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:72:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *reinstall_stages[NR_REINSTALL_STAGES];
data/synaptic-0.90.2/gtk/rgdebinstallprogress.h:73:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *reinstall_stages_translations[NR_REINSTALL_STAGES];
data/synaptic-0.90.2/gtk/rgfiltermanager.cc:621:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char *array[3];
data/synaptic-0.90.2/gtk/rginstallprogress.cc:132:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1024];
data/synaptic-0.90.2/gtk/rginstallprogress.cc:181:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[2];
data/synaptic-0.90.2/gtk/rginstallprogress.cc:182:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char line[1024] = "";
data/synaptic-0.90.2/gtk/rginstallprogress.cc:358:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   _width = atoi(buf);
data/synaptic-0.90.2/gtk/rginstallprogress.cc:366:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   _height = atoi(buf);
data/synaptic-0.90.2/gtk/rginstallprogress.cc:384:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   _xpos = atoi(buf);
data/synaptic-0.90.2/gtk/rginstallprogress.cc:393:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   _ypos = atoi(buf);
data/synaptic-0.90.2/gtk/rglogview.cc:57:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[128];
data/synaptic-0.90.2/gtk/rgmainwindow.cc:2189: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.
      const char *argv[5];
data/synaptic-0.90.2/gtk/rgpackagestatus.cc:37: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.
   const char *default_status_colors[N_STATUS_COUNT] = {
data/synaptic-0.90.2/gtk/rgtaskswin.cc:79: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 buf[255];
data/synaptic-0.90.2/gtk/rgtaskswin.cc:131:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[255];
data/synaptic-0.90.2/gtk/rgtaskswin.cc:223:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[255];
data/synaptic-0.90.2/gtk/rgutils.cc:85:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char S[300];
data/synaptic-0.90.2/gtk/rgutils.cc:160:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pwd = getpwuid(atoi(sudo_user));
data/synaptic-0.90.2/intl/bindtextdom.c:36:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# ifndef memcpy
data/synaptic-0.90.2/intl/bindtextdom.c:37: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.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/bindtextdom.c:37:33:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/bindtextdom.c:123: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 (new_dirname, dirname, len);
data/synaptic-0.90.2/intl/bindtextdom.c:152: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_binding->domainname, domainname, len);
data/synaptic-0.90.2/intl/bindtextdom.c:168: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 (new_binding->dirname, dirname, len);
data/synaptic-0.90.2/intl/finddomain.c:42:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# ifndef memcpy
data/synaptic-0.90.2/intl/finddomain.c:43: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.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/finddomain.c:43:33:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/finddomain.c:150: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 (locale, alias_value, len);
data/synaptic-0.90.2/intl/l10nflist.c:31:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# ifndef memcpy
data/synaptic-0.90.2/intl/l10nflist.c:32: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.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/l10nflist.c:32:33:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/l10nflist.c:224: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 (abs_filename, dirlist, dirlist_len);
data/synaptic-0.90.2/intl/loadmsgcat.c:48: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).
# define open   __open
data/synaptic-0.90.2/intl/loadmsgcat.c:87: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 (domain_file->filename, O_RDONLY);
data/synaptic-0.90.2/intl/localealias.c:62:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# ifndef memcpy
data/synaptic-0.90.2/intl/localealias.c:63: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.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/localealias.c:63:33:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/localealias.c:205: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 (full_fname, fname, fname_len);
data/synaptic-0.90.2/intl/localealias.c:206: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/synaptic-0.90.2/intl/localealias.c:208: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 (full_fname, "r");
data/synaptic-0.90.2/intl/localealias.c:223: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 buf[BUFSIZ];
data/synaptic-0.90.2/intl/localealias.c:282: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 (tp, alias, len);
data/synaptic-0.90.2/intl/localealias.c:292: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 (tp, value, len);
data/synaptic-0.90.2/intl/localealias.c:338: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_map, map, nmap * sizeof (struct alias_map));
data/synaptic-0.90.2/intl/textdomain.c:31:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# ifndef memcpy
data/synaptic-0.90.2/intl/textdomain.c:32: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.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/textdomain.c:32:33:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
data/synaptic-0.90.2/intl/textdomain.c:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (cp, domainname, len);
data/synaptic-0.90.2/wings/rwfetchprogress.cc:218: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 buf[128];
data/synaptic-0.90.2/wings/rwfetchprogress.cc:391: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.
	static char buf[16];
data/synaptic-0.90.2/wings/rwinstallprogress.cc:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2];
data/synaptic-0.90.2/wings/rwinstallprogress.cc:57:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[128] = "";
data/synaptic-0.90.2/wings/rwmainwindow.cc:136:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[256];
data/synaptic-0.90.2/wings/rwmainwindow.cc:994:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];
data/synaptic-0.90.2/wings/rwmainwindow.cc:1063:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[512];
data/synaptic-0.90.2/wings/rwmainwindow.cc:1100:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[512];
data/synaptic-0.90.2/wings/rwmainwindow.cc:1114:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[512];
data/synaptic-0.90.2/wings/rwmainwindow.cc:1133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[512] = "";
data/synaptic-0.90.2/wings/rwmainwindow.cc:2009: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[256];
data/synaptic-0.90.2/wings/rwsummarywindow.cc:232: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[1024];
data/synaptic-0.90.2/common/raptoptions.cc:194: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).
         memset(point, 0, strlen(point));
data/synaptic-0.90.2/common/rcdscanner.cc:454: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(Res) < strlen(S)) {
data/synaptic-0.90.2/common/rcdscanner.cc:454:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(Res) < strlen(S)) {
data/synaptic-0.90.2/common/rcdscanner.cc:460: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).
      if (stringcmp(Res, Res + strlen(S), S) == 0)
data/synaptic-0.90.2/common/rcdscanner.cc:601: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 la = strlen(a);
data/synaptic-0.90.2/common/rcdscanner.cc:602: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 lb = strlen(b);
data/synaptic-0.90.2/common/rcdscanner.cc:682: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).
          strcmp(Dir->d_name + strlen(Dir->d_name) - 4, ".bz2") == 0) {
data/synaptic-0.90.2/common/rcdscanner.cc:688: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).
          strcmp(Dir->d_name + strlen(Dir->d_name) - 4, ".bz2") == 0) {
data/synaptic-0.90.2/common/rconfiguration.cc:93:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      int old_umask = umask(0022);
data/synaptic-0.90.2/common/rconfiguration.cc:105:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(old_umask);
data/synaptic-0.90.2/common/rpackagefilter.cc:129:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RSectionPackageFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:468:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RPatternPackageFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:584:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	 strncpy(instVer, pkg->installedVersion(), 300);
data/synaptic-0.90.2/common/rpackagefilter.cc:585:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	 strncpy(availVer, pkg->availableVersion(), 300);
data/synaptic-0.90.2/common/rpackagefilter.cc:680:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RStatusPackageFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:699:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RPriorityPackageFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:786:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RReducedViewPackageFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:827:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RFilePackageFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:900:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool RFilter::read(Configuration &conf, string key)
data/synaptic-0.90.2/common/rpackagefilter.cc:906:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   res &= section.read(conf, key + "::section");
data/synaptic-0.90.2/common/rpackagefilter.cc:907:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   res &= status.read(conf, key + "::status");
data/synaptic-0.90.2/common/rpackagefilter.cc:908:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   res &= pattern.read(conf, key + "::pattern");
data/synaptic-0.90.2/common/rpackagefilter.cc:909:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   res &= priority.read(conf, key + "::priority");
data/synaptic-0.90.2/common/rpackagefilter.cc:910:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   res &= reducedview.read(conf, key + "::reducedview");
data/synaptic-0.90.2/common/rpackagefilter.h:58:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key) = 0;
data/synaptic-0.90.2/common/rpackagefilter.h:96:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagefilter.h:168:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagefilter.h:213:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagefilter.h:231:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagefilter.h:260:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagefilter.h:287:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   virtual bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagefilter.h:304:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   bool read(Configuration &conf, string key);
data/synaptic-0.90.2/common/rpackagelister.cc:799: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 len = strlen(_searchData.pattern);
data/synaptic-0.90.2/common/rpackageview.cc:436:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (filter->read(config, filterkey)) {
data/synaptic-0.90.2/common/rpmindexcopy.cc:49: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 la = strlen(a);
data/synaptic-0.90.2/common/rpmindexcopy.cc:50: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 lb = strlen(b);
data/synaptic-0.90.2/common/rsources.cc:194:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strcmp(Ent->d_name + strlen(Ent->d_name) - 5, ".list") != 0)
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:161:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1000);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:196:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1000);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:548:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int len = read(_childin, buf, 1);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:616:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(100000);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:644:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1000000/25);
data/synaptic-0.90.2/gtk/rgdebinstallprogress.cc:691: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).
	 write(fd[1], rstatus, strlen(rstatus));
data/synaptic-0.90.2/gtk/rgdummyinstallprogress.cc:50:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1000000);
data/synaptic-0.90.2/gtk/rgfindwindow.cc:65:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if(strlen(str) == 0)
data/synaptic-0.90.2/gtk/rgfindwindow.cc:92: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(me->getFindString()) > 0 )
data/synaptic-0.90.2/gtk/rginstallprogress.cc:134:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   int len = read(_childin, buf, 1023);
data/synaptic-0.90.2/gtk/rginstallprogress.cc:186:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int len = read(_childin, buf, 1);
data/synaptic-0.90.2/gtk/rginstallprogress.cc:241:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(5000);
data/synaptic-0.90.2/gtk/rglogview.cc:160:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  char *off = g_strstr_len(str, strlen(str), me->findStr);
data/synaptic-0.90.2/gtk/rglogview.cc:165: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).
							    line, off-str+strlen(me->findStr));
data/synaptic-0.90.2/gtk/rglogview.cc:262:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if(strlen(me->findStr) == 0) {
data/synaptic-0.90.2/gtk/rgmainwindow.cc:313: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(str != NULL && strlen(str) > 1) {
data/synaptic-0.90.2/gtk/rgmainwindow.cc:2200:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	 usleep(50000);
data/synaptic-0.90.2/gtk/rgmainwindow.cc:2725:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
         usleep(100000);
data/synaptic-0.90.2/gtk/rgmainwindow.cc:2798: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(str == NULL || strlen(str) <= 1) {
data/synaptic-0.90.2/gtk/rgmainwindow.cc:2808: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).
   } else if(strlen(str) > 1) {
data/synaptic-0.90.2/gtk/rgpkgdetails.cc:330: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).
   if (strlen(pkg->homepage())) {
data/synaptic-0.90.2/gtk/rgpreferenceswindow.cc:75: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).
      new_text = g_strdup_printf("%s", &text[strlen("http://")]);
data/synaptic-0.90.2/gtk/rgterminstallprogress.cc:176:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   vte_terminal_feed(VTE_TERMINAL(_term), utf8_to_locale(msg), strlen(msg));
data/synaptic-0.90.2/gtk/rgterminstallprogress.cc:285:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(10000);
data/synaptic-0.90.2/gtk/rgutils.cc:156: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(strncmp("root", sudo_user, strlen("root")) == 0){
data/synaptic-0.90.2/gtk/rgutils.cc:245: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 (cpp == NULL || strlen(cpp) == 0) {
data/synaptic-0.90.2/intl/bindtextdom.c:118: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).
	      size_t len = strlen (dirname) + 1;
data/synaptic-0.90.2/intl/bindtextdom.c:148: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 (domainname) + 1;
data/synaptic-0.90.2/intl/bindtextdom.c:164:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  len = strlen (dirname) + 1;
data/synaptic-0.90.2/intl/cat-compat.c:103:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  new_name_len = sizeof (LOCALEDIR) - 1 + 1 + strlen (lang)
data/synaptic-0.90.2/intl/cat-compat.c:156: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).
  new_val_len = sizeof ("NLSPATH=") - 1 + strlen (dirname)
data/synaptic-0.90.2/intl/cat-compat.c:167: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_val_len += strlen (old_val);
data/synaptic-0.90.2/intl/dcgettext.c:269: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).
      size_t dirname_len = strlen (binding->dirname) + 1;
data/synaptic-0.90.2/intl/dcgettext.c:304: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).
  xdomainname = (char *) alloca (strlen (categoryname)
data/synaptic-0.90.2/intl/dcgettext.c:305: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 (domainname) + 5);
data/synaptic-0.90.2/intl/dcgettext.c:313:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/synaptic-0.90.2/intl/dcgettext.c:410: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).
      nls_uint32 len = strlen (msgid);
data/synaptic-0.90.2/intl/finddomain.c:114: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).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/synaptic-0.90.2/intl/finddomain.c:145: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 len = strlen (alias_value) + 1;
data/synaptic-0.90.2/intl/finddomain.c:163: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).
			       strlen (dirname) + 1, mask, language, territory,
data/synaptic-0.90.2/intl/l10nflist.c:89: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).
      size_t part_len = strlen (argz);
data/synaptic-0.90.2/intl/l10nflist.c:113: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).
      size_t part_len = strlen (argz);
data/synaptic-0.90.2/intl/l10nflist.c:197: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).
				  + strlen (language)
data/synaptic-0.90.2/intl/l10nflist.c:199: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).
				     ? strlen (territory) + 1 : 0)
data/synaptic-0.90.2/intl/l10nflist.c:201: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).
				     ? strlen (codeset) + 1 : 0)
data/synaptic-0.90.2/intl/l10nflist.c:203: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).
				     ? strlen (normalized_codeset) + 1 : 0)
data/synaptic-0.90.2/intl/l10nflist.c:206: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).
				     ? strlen (modifier) + 1 : 0)
data/synaptic-0.90.2/intl/l10nflist.c:208: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).
				     ? strlen (special) + 1 : 0)
data/synaptic-0.90.2/intl/l10nflist.c:212: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).
					     ? strlen (sponsor) + 1 : 0)
data/synaptic-0.90.2/intl/l10nflist.c:214: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).
					   ? strlen (revision) + 1 : 0)) : 0)
data/synaptic-0.90.2/intl/l10nflist.c:215: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).
				  + 1 + strlen (filename) + 1);
data/synaptic-0.90.2/intl/l10nflist.c:338: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).
	    = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt,
data/synaptic-0.90.2/intl/loadmsgcat.c:50:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read   __read
data/synaptic-0.90.2/intl/loadmsgcat.c:130:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/synaptic-0.90.2/intl/localealias.c:275: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).
	      len = strlen (alias) + 1;
data/synaptic-0.90.2/intl/localealias.c:285: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).
	      len = strlen (value) + 1;
data/synaptic-0.90.2/intl/textdomain.c:89: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 len = strlen (domainname) + 1;
data/synaptic-0.90.2/wings/rwfetchprogress.cc:401:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    x = rect.pos.x + (rect.size.width - WMWidthOfString(font, str, strlen(str))) / 2;
data/synaptic-0.90.2/wings/rwfetchprogress.cc:404: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).
    WMDrawString(scr, d, textGc, font, x, y, str, strlen(str));
data/synaptic-0.90.2/wings/rwfetchprogress.cc:467:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((unsigned)WMWidthOfString(font, data, strlen(data)) > rect.size.width - 10)
data/synaptic-0.90.2/wings/rwfetchprogress.cc:468:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	x -= (WMWidthOfString(font, data, strlen(data)) - rect.size.width + 10);
data/synaptic-0.90.2/wings/rwfetchprogress.cc:479: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).
		 data, strlen(data));	
data/synaptic-0.90.2/wings/rwinstallprogress.cc:60:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int len = read(_childin, buf, 1);
data/synaptic-0.90.2/wings/rwmainwindow.cc:176:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, elem->summary(), sizeof(buffer));	
data/synaptic-0.90.2/wings/rwmainwindow.cc:749: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).
	w = WMWidthOfString(font, (char*)b, strlen(b));
data/synaptic-0.90.2/wings/rwmainwindow.cc:811: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(tag) + strlen(value) + 8 > size)
data/synaptic-0.90.2/wings/rwmainwindow.cc:811: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 (strlen(tag) + strlen(value) + 8 > size)
data/synaptic-0.90.2/wings/rwmainwindow.cc:820: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).
    unsigned l = strlen(text);

ANALYSIS SUMMARY:

Hits = 257
Lines analyzed = 38088 in approximately 0.87 seconds (43931 lines/second)
Physical Source Lines of Code (SLOC) = 25987
Hits@level = [0]  21 [1] 105 [2] 104 [3]  22 [4]  24 [5]   2
Hits@level+ = [0+] 278 [1+] 257 [2+] 152 [3+]  48 [4+]  26 [5+]   2
Hits/KSLOC@level+ = [0+] 10.6977 [1+] 9.88956 [2+] 5.84908 [3+] 1.84708 [4+] 1.0005 [5+] 0.0769616
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.