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/librcc-0.2.12/docs/api/rcc-recode.c
Examining data/librcc-0.2.12/examples/example2.c
Examining data/librcc-0.2.12/examples/example1.c
Examining data/librcc-0.2.12/examples/rcc-gtk-config.c
Examining data/librcc-0.2.12/engines/libguess.c
Examining data/librcc-0.2.12/engines/librcd.c
Examining data/librcc-0.2.12/engines/western.c
Examining data/librcc-0.2.12/external/rccexternal.c
Examining data/librcc-0.2.12/external/rcclibtranslate.h
Examining data/librcc-0.2.12/external/rcclibtranslate.c
Examining data/librcc-0.2.12/external/compat.h
Examining data/librcc-0.2.12/ui/gtk.c
Examining data/librcc-0.2.12/ui/rccnames.c
Examining data/librcc-0.2.12/ui/librccui.c
Examining data/librcc-0.2.12/ui/rccmenu.h
Examining data/librcc-0.2.12/ui/null.c
Examining data/librcc-0.2.12/ui/internal.h
Examining data/librcc-0.2.12/ui/rccnames.h
Examining data/librcc-0.2.12/ui/librccui.h
Examining data/librcc-0.2.12/ui/rccmenu.c
Examining data/librcc-0.2.12/src/rcclock.c
Examining data/librcc-0.2.12/src/librcc.c
Examining data/librcc-0.2.12/src/plugin.c
Examining data/librcc-0.2.12/src/rcchome.c
Examining data/librcc-0.2.12/src/rcciconv.c
Examining data/librcc-0.2.12/src/opt.h
Examining data/librcc-0.2.12/src/curconfig.c
Examining data/librcc-0.2.12/src/lngrecode.c
Examining data/librcc-0.2.12/src/fs.c
Examining data/librcc-0.2.12/src/rccenca.h
Examining data/librcc-0.2.12/src/recode.c
Examining data/librcc-0.2.12/src/lngconfig.c
Examining data/librcc-0.2.12/src/rccexternal.c
Examining data/librcc-0.2.12/src/rcctranslate.c
Examining data/librcc-0.2.12/src/rccdb4.c
Examining data/librcc-0.2.12/src/rcciconv.h
Examining data/librcc-0.2.12/src/rccmutex.h
Examining data/librcc-0.2.12/src/rccconfig.h
Examining data/librcc-0.2.12/src/fake_enca.h
Examining data/librcc-0.2.12/src/rcclist.h
Examining data/librcc-0.2.12/src/librcc.h
Examining data/librcc-0.2.12/src/rccexternal.h
Examining data/librcc-0.2.12/src/rcclocale.h
Examining data/librcc-0.2.12/src/lng.c
Examining data/librcc-0.2.12/src/internal.h
Examining data/librcc-0.2.12/src/engine.c
Examining data/librcc-0.2.12/src/rcclist.c
Examining data/librcc-0.2.12/src/rccstring.c
Examining data/librcc-0.2.12/src/rcclocale.c
Examining data/librcc-0.2.12/src/rccxml.h
Examining data/librcc-0.2.12/src/rccxml.c
Examining data/librcc-0.2.12/src/rccenca.c
Examining data/librcc-0.2.12/src/engine.h
Examining data/librcc-0.2.12/src/lng.h
Examining data/librcc-0.2.12/src/rcclock.h
Examining data/librcc-0.2.12/src/lngconfig.h
Examining data/librcc-0.2.12/src/plugin.h
Examining data/librcc-0.2.12/src/rccconfig.c
Examining data/librcc-0.2.12/src/rcchome.h
Examining data/librcc-0.2.12/src/rccmutex.c
Examining data/librcc-0.2.12/src/curconfig.h
Examining data/librcc-0.2.12/src/rccspell.h
Examining data/librcc-0.2.12/src/recode.h
Examining data/librcc-0.2.12/src/lngrecode.h
Examining data/librcc-0.2.12/src/rccspell.c
Examining data/librcc-0.2.12/src/fs.h
Examining data/librcc-0.2.12/src/fake_rcd.h
Examining data/librcc-0.2.12/src/rccdb4.h
Examining data/librcc-0.2.12/src/opt.c
Examining data/librcc-0.2.12/src/rcctranslate.h
Examining data/librcc-0.2.12/src/rccstring.h

FINAL RESULTS:

data/librcc-0.2.12/docs/api/rcc-recode.c:534:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stdout, res?res:buf);
data/librcc-0.2.12/docs/api/rcc-recode.c:547:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(res, "%s%s",path,name);
data/librcc-0.2.12/docs/api/rcc-recode.c:549:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(res, "%s/%s",path,name);
data/librcc-0.2.12/examples/rcc-gtk-config.c:81:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(title, "LibRCC Config [%s]", config);
data/librcc-0.2.12/external/rccexternal.c:103:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(addr,"%s/.rcc/comm/",rcc_home_dir);
data/librcc-0.2.12/external/rccexternal.c:105:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(addr,"%s/.rcc/comm/%lu.sock", rcc_home_dir, (unsigned long)mypid);
data/librcc-0.2.12/external/rcclibtranslate.c:64:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    if (res) sprintf(res,"%s%s%s",from,to,data);
data/librcc-0.2.12/external/rcclibtranslate.c:162:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(dbname,"%s/.rcc/",rcc_home_dir);
data/librcc-0.2.12/external/rcclibtranslate.c:165:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dbname,"%s/.rcc/libtranslate.db/",rcc_home_dir);
data/librcc-0.2.12/src/fs.c:76:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s%s", path, filename);
data/librcc-0.2.12/src/fs.c:78:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s/%s", path, filename);
data/librcc-0.2.12/src/fs.c:142:38:  [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).
			    if (len<RCC_MAX_PREFIX_CHARS) strcpy(lastprefix, fsentry->mnt_dir);
data/librcc-0.2.12/src/librcc.c:244:2:  [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(ctx->locale_variable, locale_variable);
data/librcc-0.2.12/src/librcc.c:246:2:  [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(ctx->locale_variable, RCC_LOCALE_VARIABLE);
data/librcc-0.2.12/src/librcc.c:349:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dbname,"%s/.rcc/",rcc_home_dir);
data/librcc-0.2.12/src/librcc.c:352:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dbname,"%s/.rcc/%s.db/",rcc_home_dir,name);
data/librcc-0.2.12/src/plugin.c:146:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(pluginfn, "%s/.rcc/engines/%s_engine.so", rcc_home_dir, name);
data/librcc-0.2.12/src/plugin.c:149:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/%s_engine.so", name);
data/librcc-0.2.12/src/rccdb4.c:112:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(stmp, "%s/log.0000000001", dbpath);
data/librcc-0.2.12/src/rccexternal.c:91:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(addr,"%s/.rcc/comm/%lu.sock", rcc_home_dir, (unsigned long)pid);
data/librcc-0.2.12/src/rccexternal.c:109:2:  [4] (shell) execl:
  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.
	execl(LIBRCC_DATA_DIR "/" RCC_EXT_PROG_NAME, RCC_EXT_PROG_NAME, NULL);
data/librcc-0.2.12/src/rcclocale.c:125: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(result, l);
data/librcc-0.2.12/src/rcclock.c:65:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmp,"%s/.rcc/", rcc_home_dir);
data/librcc-0.2.12/src/rcclock.c:68:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmp,"%s/.rcc/locks/", rcc_home_dir);
data/librcc-0.2.12/src/rcclock.c:71:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmp,"%s/.rcc/locks/rcc.lock", rcc_home_dir);
data/librcc-0.2.12/src/rcclock.c:136:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmp,"%s/.rcc/locks/rcc.lock", rcc_home_dir);
data/librcc-0.2.12/src/rccxml.c:98:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(config, "%s/.rcc/rcc.xml", rcc_home_dir);
data/librcc-0.2.12/src/rccxml.c:277:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(req,request,ap);
data/librcc-0.2.12/src/rccxml.c:342:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(config,"%s/.rcc/",rcc_home_dir);
data/librcc-0.2.12/src/rccxml.c:345:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(config,"%s/.rcc/%s.xml",rcc_home_dir,name);
data/librcc-0.2.12/src/rccxml.c:396:46:  [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).
	if (rccOptionIsDefault(ctx, (rcc_option)i)) strcpy(value, rcc_option_nonconfigured);
data/librcc-0.2.12/src/rccxml.c:400:18:  [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).
	    if (ovname) strcpy(value, ovname);
data/librcc-0.2.12/src/rccxml.c:537:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(config,"%s/.rcc/%s.xml",rcc_home_dir,name);
data/librcc-0.2.12/src/rccxml.c:540:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(config, "/etc/rcc/%s.xml",name);
data/librcc-0.2.12/ui/librccui.c:105:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(req,request,ap);
data/librcc-0.2.12/docs/api/rcc-recode.c:247:17:  [3] (buffer) getopt_long:
  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_long(argc, argv, "yhe:f:l:t:", long_options, &option_index)) != (unsigned char)-1) {
data/librcc-0.2.12/external/rcclibtranslate.c:147: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.
    http_proxy = getenv("HTTP_PROXY");
data/librcc-0.2.12/external/rcclibtranslate.c:148:35:  [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 (!http_proxy) http_proxy = getenv("http_proxy");
data/librcc-0.2.12/src/rcchome.c:53:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv ("HOME");
data/librcc-0.2.12/src/rcclocale.c:83:35:  [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 (!strcasecmp(lv, "LANG")) l = getenv("LANG");
data/librcc-0.2.12/src/rcclocale.c:84:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (!strcasecmp(lv, "LANGUAGE")) l = getenv("LANGUAGE");
data/librcc-0.2.12/src/rcclocale.c:116:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	l = getenv("CHARSET");
data/librcc-0.2.12/docs/api/rcc-recode.c:352: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).
		timeout = atoi(optarg);
data/librcc-0.2.12/docs/api/rcc-recode.c:530:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384];
data/librcc-0.2.12/docs/api/rcc-recode.c:565: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 stmp[255];
data/librcc-0.2.12/examples/example1.c:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[255];
data/librcc-0.2.12/examples/example2.c:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[255];
data/librcc-0.2.12/examples/rcc-gtk-config.c:63: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 title[128];
data/librcc-0.2.12/examples/rcc-gtk-config.c:83: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(title, "LibRCC Config [default]");
data/librcc-0.2.12/external/rccexternal.c:81: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 addr[376];
data/librcc-0.2.12/external/rcclibtranslate.c:93: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 from[3];
data/librcc-0.2.12/external/rcclibtranslate.c:94: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 to[3];
data/librcc-0.2.12/external/rcclibtranslate.c:108:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(from, data, 2);
data/librcc-0.2.12/external/rcclibtranslate.c:109:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(to, data + 2, 2);
data/librcc-0.2.12/src/internal.h:74: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 locale_variable[RCC_MAX_VARIABLE_CHARS+1];
data/librcc-0.2.12/src/internal.h:79: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.
    unsigned char default_options[RCC_MAX_OPTIONS];
data/librcc-0.2.12/src/internal.h:97: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 tmpbuffer[RCC_MAX_STRING_CHARS+sizeof(rcc_string_header)+9];
data/librcc-0.2.12/src/internal.h:98: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 lastprefix[RCC_MAX_PREFIX_CHARS+1];
data/librcc-0.2.12/src/librcc.c:98: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(rcc_default_languages, rcc_default_languages_embeded, (RCC_MAX_LANGUAGES + 1)*sizeof(rcc_language));
data/librcc-0.2.12/src/librcc.c:99: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(rcc_default_aliases, rcc_default_aliases_embeded, (RCC_MAX_ALIASES + 1)*sizeof(rcc_language_alias));
data/librcc-0.2.12/src/librcc.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(rcc_default_relations, rcc_default_relations_embeded, (RCC_MAX_RELATIONS + 1)*sizeof(rcc_language_relation));
data/librcc-0.2.12/src/librcc.c:101: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(rcc_option_descriptions, rcc_option_descriptions_embeded, (RCC_MAX_OPTIONS + 1)*sizeof(rcc_option_description));
data/librcc-0.2.12/src/librcc.c:396: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(ctx->ilang + ctx->n_languages, language, sizeof(rcc_language));
data/librcc-0.2.12/src/librcc.c:512: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(ctx->iclass + ctx->n_classes, cl, sizeof(rcc_class));
data/librcc-0.2.12/src/librcc.c:671: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(res, ctx->tmpbuffer, len);
data/librcc-0.2.12/src/lng.c:112: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 stmp[RCC_MAX_LANGUAGE_CHARS+1];
data/librcc-0.2.12/src/lngconfig.c:796: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 lang[RCC_MAX_CHARSET_CHARS+1];
data/librcc-0.2.12/src/lngconfig.c:797: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 stmp[RCC_MAX_CHARSET_CHARS+1];
data/librcc-0.2.12/src/lngconfig.c:819: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 lang[RCC_MAX_CHARSET_CHARS+1];
data/librcc-0.2.12/src/lngconfig.c:820: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 stmp[RCC_MAX_CHARSET_CHARS+1];
data/librcc-0.2.12/src/rccdb4.c:57: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 stmp[160];
data/librcc-0.2.12/src/rccdb4.c:97:16:  [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).
    err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_CDB|DB_INIT_MPOOL|DB_THREAD, 00644);
data/librcc-0.2.12/src/rccdb4.c:99:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_USE_ENVIRON|DB_PRIVATE|DB_RECOVER|DB_THREAD, 0);
data/librcc-0.2.12/src/rccdb4.c:122:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_CDB|DB_INIT_MPOOL|DB_THREAD, 00644);
data/librcc-0.2.12/src/rccdb4.c:139: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).
    err = db->open(db, NULL, DATABASE, NULL, DB_BTREE, DB_CREATE|DB_THREAD, 0);
data/librcc-0.2.12/src/rccenca.c:214:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(enca_engines+i, &rcc_enca_engine, sizeof(rcc_engine));
data/librcc-0.2.12/src/rcciconv.c:128: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 tmpbuffer[RCC_MAX_STRING_CHARS+1];
data/librcc-0.2.12/src/rcciconv.c:136:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(res, tmpbuffer, size);
data/librcc-0.2.12/src/rcclock.c:73:14:  [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).
    lockfd = open(stmp, O_RDWR|O_CREAT, 0644);
data/librcc-0.2.12/src/rcclock.c:95:12:  [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).
		lockfd = open(stmp, O_RDWR|O_CREAT, 0644);
data/librcc-0.2.12/src/rccstring.c:43: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(res + sizeof(rcc_string_header), buf, len);
data/librcc-0.2.12/src/rccstring.c:56: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(&((rcc_string_header*)string)->language,sn,2);
data/librcc-0.2.12/src/rccstring.c:61: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 lang[3];
data/librcc-0.2.12/src/rccstring.c:71: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(lang, header->language, 2); lang[2] = 0;
data/librcc-0.2.12/src/rccstring.c:145: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(res, rccStringGetString(str), len);
data/librcc-0.2.12/src/rccstring.h:29: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 language[2];
data/librcc-0.2.12/src/rcctranslate.c:77: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(translate->prefix.from, from, 3*sizeof(char));
data/librcc-0.2.12/src/rcctranslate.c:78: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(translate->prefix.to, to,  3*sizeof(char));
data/librcc-0.2.12/src/rcctranslate.c:82: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(translate->wprefix.from, from, 3*sizeof(char));
data/librcc-0.2.12/src/rcctranslate.c:83: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(translate->wprefix.to, to,  3*sizeof(char));
data/librcc-0.2.12/src/rcctranslate.h:32: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 from[3];
data/librcc-0.2.12/src/rcctranslate.h:33: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 to[3];
data/librcc-0.2.12/src/rcctranslate.h: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 text[1];
data/librcc-0.2.12/src/rccxml.c:76: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 config[MAX_HOME_CHARS + 32];
data/librcc-0.2.12/src/rccxml.c:99: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).
	    f = fopen(config, "r");
data/librcc-0.2.12/src/rccxml.c:104: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(config, "/etc/rcc.xml");
data/librcc-0.2.12/src/rccxml.c:105: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).
	    f = fopen(config, "r");
data/librcc-0.2.12/src/rccxml.c:326: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 value[16];
data/librcc-0.2.12/src/rccxml.c:346: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(config, O_CREAT|O_RDWR,00644);
data/librcc-0.2.12/src/rccxml.c:401: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(value, "%i", ovalue);
data/librcc-0.2.12/src/rccxml.c:538: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(config, O_RDONLY);
data/librcc-0.2.12/src/rccxml.c:541:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sysfd = open(config, O_RDONLY);
data/librcc-0.2.12/src/rccxml.c:625:66:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (ovalue == (rcc_option_value)-1) ovalue = (rcc_option_value)atoi(tmp);
data/librcc-0.2.12/src/recode.c:81: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 llang[RCC_MAX_LANGUAGE_CHARS];
data/librcc-0.2.12/src/recode.c:344: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 llang[RCC_MAX_LANGUAGE_CHARS];
data/librcc-0.2.12/ui/librccui.c:211: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 *search[4];
data/librcc-0.2.12/ui/librccui.c:222: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 ctype_charset[32];
data/librcc-0.2.12/ui/librccui.c:223: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 locale[32];
data/librcc-0.2.12/ui/librccui.c:231: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(rcc_default_language_names, rcc_default_language_names_embeded, (RCC_MAX_LANGUAGES+1)*sizeof(rcc_name));
data/librcc-0.2.12/ui/librccui.c:232: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(rcc_default_option_names, rcc_default_option_names_embeded, (RCC_MAX_OPTIONS+1)*sizeof(rcc_option_name));
data/librcc-0.2.12/ui/librccui.c:233: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(&rcc_ui_default_page_name, &rcc_ui_default_page_name_embeded, sizeof(rcc_ui_page_name));
data/librcc-0.2.12/docs/api/rcc-recode.c:544:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    res = (char*)malloc(strlen(path) + strlen(name) + 2);
data/librcc-0.2.12/docs/api/rcc-recode.c:544: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).
    res = (char*)malloc(strlen(path) + strlen(name) + 2);
data/librcc-0.2.12/docs/api/rcc-recode.c:546: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/librcc-0.2.12/docs/api/rcc-recode.c:668: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(source)<2) return NULL;
data/librcc-0.2.12/engines/libguess.c:67:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (info->func) res = info->func(buf, len?len:strlen(buf));
data/librcc-0.2.12/engines/libguess.c:69: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 (!len) len = strlen(buf);
data/librcc-0.2.12/engines/western.c:40: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).
    if (!len) len = strlen((char*)buf);
data/librcc-0.2.12/examples/example1.c:49:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(buf)<2) break;
data/librcc-0.2.12/examples/example2.c:65:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(buf)<2) break;
data/librcc-0.2.12/examples/rcc-gtk-config.c:77:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(config) > 64) {
data/librcc-0.2.12/external/rccexternal.c:112:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mysock.sun_path,addr,sizeof(mysock.sun_path));
data/librcc-0.2.12/external/rcclibtranslate.c:62: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).
    *keysize = strlen(data) + 4;
data/librcc-0.2.12/external/rcclibtranslate.c:75: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).
    res = (char*)malloc((strlen(result)+1)*sizeof(char));
data/librcc-0.2.12/external/rcclibtranslate.c:106: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).
	    datalen = strlen(data);
data/librcc-0.2.12/external/rcclibtranslate.c:159: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(rcc_home_dir) + 32;
data/librcc-0.2.12/external/rcclibtranslate.c:227: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(from)!=2)||(strlen(to)!=2)) return;
data/librcc-0.2.12/external/rcclibtranslate.c:227: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 ((strlen(from)!=2)||(strlen(to)!=2)) return;
data/librcc-0.2.12/external/rcclibtranslate.c:248: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(from)!=2)||(strlen(to)!=2)) return NULL;
data/librcc-0.2.12/external/rcclibtranslate.c:248: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 ((strlen(from)!=2)||(strlen(to)!=2)) return NULL;
data/librcc-0.2.12/external/rcclibtranslate.c:306:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readed = read(s, &prefix, sizeof(rcc_translate_prefix_s)-1);
data/librcc-0.2.12/external/rcclibtranslate.c:318:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			res = read(s, buffer + readed, size - readed);
data/librcc-0.2.12/external/rcclibtranslate.c:331: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.cmd.size = strlen(translated) + 1;
data/librcc-0.2.12/external/rcclibtranslate.c:353:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			res = read(s, buffer + readed, size - readed);
data/librcc-0.2.12/external/rcclibtranslate.c:367:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			res = read(s, buffer + readed, size - readed);
data/librcc-0.2.12/src/engine.c:208: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).
    if (!len) len = strlen((char*)buf);
data/librcc-0.2.12/src/fs.c:54:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(res, str, n);
data/librcc-0.2.12/src/fs.c:71: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).
    i = strlen(path);
data/librcc-0.2.12/src/fs.c:72: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).
    name = (char*)malloc((i+strlen(filename)+2)*sizeof(char));
data/librcc-0.2.12/src/fs.c:118:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(fspath);
data/librcc-0.2.12/src/fs.c:121:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp(filename, fspath, len)) tmp = filename + strlen(fspath);
data/librcc-0.2.12/src/fs.c:127:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(lastprefix);
data/librcc-0.2.12/src/fs.c:138:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    len = strlen(fsentry->mnt_dir);
data/librcc-0.2.12/src/fs.c:229:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmpbuffer, name, RCC_MAX_STRING_CHARS);
data/librcc-0.2.12/src/internal.h:31: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).
#define STRNLEN(str,n) (n?strnlen(str,n):strlen(str))
data/librcc-0.2.12/src/internal.h:33: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).
#define STRNLEN(str,n) (n?rccStrnlen(str,n):strlen(str))
data/librcc-0.2.12/src/librcc.c:240:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(locale_variable)>=RCC_MAX_VARIABLE_CHARS) {
data/librcc-0.2.12/src/librcc.c:345: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(rcc_home_dir) + strlen(name) + 32;
data/librcc-0.2.12/src/librcc.c:345: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).
    size = strlen(rcc_home_dir) + strlen(name) + 32;
data/librcc-0.2.12/src/librcc.c:401:69:  [1] (buffer) strlen:
  Does not handle 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 ((strstr(language->charsets[i],"8859"))&&(language->charsets[i][strlen(language->charsets[i])-1]=='1')) {
data/librcc-0.2.12/src/librcc.c:425: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).
    if ((strstr(charset,"8859"))&&(charset[strlen(charset)-1]=='1')) 
data/librcc-0.2.12/src/librcc.c:666: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).
    if (!len) len = strlen(ctx->tmpbuffer);
data/librcc-0.2.12/src/lngrecode.c:110: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 (rlen) *rlen = strlen(result);
data/librcc-0.2.12/src/plugin.c:143: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).
	    pluginfn = (char*)malloc((48 + strlen(rcc_home_dir) + strlen(name))*sizeof(char));
data/librcc-0.2.12/src/plugin.c:143: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).
	    pluginfn = (char*)malloc((48 + strlen(rcc_home_dir) + strlen(name))*sizeof(char));
data/librcc-0.2.12/src/rccdb4.c:111:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(dbpath)<128) {
data/librcc-0.2.12/src/rccdb4.c:198: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).
    key.size = olen?olen:strlen(orig); /* No ending zero */
data/librcc-0.2.12/src/rccdb4.c:200: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).
    data.size = strlen(string)+1;
data/librcc-0.2.12/src/rccdb4.c:222: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).
    key.size = olen?olen:strlen(orig); /* No ending zero */
data/librcc-0.2.12/src/rccenca.c:118:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ee = enca_analyse_const((EncaAnalyser)ctx->internal,(const unsigned char*)buf,len?len:strlen(buf));
data/librcc-0.2.12/src/rccenca.c:209:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(rcc_default_languages[i].sn)==2)
data/librcc-0.2.12/src/rccexternal.c:84: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).
	addr = (char*)malloc(strlen(rcc_home_dir)+32);
data/librcc-0.2.12/src/rccexternal.c:198:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    res = read(s, buffer + readed, size - readed);
data/librcc-0.2.12/src/rccexternal.c:234:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mysock.sun_path,addr,sizeof(mysock.sun_path));
data/librcc-0.2.12/src/rcciconv.c:90: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 (!size) size = strlen(buf);
data/librcc-0.2.12/src/rcclocale.c:100:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result,l,i);
data/librcc-0.2.12/src/rcclocale.c:124: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(l)>=n) return -1;
data/librcc-0.2.12/src/rcclocale.c:148:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result,l+1,i-1);
data/librcc-0.2.12/src/rcclock.c:61: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(rcc_home_dir) + 32;
data/librcc-0.2.12/src/rcclock.c:132: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(rcc_home_dir) + 32;
data/librcc-0.2.12/src/rccmutex.c:77:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(RCC_MUTEX_SLEEP);
data/librcc-0.2.12/src/rccstring.c:38: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).
    if (!len) len = strlen(buf);
data/librcc-0.2.12/src/rccstring.c:55:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((!string)||(!sn)||(strlen(sn)!=2)) return -1;
data/librcc-0.2.12/src/rccstring.c:102: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/librcc-0.2.12/src/rccstring.c:116: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).
    newlen = len?len:strlen(str);
data/librcc-0.2.12/src/rcctranslate.c:50: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(from)!=2)||(strlen(to)!=2)) return NULL;
data/librcc-0.2.12/src/rcctranslate.c:50: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 ((strlen(from)!=2)||(strlen(to)!=2)) return NULL;
data/librcc-0.2.12/src/rcctranslate.c:129: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(buf);
data/librcc-0.2.12/src/rcctranslate.c:217: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(buf);
data/librcc-0.2.12/src/rccxml.c:96:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(rcc_home_dir)>MAX_HOME_CHARS) config[0] = 0;
data/librcc-0.2.12/src/rccxml.c:269: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).
	    size += strlen(req);
data/librcc-0.2.12/src/rccxml.c:336:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((!name)||(!strcmp(name, "rcc"))||(strlen(rcc_home_dir)<3)) name = "default";
data/librcc-0.2.12/src/rccxml.c:338: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(rcc_home_dir) + strlen(name) + 32;
data/librcc-0.2.12/src/rccxml.c:338: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).
    size = strlen(rcc_home_dir) + strlen(name) + 32;
data/librcc-0.2.12/src/rccxml.c:531:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((!name)||(!strcmp(name, "rcc"))||(strlen(rcc_home_dir)<3)) name = "default";
data/librcc-0.2.12/src/rccxml.c:533: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(rcc_home_dir) + strlen(name) + 32;
data/librcc-0.2.12/src/rccxml.c:533: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).
    size = strlen(rcc_home_dir) + strlen(name) + 32;
data/librcc-0.2.12/src/recode.c:614: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 (rlen) *rlen = strlen(result);
data/librcc-0.2.12/src/recode.c:633: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 (rlen) *rlen = strlen(result);
data/librcc-0.2.12/src/recode.c:865: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 ((rlen)&&(extracted)) *rlen = strlen(extracted);
data/librcc-0.2.12/ui/librccui.c:97: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).
	    size += strlen(req);

ANALYSIS SUMMARY:

Hits = 191
Lines analyzed = 14335 in approximately 0.41 seconds (35322 lines/second)
Physical Source Lines of Code (SLOC) = 9043
Hits@level = [0]  41 [1]  80 [2]  69 [3]   7 [4]  35 [5]   0
Hits@level+ = [0+] 232 [1+] 191 [2+] 111 [3+]  42 [4+]  35 [5+]   0
Hits/KSLOC@level+ = [0+] 25.6552 [1+] 21.1213 [2+] 12.2747 [3+] 4.64448 [4+] 3.8704 [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.