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/libsx-2.08/pcurve/pcurve.c
Examining data/libsx-2.08/multireq/multireq.c
Examining data/libsx-2.08/multireq/multireq.h
Examining data/libsx-2.08/multireq/main.c
Examining data/libsx-2.08/demo2/callbacks.c
Examining data/libsx-2.08/demo2/main.h
Examining data/libsx-2.08/demo2/callbacks.h
Examining data/libsx-2.08/demo2/main.c
Examining data/libsx-2.08/src/misc.c
Examining data/libsx-2.08/src/grabpix.c
Examining data/libsx-2.08/src/drawing.c
Examining data/libsx-2.08/src/toggle.c
Examining data/libsx-2.08/src/draw.c
Examining data/libsx-2.08/src/menu.c
Examining data/libsx-2.08/src/drawingP.h
Examining data/libsx-2.08/src/list.c
Examining data/libsx-2.08/src/libsx_private.h
Examining data/libsx-2.08/src/drawing.h
Examining data/libsx-2.08/src/libsx.c
Examining data/libsx-2.08/src/version.c
Examining data/libsx-2.08/src/button.c
Examining data/libsx-2.08/src/scrollbar.c
Examining data/libsx-2.08/src/colormap.c
Examining data/libsx-2.08/src/libsx.h
Examining data/libsx-2.08/src/font.c
Examining data/libsx-2.08/src/string_entry.c
Examining data/libsx-2.08/src/xstuff.h
Examining data/libsx-2.08/src/resize.c
Examining data/libsx-2.08/src/check_mark.h
Examining data/libsx-2.08/src/dialog.c
Examining data/libsx-2.08/src/dialog.h
Examining data/libsx-2.08/src/colorsel.c
Examining data/libsx-2.08/src/freq.c
Examining data/libsx-2.08/src/dirlist.c
Examining data/libsx-2.08/src/popups.c
Examining data/libsx-2.08/draw_demo/draw_demo.c
Examining data/libsx-2.08/demo3/callbacks.c
Examining data/libsx-2.08/demo3/main.h
Examining data/libsx-2.08/demo3/callbacks.h
Examining data/libsx-2.08/demo3/main.c
Examining data/libsx-2.08/controlbox/callbacks.c
Examining data/libsx-2.08/controlbox/main.h
Examining data/libsx-2.08/controlbox/controlbox.c
Examining data/libsx-2.08/controlbox/callbacks.h
Examining data/libsx-2.08/controlbox/controlbox.h
Examining data/libsx-2.08/controlbox/main.c
Examining data/libsx-2.08/bezier/callbacks.c
Examining data/libsx-2.08/bezier/bezier.h
Examining data/libsx-2.08/bezier/gfx.h
Examining data/libsx-2.08/bezier/bezier.c
Examining data/libsx-2.08/bezier/main.h
Examining data/libsx-2.08/bezier/gfx.c
Examining data/libsx-2.08/bezier/callbacks.h
Examining data/libsx-2.08/bezier/main.c
Examining data/libsx-2.08/xrootbg/xrootbg.c
Examining data/libsx-2.08/creq/creq.c
Examining data/libsx-2.08/creq/creq.h
Examining data/libsx-2.08/creq/main.c
Examining data/libsx-2.08/demo0/main0.c
Examining data/libsx-2.08/demo0/callbacks.c
Examining data/libsx-2.08/demo0/main.h
Examining data/libsx-2.08/demo0/foo0.c
Examining data/libsx-2.08/demo0/hello_world.c
Examining data/libsx-2.08/demo0/foo.h
Examining data/libsx-2.08/demo0/test.c
Examining data/libsx-2.08/demo0/callbacks.h
Examining data/libsx-2.08/demo0/main.c
Examining data/libsx-2.08/skel/callbacks.c
Examining data/libsx-2.08/skel/main.h
Examining data/libsx-2.08/skel/callbacks.h
Examining data/libsx-2.08/skel/main.c
Examining data/libsx-2.08/freq/simple_freq.c
Examining data/libsx-2.08/freq/freq.h
Examining data/libsx-2.08/freq/main.c
Examining data/libsx-2.08/freq/dirlist.c
Examining data/libsx-2.08/freq/freq.c
Examining data/libsx-2.08/demo1/main.h
Examining data/libsx-2.08/demo1/callbacks.h
Examining data/libsx-2.08/demo1/main.c
Examining data/libsx-2.08/demo1/callbacks.c
Examining data/libsx-2.08/demo4/thing2.h
Examining data/libsx-2.08/demo4/thing1.h
Examining data/libsx-2.08/demo4/thing4.h
Examining data/libsx-2.08/demo4/demo4.c
Examining data/libsx-2.08/demo4/thing3.h
Examining data/libsx-2.08/xmore/xmore.c
Examining data/libsx-2.08/frac/frac.c
Examining data/libsx-2.08/debian/patches/libsx-simple_freq.c

FINAL RESULTS:

data/libsx-2.08/freq/dirlist.c:91:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(name, "%s/", d->d_name);
data/libsx-2.08/freq/freq.c:53: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(new, str);
data/libsx-2.08/freq/freq.c:107: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(path, _path);
data/libsx-2.08/freq/freq.c:147:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata.fpath, path);
data/libsx-2.08/freq/freq.c:185:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fullname, "%s%s", fpath, fname);
data/libsx-2.08/freq/freq.c:190:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fname, fullname);
data/libsx-2.08/freq/freq.c:222:6:  [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(oldfile, string);
data/libsx-2.08/freq/freq.c:232:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(fullname, "%s%s", fpath, string);
data/libsx-2.08/freq/freq.c:237:6:  [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(fdata->fname, fullname);
data/libsx-2.08/freq/freq.c:253:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(newpath, fdata->fpath);
data/libsx-2.08/freq/freq.c:259:6:  [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(newpath, fdata->fpath);
data/libsx-2.08/freq/freq.c:262:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(newpath, string);
data/libsx-2.08/freq/freq.c:300:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(newpath, "%s%s", fdata->fpath, string);
data/libsx-2.08/freq/freq.c:302:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(newpath, "%s/%s", fdata->fpath, string);
data/libsx-2.08/freq/freq.c:312:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fpath, newpath);
data/libsx-2.08/freq/freq.c:315:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fpath, newpath);
data/libsx-2.08/freq/freq.c:337:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(temp, string);
data/libsx-2.08/freq/freq.c:352:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fpath, temp);
data/libsx-2.08/freq/freq.c:370:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fullname, "%s%s", fpath, string);
data/libsx-2.08/freq/freq.c:375:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fname, fullname);
data/libsx-2.08/multireq/multireq.c:72:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(window_name, tags[num_tags].label);
data/libsx-2.08/multireq/multireq.c:254:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(tagptr->data, cptr);
data/libsx-2.08/src/colorsel.c:375: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(col_str, GrabPixel("%r %g %b"));
data/libsx-2.08/src/colorsel.c:411:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cdata->match_list[0], "  %3d %3d %3d      %s",
data/libsx-2.08/src/colorsel.c:420:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(format, "%%s%%%ds %%s%%2.2f %%%%", 
data/libsx-2.08/src/colorsel.c:423:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(cdata->match_list[i], format, 
data/libsx-2.08/src/colorsel.c:456:5:  [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.
    sscanf(cdata->match_ptr[0], "%d %d %d %s", &r, &g, &b, cdata->save);
data/libsx-2.08/src/colorsel.c:560:7:  [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.
      sscanf(string, "%s", name);
data/libsx-2.08/src/colorsel.c:564:7:  [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.
      sscanf(cdata->rgb_ptr[i], "%d %d %d %s", &r, &g, &b, col_str);
data/libsx-2.08/src/colorsel.c:642:7:  [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.
      sscanf(pline, "%d %d %d %s %s %s %s", &r, &g, &b, name, 
data/libsx-2.08/src/colorsel.c:648:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cdata->rgb_list[i], "  %3d %3d %3d      %s", r, g, b, name);
data/libsx-2.08/src/colorsel.c:671:3:  [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.
  sscanf(string, "%d %d %d %s\n", &r, &g, &b, name);
data/libsx-2.08/src/colorsel.c:673:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(color_line, "%s  =  #%02X%02X%02X", name, r, g, b);
data/libsx-2.08/src/colorsel.c:875: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(col_str,cdata.save);
data/libsx-2.08/src/dirlist.c:98:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(needle, ptr);
data/libsx-2.08/src/dirlist.c:136:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(name, "%s/", d->d_name);
data/libsx-2.08/src/draw.c:798:6:  [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(key_buff, tmp);
data/libsx-2.08/src/freq.c:55: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(new, str);
data/libsx-2.08/src/freq.c:144: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(path, _path);
data/libsx-2.08/src/freq.c:159:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(filename,ptr);
data/libsx-2.08/src/freq.c:228:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata.fpath, path);
data/libsx-2.08/src/freq.c:267:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fullname, "%s%s", fpath, fname);
data/libsx-2.08/src/freq.c:272:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fname, fullname);
data/libsx-2.08/src/freq.c:305:6:  [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(oldfile, string);
data/libsx-2.08/src/freq.c:315:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(fullname, "%s%s", fpath, string);
data/libsx-2.08/src/freq.c:320:6:  [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(fdata->fname, fullname);
data/libsx-2.08/src/freq.c:342:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(newpath, fdata->fpath);
data/libsx-2.08/src/freq.c:348:6:  [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(newpath, fdata->fpath);
data/libsx-2.08/src/freq.c:351:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(newpath, string);
data/libsx-2.08/src/freq.c:389:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(newpath, "%s%s", fdata->fpath, string);
data/libsx-2.08/src/freq.c:391:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(newpath, "%s/%s", fdata->fpath, string);
data/libsx-2.08/src/freq.c:401:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fpath, newpath);
data/libsx-2.08/src/freq.c:404:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fpath, newpath);
data/libsx-2.08/src/freq.c:428:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(temp, string);
data/libsx-2.08/src/freq.c:443:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fpath, temp);
data/libsx-2.08/src/freq.c:502:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fullname, "%s%s", fpath, string);
data/libsx-2.08/src/freq.c:507:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fdata->fname, fullname);
data/libsx-2.08/src/grabpix.c:273: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(output,addstr);
data/libsx-2.08/src/libsx.c:103:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(locale_file, SX_SHAREDIR"/dialogs.%c%c", 
data/libsx-2.08/src/libsx.c:107:6:  [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(locale_file, SX_SHAREDIR"/dialogs.en"), 
data/libsx-2.08/src/libsx.c:121: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(SX_Dialog[i],line);
data/libsx-2.08/src/popups.c:85:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(*string, ptr);
data/libsx-2.08/xrootbg/xrootbg.c:15:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(cmd);
data/libsx-2.08/demo1/callbacks.c:126:3:  [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) | 0x01);              /* seed the random number generator */
data/libsx-2.08/demo1/callbacks.c:143:3:  [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) | 0x01);              /* seed the random number generator */
data/libsx-2.08/frac/frac.c:86:3:  [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((getpid()*time(NULL)) | 0x01); 
data/libsx-2.08/src/freq.c:476:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  load_dir(w, getenv("HOME"), (FReqData *)fdata);
data/libsx-2.08/src/libsx.c:100:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (language==NULL) language=getenv("LANG");
data/libsx-2.08/xrootbg/xrootbg.c:58:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ptr = getenv("LANG");
data/libsx-2.08/bezier/callbacks.c:114:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[80];
data/libsx-2.08/bezier/callbacks.c:119:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buff, "Timeout Val: %-6f    ", me->timeout_val);
data/libsx-2.08/bezier/main.c:76:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[80];
data/libsx-2.08/bezier/main.c:90:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buff, "Timeout Val: %-6f", me->timeout_val);
data/libsx-2.08/controlbox/controlbox.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[256];
data/libsx-2.08/controlbox/controlbox.c:35:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buff, "%f", new_val);
data/libsx-2.08/controlbox/controlbox.c:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[256];
data/libsx-2.08/controlbox/controlbox.c:60:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(buff, "%f", new_val);
data/libsx-2.08/controlbox/controlbox.c:67:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(buff, "%f", new_val);
data/libsx-2.08/controlbox/controlbox.c:138:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char buff[256];
data/libsx-2.08/controlbox/controlbox.c:140:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(buff, "%f", *vars[i].val);
data/libsx-2.08/creq/creq.c:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cvalue[4];
data/libsx-2.08/creq/creq.c:75:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(cvalue, "%d", *r);
data/libsx-2.08/creq/creq.c:80:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(cvalue, "%d", *g);
data/libsx-2.08/creq/creq.c:85:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(cvalue, "%d", *b);
data/libsx-2.08/creq/creq.c:160:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cvalue[4];
data/libsx-2.08/creq/creq.c:170:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)cdata->r);
data/libsx-2.08/creq/creq.c:174:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)cdata->g);
data/libsx-2.08/creq/creq.c:178:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)cdata->b);
data/libsx-2.08/creq/creq.c:189:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)cdata->h);
data/libsx-2.08/creq/creq.c:193:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)cdata->s);
data/libsx-2.08/creq/creq.c:197:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)cdata->v);
data/libsx-2.08/creq/creq.c:225:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cvalue[4];
data/libsx-2.08/creq/creq.c:236:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(cvalue, "%d", (int)val);
data/libsx-2.08/creq/creq.c:265:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(cvalue, "%d", (int)val);
data/libsx-2.08/creq/creq.c:274:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(cvalue, "%d", (int)val);
data/libsx-2.08/creq/creq.c:283:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(cvalue, "%d", (int)val);
data/libsx-2.08/creq/creq.c:299:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cvalue[4];
data/libsx-2.08/creq/creq.c:301:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(cvalue, "%d", (int)val);
data/libsx-2.08/demo0/callbacks.c:96:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen(txt, "r")) != NULL)  /* test if it exists first */
data/libsx-2.08/demo0/callbacks.c:166:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(name, "wb");
data/libsx-2.08/freq/dirlist.c:110:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char **table, old_dir[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fpath[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:72:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:102:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fullname[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:201:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char newpath[MAXPATHLEN], *cptr, *fpath, fullname[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:203:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char oldfile[MAXPATHLEN] = { '\0', };
data/libsx-2.08/freq/freq.c:255:8:  [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(newpath, "./");
data/libsx-2.08/freq/freq.c:283:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	   strcat(newpath, "../");    /* and append the new ../ */
data/libsx-2.08/freq/freq.c:290:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	     strcpy(newpath, "./");
data/libsx-2.08/freq/freq.c:333:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char **old_dirlist, temp[MAXPATHLEN];
data/libsx-2.08/freq/freq.c:366:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *fpath, fullname[MAXPATHLEN];
data/libsx-2.08/multireq/main.c:60:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char name[1024] = "Computer Geek";
data/libsx-2.08/multireq/main.c:61:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char address[1024] = "Fuller Labs, WPI";
data/libsx-2.08/multireq/multireq.c:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char string[256], window_name[256]="Requestor";
data/libsx-2.08/multireq/multireq.c:118:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    mdata.w[w]=MakeStringEntry((char *)tags[i].data, 250, 
data/libsx-2.08/multireq/multireq.c:138:8:  [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(string, "%d", *((int *)tags[i].data));
data/libsx-2.08/multireq/multireq.c:160:8:  [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(string, "%f", *((float *)tags[i].data));
data/libsx-2.08/multireq/multireq.c:258:29:  [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 *)tagptr->data) = atoi(cptr);
data/libsx-2.08/src/colorsel.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cvalue[80];
data/libsx-2.08/src/colorsel.c:209: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(cvalue, "%d", w_r);
data/libsx-2.08/src/colorsel.c:217: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(cvalue, "%d", w_g);
data/libsx-2.08/src/colorsel.c:225: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(cvalue, "%d", w_b);
data/libsx-2.08/src/colorsel.c:258: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(cvalue, "%d", w_h);
data/libsx-2.08/src/colorsel.c:266: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(cvalue, "%d", w_s);
data/libsx-2.08/src/colorsel.c:274: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(cvalue, "%d", w_v);
data/libsx-2.08/src/colorsel.c:308: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(cvalue, "%d", w_c);
data/libsx-2.08/src/colorsel.c:316: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(cvalue, "%d", w_m);
data/libsx-2.08/src/colorsel.c:324: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(cvalue, "%d", w_y);
data/libsx-2.08/src/colorsel.c:332: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(cvalue, "%d", w_k);
data/libsx-2.08/src/colorsel.c:372:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 col_str[80];
data/libsx-2.08/src/colorsel.c:388:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  format[30];
data/libsx-2.08/src/colorsel.c:450: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(cdata->save, "#%02X%02X%02X",      
data/libsx-2.08/src/colorsel.c:547:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[40], col_str[40];
data/libsx-2.08/src/colorsel.c:620:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 rgb_line[256];
data/libsx-2.08/src/colorsel.c:624:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[40], comp1[20], comp2[20], comp3[20];
data/libsx-2.08/src/colorsel.c:633:6:  [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).
  fd=fopen(RGBTXT, "r");
data/libsx-2.08/src/colorsel.c:669:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[40], color_line[80];
data/libsx-2.08/src/colorsel.c:688:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char col_str[80];
data/libsx-2.08/src/dirlist.c:47: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 _FreqFilter[84];
data/libsx-2.08/src/dirlist.c:80:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 needle[84];
data/libsx-2.08/src/dirlist.c:155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char **table, old_dir[MAXPATHLEN];
data/libsx-2.08/src/draw.c:780:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char key_buff[KEY_BUFF_SIZE];
data/libsx-2.08/src/freq.c:31: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 _FreqFilter[84];
data/libsx-2.08/src/freq.c:85:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fpath[MAXPATHLEN];
data/libsx-2.08/src/freq.c:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[MAXPATHLEN];
data/libsx-2.08/src/freq.c:134:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAXPATHLEN];
data/libsx-2.08/src/freq.c:135:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char filename[MAXPATHLEN]="";
data/libsx-2.08/src/freq.c:261:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fullname[MAXPATHLEN];
data/libsx-2.08/src/freq.c:283:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char newpath[MAXPATHLEN], *cptr, *fpath, fullname[MAXPATHLEN];
data/libsx-2.08/src/freq.c:285:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char oldfile[MAXPATHLEN] = { '\0', };
data/libsx-2.08/src/freq.c:344:8:  [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(newpath, "./");
data/libsx-2.08/src/freq.c:372:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	   strcat(newpath, "../");    /* and append the new ../ */
data/libsx-2.08/src/freq.c:379:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	     strcpy(newpath, "./");
data/libsx-2.08/src/freq.c:422:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char **old_dirlist, temp[MAXPATHLEN];
data/libsx-2.08/src/freq.c:498:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *fpath, fullname[MAXPATHLEN];
data/libsx-2.08/src/grabpix.c:135:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char output[256];
data/libsx-2.08/src/grabpix.c:209:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char addstr[20];
data/libsx-2.08/src/grabpix.c:210:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char format[30];
data/libsx-2.08/src/grabpix.c:263: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.
            case 'x': sprintf(addstr, "%d", data->x); break;
data/libsx-2.08/src/grabpix.c:264: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.
            case 'y': sprintf(addstr, "%d", data->y); break;
data/libsx-2.08/src/grabpix.c:265: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.
            case 'r': sprintf(addstr, "%d", color.red/256); break;
data/libsx-2.08/src/grabpix.c:266: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.
            case 'g': sprintf(addstr, "%d", color.green/256); break;
data/libsx-2.08/src/grabpix.c:267: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.
            case 'b': sprintf(addstr, "%d", color.blue/256); break;            
data/libsx-2.08/src/grabpix.c:268: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.
            case 'c': sprintf(addstr, "%d", (unsigned int)pixel); break;
data/libsx-2.08/src/grabpix.c:269: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.
            case 'm': sprintf(addstr, "%d", event.xbutton.button); break;
data/libsx-2.08/src/grabpix.c:270: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.
            case 'w': sprintf(addstr, "%x", (unsigned int)window); break;
data/libsx-2.08/src/grabpix.c:272:11:  [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 sprintf(addstr,"%c", format[i]);
data/libsx-2.08/src/libsx.c:20:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *SX_Dialog[NUM_DIAL];
data/libsx-2.08/src/libsx.c:53:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 _FreqFilter[80] = "*";
data/libsx-2.08/src/libsx.c:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char locale_file[128];
data/libsx-2.08/src/libsx.c:95:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[128];
data/libsx-2.08/src/libsx.c:105:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = fopen(locale_file, "r");
data/libsx-2.08/src/libsx.c:108:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = fopen(locale_file, "r");
data/libsx-2.08/src/libsx.c:564:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *argv[5];
data/libsx-2.08/src/libsx.h:328: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 *SX_Dialog[NUM_DIAL];
data/libsx-2.08/src/libsx.h:393:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rgb_list[1000][60];
data/libsx-2.08/src/libsx.h:394:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *rgb_ptr[1000];
data/libsx-2.08/src/libsx.h:395:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char match_list[1000][80];
data/libsx-2.08/src/libsx.h:396:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *match_ptr[1000];
data/libsx-2.08/src/libsx.h:397:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char save[40];
data/libsx-2.08/src/string_entry.c:433:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(fname, O_RDONLY);
data/libsx-2.08/xmore/xmore.c:132:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char dummy_label[MAXLABEL];
data/libsx-2.08/xrootbg/xrootbg.c:12:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cmd[256];
data/libsx-2.08/xrootbg/xrootbg.c:13:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(cmd, "xsetroot -solid \\#%02X%02X%02X ", 
data/libsx-2.08/xrootbg/xrootbg.c:24:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char label[80];
data/libsx-2.08/xrootbg/xrootbg.c:60:6:  [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(label, "Grund Farbe");
data/libsx-2.08/xrootbg/xrootbg.c:63:6:  [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(label, "Couleur fond d'écran");
data/libsx-2.08/xrootbg/xrootbg.c:65:6:  [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(label, "Background color");
data/libsx-2.08/controlbox/controlbox.c:103:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       len = strlen(vars[i].name);
data/libsx-2.08/freq/dirlist.c:88: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).
     name = (char *)malloc(strlen(d->d_name)+2);
data/libsx-2.08/freq/freq.c:51: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).
  new = malloc(strlen(str)+1);
data/libsx-2.08/freq/freq.c:109:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(path[strlen(path)-1] != '/')
data/libsx-2.08/freq/freq.c:110:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(path, "/");
data/libsx-2.08/freq/freq.c:171:3:  [1] (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 character.
  strcpy(fdata->fname, "");
data/libsx-2.08/freq/freq.c:228:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(string[strlen(string)-1] != '/')   /* a regular file double click */
data/libsx-2.08/freq/freq.c:282:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	   strcat(newpath, "/");      /* put back the / we took out */
data/libsx-2.08/freq/freq.c:288:7:  [1] (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 character.
	     strcpy(newpath, "/");
data/libsx-2.08/freq/freq.c:292:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   if (newpath[strlen(newpath)-1] != '/')
data/libsx-2.08/freq/freq.c:293:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	     strcat(newpath, "/");
data/libsx-2.08/freq/freq.c:299:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if (fdata->fpath[strlen(fdata->fpath)-1] == '/')
data/libsx-2.08/freq/freq.c:338:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(temp[strlen(temp)-1] != '/')
data/libsx-2.08/freq/freq.c:339:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(temp, "/");
data/libsx-2.08/multireq/multireq.c:77: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(tags[num_tags].label) > maxwidth)
data/libsx-2.08/multireq/multireq.c:79: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).
	  maxwidth = strlen(tags[num_tags].label);
data/libsx-2.08/src/colorsel.c:421: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).
              (int)(50-strlen(cdata->rgb_ptr[rank[i-1]])));
data/libsx-2.08/src/colorsel.c:654:3:  [1] (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 character.
  strcpy(cdata->rgb_list[i], "");
data/libsx-2.08/src/dialog.c:218:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    XtSetArg(wargs[n], XtNinsertPosition,   strlen(suggestion));n++;
data/libsx-2.08/src/dirlist.c:133: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).
     name = (char *)malloc(strlen(d->d_name)+2);
data/libsx-2.08/src/draw.c:493:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XDrawImageString(display, window, drawgc, x, y, string, strlen(string));
data/libsx-2.08/src/draw.c:501: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).
  XDrawString(display, window, drawgc, x, y, string, strlen(string));
data/libsx-2.08/src/draw.c:800:6:  [1] (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 character.
	    strcpy(key_buff, "");
data/libsx-2.08/src/drawing.c:142: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).
    from.size = strlen((char *) from.addr) + 1;
data/libsx-2.08/src/font.c:102: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 XTextWidth(f, txt, strlen(txt));
data/libsx-2.08/src/freq.c:53: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).
  new = malloc(strlen(str)+1);
data/libsx-2.08/src/freq.c:115:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(_FreqFilter, filter, 80);
data/libsx-2.08/src/freq.c:117:7:  [1] (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 character.
      strcpy(_FreqFilter, "*");
data/libsx-2.08/src/freq.c:149:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(path[strlen(path)-1] != '/')
data/libsx-2.08/src/freq.c:150:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(path, "/");
data/libsx-2.08/src/freq.c:154: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).
    ptr = path+strlen(path)-1;
data/libsx-2.08/src/freq.c:252:3:  [1] (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 character.
  strcpy(fdata->fname, "");
data/libsx-2.08/src/freq.c:265:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(_FreqFilter, GetStringEntry(fdata->file_filter), 80);
data/libsx-2.08/src/freq.c:311:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(string[strlen(string)-1] != '/')   /* a regular file double click */
data/libsx-2.08/src/freq.c:371:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	   strcat(newpath, "/");      /* put back the / we took out */
data/libsx-2.08/src/freq.c:377:7:  [1] (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 character.
	     strcpy(newpath, "/");
data/libsx-2.08/src/freq.c:381:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   if (newpath[strlen(newpath)-1] != '/')
data/libsx-2.08/src/freq.c:382:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	     strcat(newpath, "/");
data/libsx-2.08/src/freq.c:388:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     if (fdata->fpath[strlen(fdata->fpath)-1] == '/')
data/libsx-2.08/src/freq.c:425:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(_FreqFilter, GetStringEntry(fdata->file_filter), 80);
data/libsx-2.08/src/freq.c:429:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(temp[strlen(temp)-1] != '/')
data/libsx-2.08/src/freq.c:430:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(temp, "/");
data/libsx-2.08/src/grabpix.c:256:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for(i=0; i<strlen(format); i++)
data/libsx-2.08/src/grabpix.c:258: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).
        if ((format[i]=='%') && (i+1<strlen(format)))
data/libsx-2.08/src/libsx.c:116: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).
      j=strlen(line)-1;
data/libsx-2.08/src/popups.c:84: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).
      *string = (char *)malloc((strlen(ptr)+1)*sizeof(char));
data/libsx-2.08/src/string_entry.c:120:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     XtSetArg(wargs[n], XtNinsertPosition,  strlen(txt));     n++;
data/libsx-2.08/src/string_entry.c:255: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).
  XtSetArg(wargs[n], XtNinsertPosition,  strlen(new_text));  n++;
data/libsx-2.08/src/string_entry.c:440:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  count = read(fd, buff, st.st_size);

ANALYSIS SUMMARY:

Hits = 238
Lines analyzed = 13884 in approximately 0.37 seconds (37428 lines/second)
Physical Source Lines of Code (SLOC) = 8733
Hits@level = [0]  81 [1]  49 [2] 120 [3]   6 [4]  63 [5]   0
Hits@level+ = [0+] 319 [1+] 238 [2+] 189 [3+]  69 [4+]  63 [5+]   0
Hits/KSLOC@level+ = [0+] 36.5281 [1+] 27.2529 [2+] 21.642 [3+] 7.90106 [4+] 7.21402 [5+]   0
Symlinks skipped = 16 (--allowlink overrides but see doc for security issue)
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.