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/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/NVCtrl.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/NVCtrlLib.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/nv_control.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/NVCtrl.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/version.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/config-file.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/lscf.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesXv.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesXrandr.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvml.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesPrivate.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/error.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable_seed.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/memory.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/pack_unpack.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/strbuffer.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/strconv.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/utf.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_config.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private_config.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/lookup3.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/strbuffer.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/jansson/utf.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkui.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgauge.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcurve.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcorrection.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcorrectionpage.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscale.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkmultisample.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkconfig.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkevent.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkopengl.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglx.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkhelp.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkimagesliders.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaydevice.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkditheringcontrols.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkthermal.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-csc.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdropdownmenu.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkutils.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkserver.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscreen.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkslimm.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkbanner.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-banner.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-sync.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvi.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkecc.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkapcprofilemodel.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkapcrulemodel.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcontrols.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglwidget.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglstereo.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_loading.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/matrix_utils.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkxvideo.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkui.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgauge.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcurve.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcorrection.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcorrectionpage.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscale.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkmultisample.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkconfig.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkevent.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkopengl.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglx.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkhelp.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkimagesliders.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaydevice.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkditheringcontrols.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkconstants.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkthermal.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-csc.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdropdownmenu.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkutils.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkserver.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscreen.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkslimm.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkbanner.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-banner.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-sync.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvi.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkecc.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkapcprofilemodel.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkapcrulemodel.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcontrols.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglwidget.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglstereo.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_loading.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/matrix_utils.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvdpau.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvdpau.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkxvideo.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/command-line.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/option-table.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/config-file.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/lscf.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/parse.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/query-assign.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/gen-manpage-opts.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/blue_xpm.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/green_xpm.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/red_xpm.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/rgb_xpm.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_add_glasses.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_autopick_next_channel.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_battery_0.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_battery_100.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_battery_25.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_battery_50.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_battery_75.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_status_excellent.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_status_good.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_status_low.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_status_nosignal.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_status_verygood.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/xpm_data/svp_status_verylow.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/DRI.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Device.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Extensions.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Flags.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Input.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Layout.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Merge.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Module.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Pointer.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Read.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Screen.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Vendor.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Video.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Write.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Configint.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/configProcs.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/xf86Parser.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/xf86tokens.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Monitor.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/nvgetopt.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/nvgetopt.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/gen-manpage-opts-helper.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/gen-manpage-opts-helper.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-unix/virtual-resolutions/nvvr.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/common-unix/virtual-resolutions/nvvr.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/nvml.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/nv_grid_dbus.h
Examining data/nvidia-settings-legacy-390xx-390.138/src/command-line.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/parse.c
Examining data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dvc.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-3dvisionpro.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dpy.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-info.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-events.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-gvi.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-targets.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-framelock.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.c
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h
Examining data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-screen.h

FINAL RESULTS:

data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:298:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(newAttribute, " {%s}", attributes);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:302:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(newAttribute, ", %s}", attributes);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:305:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(newAttribute, " {%s},", attributes);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:320:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(newMetaMode, "%s%s%s",
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:417:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(newAttributes, "%s=%s, BlendOrder=BlendAfterWarp",
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:420:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(newAttributes, "%s=%s, BlendOrder=WarpAfterBlend",
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:520:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newAttributes, "WarpMesh=%s", tempName);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:125:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (ptr->fontpath, str);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:157:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (ptr->modulepath, str);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:184:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (ptr->inputdevs, str);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:110:5:  [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.
    snprintf(screen->identifier, 32, SCREEN_IDENTIFIER, count);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:185:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return (access(filename, F_OK) == 0);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:218: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.
    stream = popen("pkg-config --variable=libdir xorg-server", "r");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:303:11:  [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.
    ret = system("ps -e -o fname | grep -v grep | egrep \"^xfs$\" > /dev/null");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:305:11:  [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.
    ret = system("ps -e -o comm | grep -v grep | egrep \"^xfs$\" > /dev/null");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:307:11:  [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.
    ret = system("ps -C xfs 2>&1 > /dev/null");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:431:5:  [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.
    snprintf(monitor->identifier, 32, MONITOR_IDENTIFIER, count);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:475:5:  [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.
    snprintf(device->identifier, 32, DEVICE_IDENTIFIER, count);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:991:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access("/dev/psaux", F_OK) == 0) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:993:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        } else if (access("/dev/input/mice", F_OK) == 0) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:1356:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        (sscanf(ptr, XSERVER_VERSION_FORMAT_1 " %d.%d", &major, &minor) == 2)) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:1362:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        (sscanf(ptr, XSERVER_VERSION_FORMAT_2 " %d.%d", &major, &minor) == 2)) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:1464:19:  [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.
    if ((stream = popen(cmd, "r"))) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:1507:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(xorgpath, F_OK)==0) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:140:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(s, "%s %s", s1, s2);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:156:21:  [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(s, s1);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Pointer.c:179:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(s, "%s %s", s1, s2);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:442: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 (val.str, configRBuf);    /* private copy ! */
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:631:33:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                                strcpy(result + l, s);      \
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:878:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pathcopy, searchpath);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:944: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 (configSection, section);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:993: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(cur + curlen, add);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:94:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(concat, str);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:98:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(concat, s);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:129:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(b, current_len, fmt, ap);
data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c:88:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(*s + b, "%s%s", replace, tail);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:102:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(result, s);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:345:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(ret, prefix);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:346:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(ret, replace);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/gen-manpage-opts-helper.c:42: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(scratch, o->arg_name);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c:225:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int vsnprintf(char *str, size_t size, const char  *format,
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.h:72:19:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            len = vsnprintf((buf), current_len, (fmt), ap);     \
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:57:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:231:66:  [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.
int nv_write_config_file(const char *filename, const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:383:63:  [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.
                const char *name = NvCtrlGetDisplayConfigName(system, val);
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:696:55:  [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.
        nv_process_parsed_attribute(op, &w[i].a, w[i].system, NV_TRUE, NV_FALSE,
data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.c:278:23:  [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.
    CtrlSystem       *system;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:3677:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (file && access(file, F_OK) != -1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:3679:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    } else if (access(file_noversion, F_OK) != -1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:4212:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access(filename, F_OK) == 0)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:4215:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if ((access(filename, W_OK) != 0)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:4237:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(backup_filename, F_OK) == 0) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:681:50:  [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.
    ctrl_target = NvCtrlGetDefaultTarget(layout->system);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:9182:50:  [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.
    ctrl_target = NvCtrlGetDefaultTarget(layout->system);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.h:429:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5595:47:  [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.
                                  CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5788:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(server_name, "%s", display_name);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5804:10:  [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.
    if (!system || !system->dpy) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5819:42:  [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.
    ctrl_target = NvCtrlGetDefaultTarget(system);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5854:42:  [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.
    add_framelock_devices(ctk_framelock, system, server_id);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.c:384:50:  [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.
                                    ctrl_target->system,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.c:397:62:  [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.
                screen_target = NvCtrlGetTarget(ctrl_target->system,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvi.c:483:56:  [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.
static gchar* gpu_name_string(gint gpu_id, CtrlSystem *system)
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvi.c:488:35:  [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.
    ctrl_target = NvCtrlGetTarget(system, GPU_TARGET, gpu_id);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscreen.c:207:55:  [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.
            gpu_target = NvCtrlGetTarget(ctrl_target->system,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkthermal.c:1048:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkthermal.c:1219:45:  [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.
            sensor_target = NvCtrlGetTarget(system, THERMAL_SENSOR_TARGET,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkthermal.c:1393:41:  [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.
        cooler_target = NvCtrlGetTarget(system, COOLER_TARGET, pDataCooler[j]);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkui.c:42:27:  [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.
              CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkui.c:52:38:  [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.
    window = ctk_window_new(p, conf, system);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkutils.c:525:51:  [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.
        ctrl_other = NvCtrlGetTarget(ctrl_target->system, DISPLAY_TARGET,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.c:418:39:  [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.
                          CtrlSystem *system)
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.c:464:62:  [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.
    ctk_window->ctk_config = CTK_CONFIG(ctk_config_new(conf, system));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.c:614:54:  [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.
        server_target = NvCtrlGetDefaultTargetByType(system, X_SCREEN_TARGET);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.c:1490:34:  [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.
        target = NvCtrlGetTarget(system, DISPLAY_TARGET, display_id);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.c:1492:36:  [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.
            target = nv_add_target(system, DISPLAY_TARGET, display_id);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkwindow.h:90:47:  [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.
                                  CtrlSystem *system);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkxvideo.c:164:60:  [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.
    ctrl_target = NvCtrlGetTarget(ctk_xvideo->ctrl_target->system,
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:196:20:  [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.
            size = snprintf(buffer, MAX_INTEGER_STR_LENGTH,
data/nvidia-settings-legacy-390xx-390.138/src/jansson/error.c:28:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(error->source, source);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/error.c:32:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(error->source + 3, source + extra);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/error.c:61:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(error->text, JSON_ERROR_TEXT_LENGTH, msg, ap);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable.c:250:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pair->key, key);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private.h:95:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private.h:95:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private.h:96:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private_config.h:51:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf snprintf
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private_config.h:51:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf snprintf
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c:95:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(msg_text, JSON_ERROR_TEXT_LENGTH, msg, ap);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.c:181:56:  [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.
NvCtrlAttributeHandle *NvCtrlAttributeInit(CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:109:17:  [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.
    CtrlSystem *system; /* the system this target belongs to */
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:539:60:  [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.
int         NvCtrlGetTargetTypeCount    (const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:541:60:  [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.
CtrlTarget *NvCtrlGetTarget             (const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:544:60:  [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.
CtrlTarget *NvCtrlGetDefaultTarget      (const CtrlSystem *system);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:545:60:  [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.
CtrlTarget *NvCtrlGetDefaultTargetByType(const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:561:39:  [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.
CtrlTarget *nv_add_target(CtrlSystem *system, CtrlTargetType target_type, int target_id);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:563:58:  [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.
const char *NvCtrlGetDisplayConfigName(const CtrlSystem *system, int target_id);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesPrivate.h:348:56:  [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.
NvCtrlAttributeHandle *NvCtrlAttributeInit(CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:93:45:  [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.
static void nv_free_ctrl_system(CtrlSystem *system)
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:97:10:  [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.
    if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:147:10:  [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.
    free(system);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:265:48:  [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.
int NvCtrlGetTargetTypeCount(const CtrlSystem *system, CtrlTargetType target_type)
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:270:10:  [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.
    if (!system || !NvCtrlIsTargetTypeValid(target_type)) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:295:47:  [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.
CtrlTarget *NvCtrlGetTarget(const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:301:10:  [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.
    if (!system || !NvCtrlIsTargetTypeValid(target_type)) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:328:58:  [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.
const char *NvCtrlGetDisplayConfigName(const CtrlSystem *system, int target_id)
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:332:30:  [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.
    target = NvCtrlGetTarget(system, DISPLAY_TARGET, target_id);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:346:60:  [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.
CtrlTarget *NvCtrlGetDefaultTargetByType(const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:351:10:  [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.
    if (!system || !NvCtrlIsTargetTypeValid(target_type)) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:372:54:  [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.
CtrlTarget *NvCtrlGetDefaultTarget(const CtrlSystem *system)
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:376:10:  [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.
    if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:381:59:  [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.
        CtrlTarget *target = NvCtrlGetDefaultTargetByType(system, i);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:505:41:  [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.
        other = NvCtrlGetTarget(target->system, target_type, target_id);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:644:53:  [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.
static CtrlTarget *nv_alloc_ctrl_target(CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:657:10:  [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.
    if (!system || !NvCtrlIsTargetTypeValid(target_type)) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:665:34:  [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.
    handle = NvCtrlAttributeInit(system, target_type, targetId, subsystem);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:678:17:  [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.
    t->system = system;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:771:39:  [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.
CtrlTarget *nv_add_target(CtrlSystem *system, CtrlTargetType target_type,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:775:35:  [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.
    target = nv_alloc_ctrl_target(system, target_type, target_id,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:815:42:  [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.
static Bool load_system_info(CtrlSystem *system, const char *display)
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:824:10:  [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.
    if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:843:44:  [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.
    nvmlQueryTarget = nv_alloc_ctrl_target(system, GPU_TARGET, 0,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:966:36:  [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.
            target = nv_add_target(system, target_type, targetId);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1021:39:  [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.
        target = nv_alloc_ctrl_target(system, X_SCREEN_TARGET, i,
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1047:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1051:30:  [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 = nvalloc(sizeof(*system));
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1055:28:  [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.
    ret = load_system_info(system, display);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1058:29:  [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.
        nv_free_ctrl_system(system);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1071:12:  [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.
    return system;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1090:13:  [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.
        if (system) {
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1095:42:  [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.
            systems->array[systems->n] = system;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1100:12:  [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.
    return system;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:1115:20:  [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.
            return system;
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:225:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:326:14:  [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.
        if (!system || !system->dpy) {
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:329:48:  [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.
        ret = nv_write_config_file(op->config, system, p, &conf);
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:370:10:  [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.
    if (!system || !system->dpy) {
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:376:35:  [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.
    libdata.fn_ctk_main(p, &conf, system, op->page);
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:381:42:  [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.
        nv_write_config_file(op->config, system, p, &conf);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:297:60:  [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.
                                               CtrlSystem *system)
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:451:60:  [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.
                                         const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:600:70:  [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.
static int resolve_attribute_targets(ParsedAttribute *p, CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:617:42:  [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.
    ctrl_target = NvCtrlGetDefaultTarget(system);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:636:54:  [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.
        ret = nv_infer_targets_from_specification(p, system);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:643:46:  [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.
        CtrlTarget *target = NvCtrlGetTarget(system, p->target_type,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:660:40:  [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.
        include_target_type_targets(p, system, p->target_type);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:674:40:  [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.
        include_target_type_targets(p, system, i);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:716:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:803:14:  [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.
        if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:809:51:  [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.
        ret = nv_process_parsed_attribute(op, &a, system, NV_FALSE, NV_FALSE,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:846:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:876:14:  [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.
        if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:882:51:  [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.
        ret = nv_process_parsed_attribute(op, &a, system, NV_TRUE, NV_TRUE,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:936:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(d_str, ", display device: %s", tmp_d_str);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1165:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            c += sprintf(c, "%s", targetTypeInfo->name);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1216:63:  [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.
        const char *name = NvCtrlGetDisplayConfigName(target->system, val);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1380:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1383:10:  [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.
    if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1744:17:  [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.
    CtrlSystem *system;
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1757:10:  [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.
    if (!system) {
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1775:45:  [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.
    target_count = NvCtrlGetTargetTypeCount(system, target_type);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1967:64:  [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.
                                             const CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1985:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, ", display device: %s", tmp_d_str);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:2124:65:  [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.
                                ParsedAttribute *p, CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:2184:40:  [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.
    ret = resolve_attribute_targets(p, system, whence);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:2693:53:  [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.
        ret = process_parsed_attribute_internal(op, system, t, p, mask,
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.h:38:63:  [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.
                                ParsedAttribute*, CtrlSystem *system,
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-events.c:106:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "d:acbsh")) >= 0) {
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.c:140:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:706:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    env = getenv(XCONFENV);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:716:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    env = getenv(XCONFENV);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:726:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    env = getenv(XCONFENV);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:315:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        prefix = getenv("HOME");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkapcprofilemodel.c:187:25:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    prof_model->stamp = g_random_int(); // random int to catch iterator type mismatches
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkapcrulemodel.c:147:25:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    rule_model->stamp = g_random_int(); // random int to catch iterator type mismatches
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:3655:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *homeStr = getenv("HOME");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:3712:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *homeStr = getenv("HOME");
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-3dvisionpro.c:52:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        target_id = atoi(argv[1]);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dpy.c:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_str[64];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dpy.c:294:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char pGtfString[128];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dpy.c:325:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char pCvtString[128];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dpy.c:967:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *pMetaModes, *pModeLines[8], *tmp, *modeString;
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dvc.c:66:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        setval = atoi(argv[1]);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-events.c:417: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 unknown[24];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-events.c:446: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 tmp[256];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-info.c:45:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *attr_int_table[NV_CTRL_LAST_ATTRIBUTE + 1] = {
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-info.c:281:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *attr_str_table[NV_CTRL_STRING_LAST_ATTRIBUTE + 1] = {
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-info.c:336:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *attr_bin_table[NV_CTRL_BINARY_DATA_LAST_ATTRIBUTE + 1] = {
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-info.c:361:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *attr_strop_table[NV_CTRL_STRING_OPERATION_LAST_ATTRIBUTE + 1] = {
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.c:92:15:  [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).
    nvDpyId = atoi(av[1]);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:147: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 displayName[512];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:184: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(displayName, "DPY-%i", nvDpyId);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:251: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 displayName[512];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:266: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(displayName, "DPY-%i", nvDpyId);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:272:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char newAttribute[256];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:395: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 tempName[256];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:396: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 newAttributes[256];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:414: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(tempName, "%d", rand());
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:466: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 tempName[256];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:467: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 newAttributes[256];
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:478: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(tempName, "%d", rand());
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:506: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(paddedBuffer, warpData, neededSize);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Device.c:470: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).
    *bus = atoi(p);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Device.c:472: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).
	*bus += atoi(d) << 8;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Device.c:484:15:  [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).
    *device = atoi(p);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Device.c:497: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).
    *func = atoi(p);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Flags.c:129:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buff[16];
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Flags.c:431: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(s, "%lu", i);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:221:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:796:15:  [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 ((fd = open(filename, O_RDONLY)) == -1) goto done;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:812:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, data, stat_buf.st_size);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:1465:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[NV_LINE_LEN];
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:645: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 majorvers[3] = "";
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:742:21:  [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(majorvers, "%d", X_VERSION_MAJOR);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:862:31:  [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 ((configFile = fopen(configPath, "r")) != 0) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:885:35:  [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 ((configFile = fopen(configPath, "r")) != 0) {
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:123: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 scratch[64];
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:146: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(scratch, "%d", configLineNo);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:151: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(scratch, "%d", configLineNo);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Write.c:75:15:  [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 ((cf = fopen(filename, "w")) == NULL)
data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c:193: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).
    *fp = fopen(filename, perms);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:397:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(tmpbuf, buf, len);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:446:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(pathname, flags, mode);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/gen-manpage-opts-helper.c:34: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 scratch[64], *s;
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/nvgetopt.c:459:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char scratch[16];
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:141:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(file, O_RDONLY);
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:241: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 *prefix, scratch[4];
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:249: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).
    stream = fopen(filename, "w");
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:493:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char target_str[64];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:353:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[NUM_GLASSES_INFO_ATTRIBS + 1][MAX_ATTRIB_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:526: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 temp[64]; //scratchpad memory used to construct labels.
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:626: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 temp[64]; //scratchpad memory used to construct labels.
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:713: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 temp[64];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:813: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 temp[64];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:1483: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 temp[64]; //scratchpad memory used to construct labels.
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.h:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    name[GLASSES_NAME_MAX_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:1953: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(items_copy, items, sizeof(items));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:2609: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(*settings_items_copy, settings_items, sizeof(settings_items));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:2613: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(*dialog_items_copy, dialog_items, sizeof(dialog_items));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:2900: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(settings_tree_view_columns_copy, settings_tree_view_columns, sizeof(settings_tree_view_columns));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:3850: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(save_reload_toolbar_items_copy, save_reload_toolbar_items, sizeof(save_reload_toolbar_items));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkappprofile.c:3969: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(items_copy, items, sizeof(items));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkcolorcorrection.c:717: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 (ctk_color_correction->prev_slider_val,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:127:28:  [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).
            metamode->id = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:198:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        screen_info->x = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:201:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        screen_info->y = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:204:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        screen_info->width = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:207:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        screen_info->height = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:3332:37:  [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).
                prime->rect.width = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:3334:38:  [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).
                prime->rect.height = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:3336: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).
                prime->rect.x = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:3338: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).
                prime->rect.y = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:3340:37:  [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).
                prime->screen_num = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:4259: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).
    fp = fopen(filename, "w");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:4484:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    tmp_fd = mkstemp(tmp_filename);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:3505:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rotatedViewPortIn, &selected_mode->viewPortIn, sizeof(nvSize));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:7325:11:  [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).
    idx = atoi(str) -1;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:7712:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int id = atoi(str+3);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:7823:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int id = atoi(tmp+3);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8827:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[32];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaydevice.c:711:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[32];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.c:405: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(output_rect, rect, sizeof(*rect));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.c:2271:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(tmpzo,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.c:2324: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(ctk_object->Zorder, tmpzo,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplaylayout.c:3974:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(mode, display->cur_mode, sizeof(*mode));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkecc.c:259: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 message[128];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:372: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).
        fp = fopen(filename, "wt");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:390:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            if (sprintf(pbuf, "%02x ", data[i]) < 0) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:397: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(pbuf, "%c", '\0');
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:408: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).
        fp = fopen(filename, "wb");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:898:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          tmp[32];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:934:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        tmp[32];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:4117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[32];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5796: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(server_name + strlen(server_name), ":0");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglx.c:236:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[NUM_FBCONFIG_ATTRIBS + 1][16];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglx.c:388:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fbconfig_tooltips[NUM_FBCONFIG_ATTRIBS] = {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.c:194:28:  [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).
        pEntry->graphics = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.c:197:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pEntry->video = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgpu.c:200: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).
        pEntry->pcie = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *str[NV_GRIDD_MAX_TOKENS];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:487:24:  [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 *configFile = fopen(GRID_CONFIG_FILE, "r");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:513: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).
    configFile = fopen(GRID_CONFIG_FILE, "w");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:1407: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).
    configFile = fopen(GRID_CONFIG_FILE, "r+");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:1412:22:  [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).
        configFile = fopen(GRID_CONFIG_FILE, "r");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:1415:26:  [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).
            configFile = fopen(GRID_CONFIG_FILE, "w");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:1430:28:  [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).
            templateFile = fopen(GRID_CONFIG_FILE_TEMPLATE, "r");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:205:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pEntry->perf_level = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:208:27:  [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).
        pEntry->nvclock = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:211:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pEntry->nvclockmin = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:214:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pEntry->nvclockmax = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:217:35:  [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).
        pEntry->nvclockeditable = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:219:35:  [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).
        pEntry->memtransferrate = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:222:38:  [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).
        pEntry->memtransferratemin = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:225:38:  [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).
        pEntry->memtransferratemax = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:228:43:  [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).
        pEntry->memtransferrateeditable = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:230:34:  [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).
        pEntry->processorclock = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:233:37:  [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).
        pEntry->processorclockmin = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:236:37:  [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).
        pEntry->processorclockmax = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:239:35:  [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).
        pEntry->nvclockeditable = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:342:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp_str[24];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:624:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp_str[24];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkpowermizer.c:1929: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 message[128];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscreen.c:151:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[16];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkscreen.c:464:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[16];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkutils.c:297:40:  [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).
                                       open ? GTK_STOCK_OPEN : GTK_STOCK_SAVE,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:48: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).
        pFanEntry->fan_number = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:50:32:  [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).
        pFanEntry->fan_speed = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:52: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).
        pFanEntry->fan_failed = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:61:38:  [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).
        pThermalEntry->intake_temp = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:63:39:  [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).
        pThermalEntry->exhaust_temp = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:65:37:  [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).
        pThermalEntry->board_temp = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:74:34:  [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).
        pPSUEntry->psu_current = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:79:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            pPSUEntry->psu_power = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:85:38:  [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).
            pPSUEntry->psu_voltage = atoi(value);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkvcs.c:124: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 output_str[16];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.c:104: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 compilationLog[2048];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.h:51:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char const * const cubeVertexShaderSource[1];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.h:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char const * const cubeFragmentShaderSource[1];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.h:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char const * const textVertexShaderSource[1];
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/opengl_wrappers.h:54:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char const * const textFragmentShaderSource[1];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:81:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char seq[13];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:130:21:  [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(seq, "\\u%04X", codepoint);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:143:21:  [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(seq, "\\u%04X\\u%04X", first, last);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:193:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[MAX_INTEGER_STR_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:207:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[MAX_REAL_STR_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:440:20:  [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 *output = fopen(path, "w");
data/nvidia-settings-legacy-390xx-390.138/src/jansson/error.c:31:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(error->source, "...");
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable.h:24: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 key[1];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable_seed.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[sizeof(uint32_t)];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable_seed.c:71:15:  [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).
    urandom = open("/dev/urandom", O_RDONLY);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable_seed.c:80:15:  [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).
    urandom = fopen("/dev/urandom", "rb");
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson.h:125: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 source[JSON_ERROR_SOURCE_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson.h:126: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 text[JSON_ERROR_TEXT_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/jansson_private.h:30:24:  [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 va_copy(a, b)  memcpy(&(a), &(b), sizeof(va_list))
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c:53: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[5];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c:84: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 msg_text[JSON_ERROR_TEXT_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c:85: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 msg_with_context[JSON_ERROR_TEXT_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c:1038: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).
    fp = fopen(path, "rb");
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.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 data[MAX_BUF_LEN];
data/nvidia-settings-legacy-390xx-390.138/src/jansson/memory.c:52:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_str, str, len);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/strbuffer.c:93:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new_value, strbuff->value, strbuff->length);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/strbuffer.c:100: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(strbuff->value + strbuff->length, data, size);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c:428: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(&dest[dpos], &src[spos], count * sizeof(json_t *));
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:115: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 *protoNames[NV_PROTO_NAME_MAX]; /* List of valid names for this target */
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c:484:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[16];
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c:488: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, "%d.%d", h->nv->major_version, h->nv->minor_version);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c:616:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*data, tmp, *len);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvml.c:239: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 nvmlUUID[MAX_NVML_STR_LEN];
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvml.c:494:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char res[MAX_NVML_STR_LEN];
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesNvml.c:759:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        res = atoi(f + 1);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c:245:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[16];
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c:246: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, "%d.%d", h->vm->major_version, h->vm->minor_version);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesXrandr.c:407:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[16];
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesXrandr.c:408: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, "%d.%d", h->xrandr->major_version, h->xrandr->minor_version);
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesXv.c:238:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[16];
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesXv.c:239: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, "%d.%d", h->xv->major_version, h->xv->minor_version);
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:132: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 busId[NVML_DEVICE_PCI_BUS_ID_BUFFER_SIZE]; //!< The tuple domain:bus:device.function PCI identifier (&amp; NULL terminator)
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:929: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 firmwareVersion[32];
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:956: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 cause[256];               //!< If amber, a text description of the cause
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:965:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[96];                      //!< Product name
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:966: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 id[96];                        //!< Product identifier
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:967: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 serial[96];                    //!< Product serial number
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:968: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 firmwareVersion[96];           //!< Firmware version
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:988: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 state[256];                 //!< The power supply state
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:1289: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 processName[NVML_VGPU_NAME_BUFFER_SIZE];   //!< Name of process running within the vGPU VM
data/nvidia-settings-legacy-390xx-390.138/src/nvml.h:1317: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                            licenseInfo[NVML_GRID_LICENSE_INFO_MAX_LENGTH];
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:681: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 tmpname[NV_PARSER_MAX_NAME_LEN];
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1111:23:  [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.
            else s += sprintf(s, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1112:18:  [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.
            s += sprintf(s, "CRT-%X", devcnt);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1123:23:  [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.
            else s += sprintf(s, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1124:18:  [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.
            s += sprintf(s, "DFP-%X", devcnt);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1135:23:  [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.
            else s += sprintf(s, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1136:18:  [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.
            s += sprintf(s, "TV-%X", devcnt);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1144:19:  [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.
        else s += sprintf(s, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1145:14:  [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.
        s += sprintf(s, "CRT");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1150:19:  [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.
        else s += sprintf(s, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1151:14:  [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.
        s += sprintf(s, "TV");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1156:19:  [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.
        else s += sprintf(s, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1157:14:  [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.
        s += sprintf(s, "DFP");
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1354:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            screen = atoi(dot + 1);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1642: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).
    *num = atoi(str);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1729:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *mask = 1 << (atoi(str+4));
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1732: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).
        *mask = (1 << (atoi(str+3))) << 8;
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1735: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).
        *mask = (1 << (atoi(str+4))) << 16;
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1769:15:  [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).
        *id = atoi(str+4);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:915: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 d_str[256];
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1029:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[256];
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1031: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 str2[256];
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1123:28:  [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.
                    *at += sprintf(*at, "%d", print_bit);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1125:28:  [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.
                    *at += sprintf(*at, " and %d", print_bit);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1127:28:  [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.
                    *at += sprintf(*at, ", %d", print_bit);
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1164:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            if (n > 0) c += sprintf(c, ", ");
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1170:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    if (n == 0) sprintf(c, "None");
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1207: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 d_str[64], val_str[64], *tmp_d_str;
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1790:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[PRODUCT_NAME_LEN];
data/nvidia-settings-legacy-390xx-390.138/src/query-assign.c:1976:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[32], *tmp_d_str;
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-dpy.c:1237:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-events.c:475: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).
                for (len = 0; len < strlen(entry->name); len++) {
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:161: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).
    attributeLen = strlen(attribute);
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:308: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).
        neededLength = strlen(pCurrentMetaMode) +
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:309: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).
                       strlen(newAttribute) +
data/nvidia-settings-legacy-390xx-390.138/samples/nv-control-warpblend.h:310: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).
                       strlen(pDisplay);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Device.c:419: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).
	    *retID = busID + strlen(p) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:110: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).
                i = strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:114: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).
                i = strlen (ptr->fontpath) + strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:114: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).
                i = strlen (ptr->fontpath) + strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:115: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 (ptr->fontpath[strlen (ptr->fontpath) - 1] != ',')
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:123:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (ptr->fontpath, ",");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:142: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).
                k = strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:146: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).
                k = strlen (ptr->modulepath) + strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:146: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).
                k = strlen (ptr->modulepath) + strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:147: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).
                if (ptr->modulepath[strlen (ptr->modulepath) - 1] != ',')
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:155:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (ptr->modulepath, ",");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:169: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).
                k = strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:173: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).
                k = strlen (ptr->inputdevs) + strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:173: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).
                k = strlen (ptr->inputdevs) + strlen (str) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:174: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).
                if (ptr->inputdevs[strlen (ptr->inputdevs) - 1] != ',')
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Files.c:182:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (ptr->inputdevs, ",");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:841: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).
    start = tmp + strlen(keyword);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:853:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(value, start, len);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:860:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tmp, value + 1, len - 2);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Generate.c:966: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).
            e->device = device + strlen("/dev/");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:138: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).
                l = strlen(s1) + 1 + strlen(s2) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:138: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).
                l = strlen(s1) + 1 + strlen(s2) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:149: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).
                l = strlen(s) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:153: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).
                    l += (1 + strlen(s1));
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Keyboard.c:155:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat(s, " ");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Merge.c:57:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = 32 + strlen(name) + strlen(value);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Merge.c:57: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).
        len = 32 + strlen(name) + strlen(value);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Merge.c:62:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = 32 + strlen(name);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Pointer.c:177: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).
                l = strlen(s1) + 1 + strlen(s2) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Pointer.c:177: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).
                l = strlen(s1) + 1 + strlen(s2) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:341:27:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    ret = strncpy(configBuf, builtinConfig[builtinIndex],
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:441: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).
            val.str = malloc (strlen (configRBuf) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:567:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(path) > 3) && !strcmp(path + strlen(path) - 3, "/.."))
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:567:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(path) > 3) && !strcmp(path + strlen(path) - 3, "/.."))
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:628:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            if (strlen(s) + l > PATH_MAX) { \
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:632: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).
                                l += strlen(s);             \
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:943: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).
    configSection = malloc(strlen (section) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:963: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).
        curlen = strlen(cur);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:980:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(add);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Scan.c:995:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(cur, "\n");
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:81:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = 1 + strlen(str);
data/nvidia-settings-legacy-390xx-390.138/src/XF86Config-parser/Util.c:86: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).
        l += strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c:84: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).
    *s = realloc(*s, b + strlen(replace) + strlen(tail) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c:84:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *s = realloc(*s, b + strlen(replace) + strlen(tail) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c:151: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 (errno || (endptr - old_substr != strlen(old_substr))) {
data/nvidia-settings-legacy-390xx-390.138/src/app-profiles.c:2257:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(filename);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:84:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:181:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (m, s, n);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:331:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!replace) replace = str + strlen(str);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:335:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(user, str+1, len-1);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:344: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).
    ret = malloc(strlen(prefix) + strlen(replace) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:344: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).
    ret = malloc(strlen(prefix) + strlen(replace) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:404:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = fgetc(fp);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:429: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).
        return (s + strlen(s));
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:615: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).
    for (end = ret + strlen(ret) - 1; end >= ret && isspace(*end); end--) {
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:644:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(string);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/common-utils.c:715:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(string);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/gen-manpage-opts-helper.c:44:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(o->name);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c:269: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).
    z = strlen(buf); /* length of entire string */
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c:275: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).
        prefix_len = strlen(prefix);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c:322:27:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        if (local_prefix) strncpy(line, local_prefix, prefix_len);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c:323:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(line + prefix_len, a, len - prefix_len);
data/nvidia-settings-legacy-390xx-390.138/src/common-utils/msg.c:375:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(msg);
data/nvidia-settings-legacy-390xx-390.138/src/config-file.c:607:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (tmp, cur, len);
data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.c:68: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).
   extTmp = nvalloc( (strlen(ext) +i +1) *sizeof(char) );
data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.c:82: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).
   while ( extTmp[ strlen(extTmp)-1 ] == ' ' || 
data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.c:83: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).
           extTmp[ strlen(extTmp)-1 ] == ',' ) {
data/nvidia-settings-legacy-390xx-390.138/src/glxinfo.c:84: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).
       extTmp[ strlen(extTmp)-1 ] = '\0';
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:328:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dlg->glasses_new_name = realloc(dlg->glasses_new_name, strlen(str) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:329:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dlg->glasses_new_name, str, strlen(str) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:329:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(dlg->glasses_new_name, str, strlen(str) + 1);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:567:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(glasses->name, glasses_name, sizeof(glasses->name));;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:788:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(glasses->name, glasses_name, sizeof(glasses->name));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:1299:50:  [1] (buffer) strlen:
  Does not handle 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 (dlg->glasses_new_name == NULL || strlen(dlg->glasses_new_name) == 0) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:1322:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(HTU(0)->glasses_info[dlg->glasses_selected_index]->name, dlg->glasses_new_name,
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctk3dvisionpro.c:1565:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(glasses->name, glasses_name, sizeof(glasses->name));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:65:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!modeline || !token || !strlen(token)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:71: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 (!value || !strlen(value)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:89: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 (!value || !strlen(value)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:118:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!metamode || !token || !strlen(token)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:124: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 (!value || !strlen(value)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:132: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 (!value || !strlen(value)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:146: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 (!value || !strlen(value)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:169:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!source || !token || !strlen(token)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:193: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).
    if (!screen_info || !token || !strlen(token)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:280:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    while ((str = parse_read_name(str, &tmp, 0)) && strlen(tmp)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:599:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!mode || !token || !strlen(token)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:1566: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).
    while (strlen(str)) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:1587: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).
        str += strlen(str) +1;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:2411: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).
         (str && strlen(str));
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:2412: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).
          str += strlen(str) +1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig-utils.c:3323: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 (value && strlen(value) >= 2 ) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:708:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(metamode_strs);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:747: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).
        metamode_len = strlen(metamode_str);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:7709: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).
    for (m = metamode_strs; m && strlen(m); m += strlen(m) +1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:7709:50:  [1] (buffer) strlen:
  Does not handle 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 (m = metamode_strs; m && strlen(m); m += strlen(m) +1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8032:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = 24 + strlen(metamode->cpl_str);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8131: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).
         metamode_str && strlen(metamode_str);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8132: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).
         metamode_str += strlen(metamode_str) +1, idx++) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8254: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).
         str && strlen(str);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8255: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).
         str += strlen(str) +1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8263: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).
         str && strlen(str);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8264: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).
         str += strlen(str) +1) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkdisplayconfig.c:8540:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(display->logName);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:176:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(ctk_edid->filename);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:181:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(filename, ctk_edid->filename, len);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkedid.c:218:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, filename, n);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5783: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).
    server_name = malloc(strlen(display_name) + 3);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkframelock.c:5796: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).
        sprintf(server_name + strlen(server_name), ":0");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglx.c:243:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf((char *) (&(str[cell++])),".");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkglx.c:250:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf((char *) (&(str[cell++])),".");
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:247: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).
    const size_t itemLen = strlen(item);
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:249: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(line) <= itemLen) {
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgridlicense.c:287: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).
        p = tmpLine + strlen(itemStr) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/gtk+-2.x/ctkgvo-sync.c:191: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).
        tmp = strlen(videoFormatNames[i].name);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:340: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).
                    dump_string(key, strlen(key), dump, data, flags);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/dump.c:378: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).
                    dump_string(key, strlen(key), dump, data, flags);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/error.c:26:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(source);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable.c:33: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).
#define hash_str(key)        ((size_t)hashlittle((key), strlen(key), hashtable_seed))
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable.c:238:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(key);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/hashtable_seed.c:75:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ok = read(urandom, data, sizeof(uint32_t)) == sizeof(uint32_t);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/load.c:1017:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(lex_init(&lex, (get_func)fgetc, input))
data/nvidia-settings-legacy-390xx-390.138/src/jansson/memory.c:41: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).
    return jsonp_strndup(str, strlen(str));
data/nvidia-settings-legacy-390xx-390.138/src/jansson/pack_unpack.c:148:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(str);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/pack_unpack.c:180: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).
            length = strlen(str);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/strbuffer.c:65:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strbuffer_append_bytes(strbuff, string, strlen(string));
data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c:127: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).
    if(!key || !utf8_check_string(key, strlen(key)))
data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c:673:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return string_create(value, strlen(value), 0);
data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c:692: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).
    return json_stringn(value, strlen(value));
data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c:724:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return json_string_setn_nocheck(json, value, strlen(value));
data/nvidia-settings-legacy-390xx-390.138/src/jansson/value.c:752: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).
    return json_string_setn(json, value, strlen(value));
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/NVCtrl.c:530:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(ptr)+1;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/NVCtrl.c:1083: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).
        inSize = strlen(pIn) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrl/NVCtrl.c:1150: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).
    nameLen = strlen(name) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributes.h:354:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read  : 1;
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:697:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tmp) + strlen(targetTypeInfo->parsed_name)
data/nvidia-settings-legacy-390xx-390.138/src/libXNVCtrlAttributes/NvCtrlAttributesUtils.c:697: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).
        len = strlen(tmp) + strlen(targetTypeInfo->parsed_name)
data/nvidia-settings-legacy-390xx-390.138/src/nvidia-settings.c:59: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).
    int length = strlen(prefix);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:756:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpname, name, len);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:830: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).
                    tmp = s + strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:839: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).
                        tmp = s + strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:847: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).
                tmp = s + strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:859: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).
            tmp = s + strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:870: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).
            tmp = s + strlen(s);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1333:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(display_name) + strlen(uname_buf.nodename) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1333: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).
            len = strlen(display_name) + strlen(uname_buf.nodename) + 1;
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1377:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(display_name) + 8;
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1401:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (o);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1435:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(o);
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1602: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).
    char *tmp = str + strlen(str) -1;
data/nvidia-settings-legacy-390xx-390.138/src/parse.c:1704:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(*name, tmp, str -tmp);

ANALYSIS SUMMARY:

Hits = 553
Lines analyzed = 137493 in approximately 3.12 seconds (44082 lines/second)
Physical Source Lines of Code (SLOC) = 85405
Hits@level = [0] 827 [1] 157 [2] 219 [3]  10 [4] 167 [5]   0
Hits@level+ = [0+] 1380 [1+] 553 [2+] 396 [3+] 177 [4+] 167 [5+]   0
Hits/KSLOC@level+ = [0+] 16.1583 [1+] 6.47503 [2+] 4.63673 [3+] 2.07248 [4+] 1.95539 [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.