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/radlib-2.12.0/database/mysql/my_database.c
Examining data/radlib-2.12.0/database/postgresql/_pg-types.h
Examining data/radlib-2.12.0/database/postgresql/pg_database.c
Examining data/radlib-2.12.0/debug/raddebug.c
Examining data/radlib-2.12.0/h/radUDPsocket.h
Examining data/radlib-2.12.0/h/radbuffers.h
Examining data/radlib-2.12.0/h/radconffile.h
Examining data/radlib-2.12.0/h/radcrc.h
Examining data/radlib-2.12.0/h/raddatabase.h
Examining data/radlib-2.12.0/h/raddebug.h
Examining data/radlib-2.12.0/h/radevents.h
Examining data/radlib-2.12.0/h/radlist.h
Examining data/radlib-2.12.0/h/radmsgLog.h
Examining data/radlib-2.12.0/h/radmsgRouter.h
Examining data/radlib-2.12.0/h/radprocess.h
Examining data/radlib-2.12.0/h/radproclist.h
Examining data/radlib-2.12.0/h/radprocutils.h
Examining data/radlib-2.12.0/h/radqueue.h
Examining data/radlib-2.12.0/h/radsemaphores.h
Examining data/radlib-2.12.0/h/radsha.h
Examining data/radlib-2.12.0/h/radshmem.h
Examining data/radlib-2.12.0/h/radsocket.h
Examining data/radlib-2.12.0/h/radsortlist.h
Examining data/radlib-2.12.0/h/radsqlite.h
Examining data/radlib-2.12.0/h/radstack.h
Examining data/radlib-2.12.0/h/radstates.h
Examining data/radlib-2.12.0/h/radsysdefs.h
Examining data/radlib-2.12.0/h/radsystem.h
Examining data/radlib-2.12.0/h/radsysutils.h
Examining data/radlib-2.12.0/h/radtextsearch.h
Examining data/radlib-2.12.0/h/radthread.h
Examining data/radlib-2.12.0/h/radtimeUtils.h
Examining data/radlib-2.12.0/h/radtimers.h
Examining data/radlib-2.12.0/msgRouter/msgRouter.c
Examining data/radlib-2.12.0/src/radUDPsocket.c
Examining data/radlib-2.12.0/src/radbuffers.c
Examining data/radlib-2.12.0/src/radconffile.c
Examining data/radlib-2.12.0/src/radcrc.c
Examining data/radlib-2.12.0/src/raddatabase.c
Examining data/radlib-2.12.0/src/raddebug.c
Examining data/radlib-2.12.0/src/radevents.c
Examining data/radlib-2.12.0/src/radlist.c
Examining data/radlib-2.12.0/src/radmsgRouter.c
Examining data/radlib-2.12.0/src/radprocess.c
Examining data/radlib-2.12.0/src/radproclist.c
Examining data/radlib-2.12.0/src/radprocutils.c
Examining data/radlib-2.12.0/src/radqueue.c
Examining data/radlib-2.12.0/src/radsemaphores.c
Examining data/radlib-2.12.0/src/radsha.c
Examining data/radlib-2.12.0/src/radshmem.c
Examining data/radlib-2.12.0/src/radsocket.c
Examining data/radlib-2.12.0/src/radsortlist.c
Examining data/radlib-2.12.0/src/radsqlite.c
Examining data/radlib-2.12.0/src/radstack.c
Examining data/radlib-2.12.0/src/radstates.c
Examining data/radlib-2.12.0/src/radsysdefs.c
Examining data/radlib-2.12.0/src/radsystem.c
Examining data/radlib-2.12.0/src/radtextsearch.c
Examining data/radlib-2.12.0/src/radthread.c
Examining data/radlib-2.12.0/src/radtimeUtils.c
Examining data/radlib-2.12.0/src/radtimers.c
Examining data/radlib-2.12.0/src/radmsgLog.c
Examining data/radlib-2.12.0/src/radsysutils.c
Examining data/radlib-2.12.0/template/databaseExample.c
Examining data/radlib-2.12.0/template/template.c
Examining data/radlib-2.12.0/template/template.h
Examining data/radlib-2.12.0/template/template2.c
Examining data/radlib-2.12.0/template/templateStates.c
Examining data/radlib-2.12.0/template/templateStates2.c
Examining data/radlib-2.12.0/template-old/databaseExample.c
Examining data/radlib-2.12.0/template-old/template.c
Examining data/radlib-2.12.0/template-old/template.h
Examining data/radlib-2.12.0/template-old/templateStates.c
Examining data/radlib-2.12.0/test/database/dbtest.c
Examining data/radlib-2.12.0/test/msgRouter/routetest.c
Examining data/radlib-2.12.0/test/msgRouter/routetest.h
Examining data/radlib-2.12.0/test/multicast/multicast.c
Examining data/radlib-2.12.0/test/sha/radsha.c
Examining data/radlib-2.12.0/test/sqlite/dbtest.c

FINAL RESULTS:

data/radlib-2.12.0/database/mysql/my_database.c:81:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (errorString, "error %u (%s)",
data/radlib-2.12.0/database/mysql/my_database.c:368:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "CREATE DATABASE %s", dbName);
data/radlib-2.12.0/database/mysql/my_database.c:384:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "DROP DATABASE %s", dbName);
data/radlib-2.12.0/database/mysql/my_database.c:606:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "EXPLAIN %s", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:637:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf (query, "CREATE TABLE %s ( ", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:695:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        index += sprintf (&query[index], "%s %s %s,",
data/radlib-2.12.0/database/mysql/my_database.c:714:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "PRIMARY KEY (%s),",
data/radlib-2.12.0/database/mysql/my_database.c:721:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "UNIQUE INDEX (%s),",
data/radlib-2.12.0/database/mysql/my_database.c:727:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "INDEX (%s),",
data/radlib-2.12.0/database/mysql/my_database.c:751:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "DROP TABLE %s", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:764:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "DELETE FROM %s", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:802:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "SHOW COLUMNS FROM %s", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:977:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&select[index], "%s,", field->name);
data/radlib-2.12.0/database/mysql/my_database.c:1002:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %d)",
data/radlib-2.12.0/database/mysql/my_database.c:1007:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %lld)",
data/radlib-2.12.0/database/mysql/my_database.c:1012:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %f)",
data/radlib-2.12.0/database/mysql/my_database.c:1017:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %f)",
data/radlib-2.12.0/database/mysql/my_database.c:1022:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = \"%s\")",
data/radlib-2.12.0/database/mysql/my_database.c:1029:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "SELECT %s FROM %s WHERE %s",
data/radlib-2.12.0/database/mysql/my_database.c:1061:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf (query, "INSERT INTO %s SET ", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:1086:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "%s = %d,",
data/radlib-2.12.0/database/mysql/my_database.c:1091:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "%s = %lld,",
data/radlib-2.12.0/database/mysql/my_database.c:1096:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "%s = %f,",
data/radlib-2.12.0/database/mysql/my_database.c:1101:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "%s = %f,",
data/radlib-2.12.0/database/mysql/my_database.c:1106:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "%s = \"%s\",",
data/radlib-2.12.0/database/mysql/my_database.c:1159:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = NULL,",
data/radlib-2.12.0/database/mysql/my_database.c:1165:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %d,",
data/radlib-2.12.0/database/mysql/my_database.c:1170:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %lld,",
data/radlib-2.12.0/database/mysql/my_database.c:1175:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %f,",
data/radlib-2.12.0/database/mysql/my_database.c:1180:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %f,",
data/radlib-2.12.0/database/mysql/my_database.c:1185:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = \"%s\",",
data/radlib-2.12.0/database/mysql/my_database.c:1211:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %d)",
data/radlib-2.12.0/database/mysql/my_database.c:1216:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = \"%s\")",
data/radlib-2.12.0/database/mysql/my_database.c:1223:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "UPDATE %s SET %s WHERE %s",
data/radlib-2.12.0/database/mysql/my_database.c:1247:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf (query, "DELETE FROM %s WHERE ", tableName);
data/radlib-2.12.0/database/mysql/my_database.c:1268:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %d)",
data/radlib-2.12.0/database/mysql/my_database.c:1273:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %lld)",
data/radlib-2.12.0/database/mysql/my_database.c:1278:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %f)",
data/radlib-2.12.0/database/mysql/my_database.c:1283:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %f)",
data/radlib-2.12.0/database/mysql/my_database.c:1288:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = \"%s\")",
data/radlib-2.12.0/database/postgresql/pg_database.c:86:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (errorString, "error: %s",
data/radlib-2.12.0/database/postgresql/pg_database.c:336:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (hoststr, "hostaddr=%s", host);
data/radlib-2.12.0/database/postgresql/pg_database.c:340:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (hoststr, "host=%s", host);
data/radlib-2.12.0/database/postgresql/pg_database.c:355:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (conninfo, "%s dbname=%s user=%s password=%s",
data/radlib-2.12.0/database/postgresql/pg_database.c:408:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "CREATE DATABASE %s", dbName);
data/radlib-2.12.0/database/postgresql/pg_database.c:424:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "DROP DATABASE %s", dbName);
data/radlib-2.12.0/database/postgresql/pg_database.c:641:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "SELECT relname FROM pg_class WHERE relname='%s'", tableName);
data/radlib-2.12.0/database/postgresql/pg_database.c:685:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf (query, "CREATE TABLE %s ( ", tableName);
data/radlib-2.12.0/database/postgresql/pg_database.c:743:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        index += sprintf (&query[index], "%s %s %s,",
data/radlib-2.12.0/database/postgresql/pg_database.c:762:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "PRIMARY KEY (%s),",
data/radlib-2.12.0/database/postgresql/pg_database.c:769:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "UNIQUE (%s),",
data/radlib-2.12.0/database/postgresql/pg_database.c:793:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "DROP TABLE %s", tableName);
data/radlib-2.12.0/database/postgresql/pg_database.c:806:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "DELETE FROM %s", tableName);
data/radlib-2.12.0/database/postgresql/pg_database.c:843:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, 
data/radlib-2.12.0/database/postgresql/pg_database.c:1035:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&select[index], "%s,", field->name);
data/radlib-2.12.0/database/postgresql/pg_database.c:1060:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %d)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1065:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %lld)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1070:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %f)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1075:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %f)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1080:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = \"%s\")",
data/radlib-2.12.0/database/postgresql/pg_database.c:1087:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "SELECT %s FROM %s WHERE %s",
data/radlib-2.12.0/database/postgresql/pg_database.c:1121:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "INSERT INTO %s ", tableName);
data/radlib-2.12.0/database/postgresql/pg_database.c:1149:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1156:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1163:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1170:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1177:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1179:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            valindex += sprintf (&values[valindex], "'%s',",
data/radlib-2.12.0/database/postgresql/pg_database.c:1189:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (query, columns);
data/radlib-2.12.0/database/postgresql/pg_database.c:1190:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (query, values);
data/radlib-2.12.0/database/postgresql/pg_database.c:1237:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = NULL,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1243:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %d,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1248:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %lld,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1253:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %f,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1258:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %f,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1263:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = \"%s\",",
data/radlib-2.12.0/database/postgresql/pg_database.c:1289:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %d)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1294:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = \"%s\")",
data/radlib-2.12.0/database/postgresql/pg_database.c:1301:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "UPDATE %s SET %s WHERE %s",
data/radlib-2.12.0/database/postgresql/pg_database.c:1325:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf (query, "DELETE FROM %s WHERE ", tableName);
data/radlib-2.12.0/database/postgresql/pg_database.c:1346:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %d)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1351:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %lld)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1356:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %f)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1361:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %f)",
data/radlib-2.12.0/database/postgresql/pg_database.c:1366:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = \"%s\")",
data/radlib-2.12.0/debug/raddebug.c:85:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (qname, "%s/raddebugFIFO", argv[2]);
data/radlib-2.12.0/debug/raddebug.c:86:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (refname, "%s/raddebugFIFOREF", argv[2]);
data/radlib-2.12.0/h/raddebug.h:80:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf (temp1, format, argList);
data/radlib-2.12.0/msgRouter/msgRouter.c:74:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (work->pidFile, "%s/%s", workingDir, MSGRTR_LOCK_FILE_NAME);
data/radlib-2.12.0/msgRouter/msgRouter.c:75:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (work->fifoFile, "%s/%s", workingDir, MSGRTR_QUEUE_NAME);
data/radlib-2.12.0/msgRouter/msgRouter.c:995:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(outMsg.name, "router:%s", radSocketGetHost(newServer));
data/radlib-2.12.0/msgRouter/msgRouter.c:1240:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(outMsg.name, "router:%s", radSocketGetHost(msgrtrWork.remoteServer));
data/radlib-2.12.0/src/radconffile.c:106:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (commentData->comment, "#  Filename: %s\n", file->fileName);
data/radlib-2.12.0/src/radconffile.c:198:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (lockFile, "%s:%d", host, i);
data/radlib-2.12.0/src/radconffile.c:209:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(lockLink, "lock:%s", temp);
data/radlib-2.12.0/src/radconffile.c:234:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(lockLink, "lock:%s", temp);
data/radlib-2.12.0/src/radconffile.c:868:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(entry->comment, "# %s", comment);
data/radlib-2.12.0/src/radconffile.c:885:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(entry->comment, "# %s", comment);
data/radlib-2.12.0/src/raddebug.c:78:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf (temp1, format, argList);
data/radlib-2.12.0/src/radmsgLog.c:134:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf (&temp1[index], format, argList);
data/radlib-2.12.0/src/radmsgLog.c:168:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (msg, ascii);
data/radlib-2.12.0/src/radmsgLog.c:175: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 (msg, temp);
data/radlib-2.12.0/src/radmsgLog.c:176: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 (ascii, temp1);
data/radlib-2.12.0/src/radmsgLog.c:189: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 (msg, ascii);
data/radlib-2.12.0/src/radmsgRouter.c:275:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (temp, "%s/%s", workingDir, MSGRTR_LOCK_FILE_NAME);
data/radlib-2.12.0/src/radmsgRouter.c:285:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (msgRtrLocalWork.rtrQueueName, "%s/%s", workingDir, MSGRTR_QUEUE_NAME);
data/radlib-2.12.0/src/radqueue.c:409:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (buffer, "%sREF", myName);
data/radlib-2.12.0/src/radqueue.c:547:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (temp, "%sREF", myName);
data/radlib-2.12.0/src/radsqlite.c:80:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (errorString, "error %d (%s)",
data/radlib-2.12.0/src/radsqlite.c:498:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "SELECT * FROM sqlite_master where tbl_name='%s'", tableName);
data/radlib-2.12.0/src/radsqlite.c:533:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf(query, "CREATE TABLE %s ( ", tableName);
data/radlib-2.12.0/src/radsqlite.c:579:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        index += sprintf (&query[index], "%s %s %s,",
data/radlib-2.12.0/src/radsqlite.c:598:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf(&query[index], "PRIMARY KEY (%s),",
data/radlib-2.12.0/src/radsqlite.c:605:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf(&query[index], "UNIQUE INDEX (%s),",
data/radlib-2.12.0/src/radsqlite.c:611:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf(&query[index], "INDEX (%s),",
data/radlib-2.12.0/src/radsqlite.c:635:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(query, "DROP TABLE %s", tableName);
data/radlib-2.12.0/src/radsqlite.c:648:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(query, "DELETE FROM %s", tableName);
data/radlib-2.12.0/src/radsqlite.c:682:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(query, "PRAGMA TABLE_INFO(%s)", tableName);
data/radlib-2.12.0/src/radsqlite.c:822:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&select[index], "%s,", field->name);
data/radlib-2.12.0/src/radsqlite.c:847:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %lld)",
data/radlib-2.12.0/src/radsqlite.c:852:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %f)",
data/radlib-2.12.0/src/radsqlite.c:857:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = \"%s\")",
data/radlib-2.12.0/src/radsqlite.c:864:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "SELECT %s FROM %s WHERE %s",
data/radlib-2.12.0/src/radsqlite.c:898:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "INSERT INTO %s ", tableName);
data/radlib-2.12.0/src/radsqlite.c:924:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/src/radsqlite.c:931:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/src/radsqlite.c:938:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            colindex += sprintf (&columns[colindex], "%s,",
data/radlib-2.12.0/src/radsqlite.c:940:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            valindex += sprintf (&values[valindex], "'%s',",
data/radlib-2.12.0/src/radsqlite.c:949:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (query, columns);
data/radlib-2.12.0/src/radsqlite.c:950:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (query, values);
data/radlib-2.12.0/src/radsqlite.c:997:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = NULL,",
data/radlib-2.12.0/src/radsqlite.c:1003:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %lld,",
data/radlib-2.12.0/src/radsqlite.c:1008:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = %f,",
data/radlib-2.12.0/src/radsqlite.c:1013:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&set[index], "%s = \"%s\",",
data/radlib-2.12.0/src/radsqlite.c:1039:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = %lld)",
data/radlib-2.12.0/src/radsqlite.c:1044:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&where[index], "(%s = \"%s\")",
data/radlib-2.12.0/src/radsqlite.c:1051:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, "UPDATE %s SET %s WHERE %s",
data/radlib-2.12.0/src/radsqlite.c:1075:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    index = sprintf (query, "DELETE FROM %s WHERE ", tableName);
data/radlib-2.12.0/src/radsqlite.c:1096:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %lld)",
data/radlib-2.12.0/src/radsqlite.c:1101:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = %f)",
data/radlib-2.12.0/src/radsqlite.c:1106:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            index += sprintf (&query[index], "(%s = \"%s\")",
data/radlib-2.12.0/src/radsqlite.c:1673:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp, "PRAGMA %s = %s", pragmaName, value);
data/radlib-2.12.0/template-old/template.c:166:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s", installPath, TEMPLATE_LOCK_FILENAME);
data/radlib-2.12.0/template-old/template.c:176:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/dev", installPath);
data/radlib-2.12.0/template-old/template.c:206:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s", installPath, TEMPLATE_LOCK_FILENAME);
data/radlib-2.12.0/template-old/template.c:307:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (qname, "%s/dev/%s", installPath, PROC_NAME_TEMPLATE);
data/radlib-2.12.0/template-old/template.c:308:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (cfgname, "%s/%s", installPath, TEMPLATE_CONFIG_FILENAME);
data/radlib-2.12.0/template-old/template.c:309:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pidName, "%s/%s", installPath, TEMPLATE_LOCK_FILENAME);
data/radlib-2.12.0/template-old/template.c:435: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 (templateWork.fileDev, value);
data/radlib-2.12.0/template/template.c:157:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s", installPath, TEMPLATE_LOCK_FILENAME);
data/radlib-2.12.0/template/template.c:167:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/dev", installPath);
data/radlib-2.12.0/template/template.c:196:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s", installPath, TEMPLATE_LOCK_FILENAME);
data/radlib-2.12.0/template/template.c:288:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (qname, "%s/dev/%s", installPath, PROC_NAME_TEMPLATE);
data/radlib-2.12.0/template/template.c:289:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (cfgname, "%s/%s", installPath, TEMPLATE_CONFIG_FILENAME);
data/radlib-2.12.0/template/template.c:290:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pidName, "%s/%s", installPath, TEMPLATE_LOCK_FILENAME);
data/radlib-2.12.0/template/template2.c:100:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s", installPath, TEMPLATE2_LOCK_FILENAME);
data/radlib-2.12.0/template/template2.c:110:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/dev", installPath);
data/radlib-2.12.0/template/template2.c:139:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s", installPath, TEMPLATE2_LOCK_FILENAME);
data/radlib-2.12.0/template/template2.c:231:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (qname, "%s/dev/%s", installPath, PROC_NAME_TEMPLATE2);
data/radlib-2.12.0/template/template2.c:232:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (cfgname, "%s/%s", installPath, TEMPLATE_CONFIG_FILENAME);
data/radlib-2.12.0/template/template2.c:233:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pidName, "%s/%s", installPath, TEMPLATE2_LOCK_FILENAME);
data/radlib-2.12.0/test/database/dbtest.c:194:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, 
data/radlib-2.12.0/test/msgRouter/routetest.c:66:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf (hfile, "%s", _hostname) != 1)
data/radlib-2.12.0/test/msgRouter/routetest.c:169:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%d", installPath, radID);
data/radlib-2.12.0/test/msgRouter/routetest.c:198:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (devPath, "%s/%s%d.pid", installPath, ROUTETEST_LOCK_FILENAME, radID);
data/radlib-2.12.0/test/msgRouter/routetest.c:295:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (qname, "%s/%d/%s", installPath, radSysID, PROC_NAME_ROUTETEST);
data/radlib-2.12.0/test/msgRouter/routetest.c:296:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pidName, "%s/%s%d.pid", installPath, ROUTETEST_LOCK_FILENAME, radSysID);
data/radlib-2.12.0/test/msgRouter/routetest.c:352:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(routetestWork.myID, "%s:%d:%d", GetHostname(), getpid(), radSysID);
data/radlib-2.12.0/test/sqlite/dbtest.c:206:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (query, 
data/radlib-2.12.0/template-old/template.c:157:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template-old/template.c:199:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template-old/template.c:302:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template/template.c:148:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template/template.c:189:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template/template.c:283:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template/template2.c:91:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template/template2.c:132:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/template/template2.c:226:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/test/msgRouter/routetest.c:160:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/test/msgRouter/routetest.c:191:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/test/msgRouter/routetest.c:290:19:  [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.
    installPath = getenv ("APPLICATION_RUN_DIRECTORY");
data/radlib-2.12.0/database/mysql/my_database.c:76: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 errorString[512];
data/radlib-2.12.0/database/mysql/my_database.c:188:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                genField->ivalue = atoi (row[i]);
data/radlib-2.12.0/database/mysql/my_database.c:216:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (genField->cvalue, row[i], fieldLengths[i]);
data/radlib-2.12.0/database/mysql/my_database.c:232:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (genField->cvalue, row[i], fieldLengths[i]);
data/radlib-2.12.0/database/mysql/my_database.c:366: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:382: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:542: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:604: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:632: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:633: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            fType[12], notNull[12];
data/radlib-2.12.0/database/mysql/my_database.c:663:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "INT");
data/radlib-2.12.0/database/mysql/my_database.c:667:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "BIGINT");
data/radlib-2.12.0/database/mysql/my_database.c:671:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "FLOAT");
data/radlib-2.12.0/database/mysql/my_database.c:675:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "DOUBLE");
data/radlib-2.12.0/database/mysql/my_database.c:679:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "DATETIME");
data/radlib-2.12.0/database/mysql/my_database.c:683:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "CHAR(%d)", field->cvalLength);
data/radlib-2.12.0/database/mysql/my_database.c:688:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (notNull, "NOT NULL");
data/radlib-2.12.0/database/mysql/my_database.c:749: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:762: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:785: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:962: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:963: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            select[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:964: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            where[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:996:22:  [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.
            index += sprintf (&where[index], "AND ");
data/radlib-2.12.0/database/mysql/my_database.c:1058: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:1135: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:1136: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            set[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:1137: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            where[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:1205:22:  [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.
            index += sprintf (&where[index], "AND ");
data/radlib-2.12.0/database/mysql/my_database.c:1244: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/mysql/my_database.c:1262:22:  [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.
            index += sprintf (&query[index], " AND ");
data/radlib-2.12.0/database/postgresql/pg_database.c:81: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 errorString[512];
data/radlib-2.12.0/database/postgresql/pg_database.c:212:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                genField->ivalue = atoi (fieldVal);
data/radlib-2.12.0/database/postgresql/pg_database.c:217:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                genField->ivalue = atoi (fieldVal);
data/radlib-2.12.0/database/postgresql/pg_database.c:222:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                genField->ivalue = atoi (fieldVal);
data/radlib-2.12.0/database/postgresql/pg_database.c:250:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (genField->cvalue, fieldVal, fieldLength);
data/radlib-2.12.0/database/postgresql/pg_database.c:265:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (genField->cvalue, fieldVal, fieldLength);
data/radlib-2.12.0/database/postgresql/pg_database.c:314: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        conninfo[256], hoststr[64];
data/radlib-2.12.0/database/postgresql/pg_database.c:330: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 (hoststr, "host=localhost");
data/radlib-2.12.0/database/postgresql/pg_database.c:406: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:422: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:576: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:638: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:680: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:681:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            fType[12], notNull[12];
data/radlib-2.12.0/database/postgresql/pg_database.c:711:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "int4");
data/radlib-2.12.0/database/postgresql/pg_database.c:715:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "int8");
data/radlib-2.12.0/database/postgresql/pg_database.c:719:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "float4");
data/radlib-2.12.0/database/postgresql/pg_database.c:723:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "float8");
data/radlib-2.12.0/database/postgresql/pg_database.c:727:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "timestamp");
data/radlib-2.12.0/database/postgresql/pg_database.c:731:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "char(%d)", field->cvalLength);
data/radlib-2.12.0/database/postgresql/pg_database.c:736:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (notNull, "NOT NULL");
data/radlib-2.12.0/database/postgresql/pg_database.c:791: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:804: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:827: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:938:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                type = atoi (fieldVal);
data/radlib-2.12.0/database/postgresql/pg_database.c:1020: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1021: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            select[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1022: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            where[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1054:22:  [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.
            index += sprintf (&where[index], "AND ");
data/radlib-2.12.0/database/postgresql/pg_database.c:1116: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1117: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            columns[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1118: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            values[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1123:16:  [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.
    valindex = sprintf (values, " VALUES (");
data/radlib-2.12.0/database/postgresql/pg_database.c:1151:25:  [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.
            valindex += sprintf (&values[valindex], "%d,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1158:25:  [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.
            valindex += sprintf (&values[valindex], "%lld,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1165:25:  [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.
            valindex += sprintf (&values[valindex], "%f,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1172:25:  [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.
            valindex += sprintf (&values[valindex], "%f,",
data/radlib-2.12.0/database/postgresql/pg_database.c:1213: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1214: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            set[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1215: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            where[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1283:22:  [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.
            index += sprintf (&where[index], "AND ");
data/radlib-2.12.0/database/postgresql/pg_database.c:1322: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            query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/database/postgresql/pg_database.c:1340:22:  [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.
            index += sprintf (&query[index], " AND ");
data/radlib-2.12.0/debug/raddebug.c:47: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        qname[128], refname[128];
data/radlib-2.12.0/debug/raddebug.c:54: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).
    sysID = atoi (argv[1]);
data/radlib-2.12.0/h/radUDPsocket.h:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        host[RADUDPSOCK_MAX_HOST_LENGTH];
data/radlib-2.12.0/h/radconffile.h:82: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              comment[MAX_LINE_LENGTH];
data/radlib-2.12.0/h/radconffile.h:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char              id[MAX_ID_LENGTH];
data/radlib-2.12.0/h/radconffile.h:90: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              instance[MAX_INSTANCE_LENGTH];
data/radlib-2.12.0/h/radconffile.h:91: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[MAX_LINE_LENGTH];
data/radlib-2.12.0/h/radconffile.h:92: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              comment[MAX_COMMENT_LENGTH];
data/radlib-2.12.0/h/radconffile.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        fileName[MAX_FILENAME_LENGTH];
data/radlib-2.12.0/h/raddatabase.h:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[DB_FIELD_NAME_MAX];
data/radlib-2.12.0/h/raddatabase.h:143: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        query[DB_QUERY_LENGTH_MAX];
data/radlib-2.12.0/h/raddebug.h:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        temp1[256];
data/radlib-2.12.0/h/radmsgRouter.h:122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[PROCESS_MAX_NAME_LEN+1];
data/radlib-2.12.0/h/radmsgRouter.h:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            queueName[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radmsgRouter.h:164: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            pidFile[128];
data/radlib-2.12.0/h/radmsgRouter.h:165: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            fifoFile[128];
data/radlib-2.12.0/h/radmsgRouter.h:168: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            remoteIP[256];
data/radlib-2.12.0/h/radmsgRouter.h:186: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            rtrQueueName[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radmsgRouter.h:217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[PROCESS_MAX_NAME_LEN+1];
data/radlib-2.12.0/h/radmsgRouter.h:219: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            srcIP[128];
data/radlib-2.12.0/h/radprocess.h:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[PROCESS_MAX_NAME_LEN+1];
data/radlib-2.12.0/h/radproclist.h:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            pName [PROC_PARENT_NAME_LEN];
data/radlib-2.12.0/h/radqueue.h:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radqueue.h: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            name[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radqueue.h:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radqueue.h:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            refName[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radqueue.h:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/h/radsha.h:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    B[320];                 /* But read them as bytes for counting */
data/radlib-2.12.0/h/radsha.h:135: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        digestStore[RADSHA1_DIGEST_STR_LENGTH]
data/radlib-2.12.0/h/radsha.h:145: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        *filename, 
data/radlib-2.12.0/h/radsha.h:146: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        digestStore[RADSHA1_DIGEST_STR_LENGTH]
data/radlib-2.12.0/h/radsha.h:158: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        digestStore[RADSHA256_DIGEST_STR_LENGTH]
data/radlib-2.12.0/h/radsha.h:168: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        *filename, 
data/radlib-2.12.0/h/radsha.h:169: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        digestStore[RADSHA256_DIGEST_STR_LENGTH]
data/radlib-2.12.0/h/radsocket.h:83: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        host[RADSOCK_MAX_HOST_LENGTH];
data/radlib-2.12.0/h/radsocket.h:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        remoteHost[RADSOCK_MAX_HOST_LENGTH];
data/radlib-2.12.0/h/radsocket.h:92: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            host[256];
data/radlib-2.12.0/h/radsqlite.h:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[DB_SQLITE_FIELD_NAME_MAX];
data/radlib-2.12.0/h/radsqlite.h:144: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            query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/h/radtextsearch.h:68: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[SEARCH_TEXT_MAX];
data/radlib-2.12.0/msgRouter/msgRouter.c:171: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 (msg->msg, data, length);
data/radlib-2.12.0/msgRouter/msgRouter.c:472:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(sendBfr, hdr->msg, length);
data/radlib-2.12.0/msgRouter/msgRouter.c:1323:16:  [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).
    radSysID = atoi(argv[1]);
data/radlib-2.12.0/msgRouter/msgRouter.c:1349:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        msgrtrWork.listenPort = atoi(argv[3]);
data/radlib-2.12.0/msgRouter/msgRouter.c:1375:41:  [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).
                msgrtrWork.remotePort = atoi(word);
data/radlib-2.12.0/msgRouter/msgRouter.c:1408:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pidfile = fopen (msgrtrWork.pidFile, "w");
data/radlib-2.12.0/src/radUDPsocket.c:191: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 (&ifAdrs, hostentptr->h_addr, 4);
data/radlib-2.12.0/src/radUDPsocket.c:273: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 (&mcreq.imr_multiaddr.s_addr, hostentptr->h_addr, 4);
data/radlib-2.12.0/src/radUDPsocket.c:282: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 (&mcreq.imr_interface.s_addr, hostentptr->h_addr, 4);
data/radlib-2.12.0/src/radUDPsocket.c:316: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 (&mcreq.imr_multiaddr.s_addr, hostentptr->h_addr, 4);
data/radlib-2.12.0/src/radUDPsocket.c:325: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 (&mcreq.imr_interface.s_addr, hostentptr->h_addr, 4);
data/radlib-2.12.0/src/radconffile.c:189: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                  host[64];
data/radlib-2.12.0/src/radconffile.c:190: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                  lockFile[MAX_LINE_LENGTH];
data/radlib-2.12.0/src/radconffile.c:191: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                  lockLink[MAX_LINE_LENGTH];
data/radlib-2.12.0/src/radconffile.c:221: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                  lockLink[MAX_LINE_LENGTH];
data/radlib-2.12.0/src/radconffile.c:251:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    tempText[MAX_LINE_LENGTH];
data/radlib-2.12.0/src/radconffile.c:273:16:  [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).
    cfStream = fopen(file, "a+");
data/radlib-2.12.0/src/radconffile.c:525:19:  [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).
    radCfStream = fopen(file->fileName, "w");
data/radlib-2.12.0/src/raddebug.c:73: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        temp1[256];
data/radlib-2.12.0/src/radmsgLog.c:119: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        temp1[512];
data/radlib-2.12.0/src/radmsgLog.c:124:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        index = sprintf (temp1, "<%llu> : ", radTimeGetMSSinceEpoch ());
data/radlib-2.12.0/src/radmsgLog.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        msg[256], temp[16], temp1[16], ascii[128];
data/radlib-2.12.0/src/radmsgLog.c:156: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 (temp, "%2.2X", ptr[i]);
data/radlib-2.12.0/src/radmsgLog.c:157: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 (temp1, "%c", ((isprint(ptr[i]) ? ptr[i] : '.')));
data/radlib-2.12.0/src/radmsgLog.c:167:13:  [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 (msg, "    ");
data/radlib-2.12.0/src/radmsgLog.c:184:13:  [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 (msg, "  ");
data/radlib-2.12.0/src/radmsgLog.c:188:9:  [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 (msg, "    ");
data/radlib-2.12.0/src/radmsgRouter.c:67: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                srcQName[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radmsgRouter.c:132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                srcQName[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radmsgRouter.c:211: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 (msg->msg, data, length);
data/radlib-2.12.0/src/radmsgRouter.c:242: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 (msg->msg, data, length);
data/radlib-2.12.0/src/radmsgRouter.c:272:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    temp[128];
data/radlib-2.12.0/src/radprocess.c:156: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                srcQName[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radprocess.c:281:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    temp [512];
data/radlib-2.12.0/src/radqueue.c:248: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      store[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radqueue.c:279: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      store[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radqueue.c:370: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      store[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radqueue.c:406:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buffer[256];
data/radlib-2.12.0/src/radqueue.c:411:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((reflectFD = open (buffer, O_RDONLY)) == -1)
data/radlib-2.12.0/src/radqueue.c:417:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((pipeFD = open (myName, O_WRONLY)) == -1)
data/radlib-2.12.0/src/radqueue.c:526:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            temp[128];
data/radlib-2.12.0/src/radqueue.c:587:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((newId->reflectFD = open (temp, O_WRONLY)) == -1)
data/radlib-2.12.0/src/radqueue.c:595:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((newId->pipeFD = open (myName, O_RDONLY)) == -1)
data/radlib-2.12.0/src/radqueue.c:702:20:  [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).
    node->pipeFD = open (newQueueName, O_WRONLY);
data/radlib-2.12.0/src/radqueue.c:947: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        store[QUEUE_NAME_LENGTH+1];
data/radlib-2.12.0/src/radqueue.c:985:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (newBfr, sysBuffer, length);
data/radlib-2.12.0/src/radsha.c:282:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (context->in.B + context->inbytes, *buf, *len);
data/radlib-2.12.0/src/radsha.c:320:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (context->in.B + context->inbytes, *buf, 64 - context->inbytes);
data/radlib-2.12.0/src/radsha.c:513: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 (context->state, sha256_initial_hash_value, RADSHA256_DIGEST_LENGTH);
data/radlib-2.12.0/src/radsha.c:633:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (&context->buffer[usedspace], data, freespace);
data/radlib-2.12.0/src/radsha.c:642:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (&context->buffer[usedspace], data, len);
data/radlib-2.12.0/src/radsha.c:660:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (context->buffer, data, len);
data/radlib-2.12.0/src/radsha.c:730:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (d, context->state, RADSHA256_DIGEST_LENGTH);
data/radlib-2.12.0/src/radsha.c:776: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                digestStore[RADSHA1_DIGEST_STR_LENGTH]
data/radlib-2.12.0/src/radsha.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                *filename, 
data/radlib-2.12.0/src/radsha.c:798: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                digestStore[RADSHA1_DIGEST_STR_LENGTH]
data/radlib-2.12.0/src/radsha.c:808:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inFile = fopen (filename, "rb");
data/radlib-2.12.0/src/radsha.c:836: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            digestStore[RADSHA256_DIGEST_STR_LENGTH]
data/radlib-2.12.0/src/radsha.c:857: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            *filename, 
data/radlib-2.12.0/src/radsha.c:858: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            digestStore[RADSHA256_DIGEST_STR_LENGTH]
data/radlib-2.12.0/src/radsha.c:868:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inFile = fopen (filename, "rb");
data/radlib-2.12.0/src/radsocket.c:73: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            service[32];
data/radlib-2.12.0/src/radsocket.c:76: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(service, "%d", hostPort);
data/radlib-2.12.0/src/radsqlite.c:75: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 errorString[512];
data/radlib-2.12.0/src/radsqlite.c:175:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (genField->cvalue, sqlite3_column_text(statement, i), sqlite3_column_bytes(statement, i));
data/radlib-2.12.0/src/radsqlite.c:433: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                    query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:495: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                    query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:528: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:529: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                fType[12], notNull[12];
data/radlib-2.12.0/src/radsqlite.c:559:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "INTEGER");
data/radlib-2.12.0/src/radsqlite.c:563:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "REAL");
data/radlib-2.12.0/src/radsqlite.c:567:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (fType, "TEXT");
data/radlib-2.12.0/src/radsqlite.c:572:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (notNull, "NOT NULL");
data/radlib-2.12.0/src/radsqlite.c:622: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 (&query[index], " )");
data/radlib-2.12.0/src/radsqlite.c:633: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:646: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:668: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                    query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:807: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:808: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                select[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:809: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                where[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:841:22:  [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.
            index += sprintf (&where[index], "AND ");
data/radlib-2.12.0/src/radsqlite.c:893: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:894: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                columns[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:895: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                values[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:900:16:  [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.
    valindex = sprintf (values, " VALUES (");
data/radlib-2.12.0/src/radsqlite.c:926:25:  [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.
            valindex += sprintf (&values[valindex], "%lld,",
data/radlib-2.12.0/src/radsqlite.c:933:25:  [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.
            valindex += sprintf (&values[valindex], "%f,",
data/radlib-2.12.0/src/radsqlite.c:973: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:974: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                set[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:975: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                where[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:1033:22:  [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.
            index += sprintf (&where[index], "AND ");
data/radlib-2.12.0/src/radsqlite.c:1072: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                query[DB_SQLITE_QUERY_LENGTH_MAX];
data/radlib-2.12.0/src/radsqlite.c:1090:22:  [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.
            index += sprintf (&query[index], " AND ");
data/radlib-2.12.0/src/radsqlite.c:1655:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (saveField.cvalue, sqlite3_column_text(statement, i), sqlite3_column_bytes(statement, i));
data/radlib-2.12.0/src/radsqlite.c:1671:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        temp[128];
data/radlib-2.12.0/src/radsystem.c:436:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char     upTimeBuffer[256];
data/radlib-2.12.0/src/radsystem.c:454: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 (upTimeBuffer,
data/radlib-2.12.0/src/radsysutils.c:192: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).
    filed = open ("/dev/null", O_RDWR);
data/radlib-2.12.0/src/radthread.c:169: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(newNode->data, data, length);
data/radlib-2.12.0/src/radthread.c:217: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(pretData, newNode->data, newNode->length);
data/radlib-2.12.0/src/radthread.c:244: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(newNode->data, data, length);
data/radlib-2.12.0/src/radthread.c:292: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(pretData, newNode->data, newNode->length);
data/radlib-2.12.0/template-old/databaseExample.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            temp[1024];
data/radlib-2.12.0/template-old/databaseExample.c:142: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 (temp, "Column 2 string #%d", i);
data/radlib-2.12.0/template-old/template.c:151:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            devPath[256], temp[32];
data/radlib-2.12.0/template-old/template.c:194: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            devPath[256];
data/radlib-2.12.0/template-old/template.c:284: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            qname[256], cfgname[256], instance[32], value[32];
data/radlib-2.12.0/template-old/template.c:285: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            pidName[256];
data/radlib-2.12.0/template-old/template.c:347:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pidfile = fopen (pidName, "w");
data/radlib-2.12.0/template-old/template.c:451:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    templateWork.verboseMode = atoi (value);
data/radlib-2.12.0/template-old/template.h: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            fileDev[256];
data/radlib-2.12.0/template-old/templateStates.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    temp[256];
data/radlib-2.12.0/template/databaseExample.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            temp[1024];
data/radlib-2.12.0/template/databaseExample.c:142: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 (temp, "Column 2 string #%d", i);
data/radlib-2.12.0/template/template.c:142: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            devPath[256], temp[32];
data/radlib-2.12.0/template/template.c:184: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            devPath[256];
data/radlib-2.12.0/template/template.c:265: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            qname[256], cfgname[256], instance[32], value[32];
data/radlib-2.12.0/template/template.c:266: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            pidName[256];
data/radlib-2.12.0/template/template.c:328:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pidfile = fopen (pidName, "w");
data/radlib-2.12.0/template/template.c:432:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    templateWork.verboseMode = atoi (value);
data/radlib-2.12.0/template/template.h: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            fileDev[256];
data/radlib-2.12.0/template/template2.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            devPath[256], temp[32];
data/radlib-2.12.0/template/template2.c:127: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            devPath[256];
data/radlib-2.12.0/template/template2.c:208: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            qname[256], cfgname[256], instance[32], value[32];
data/radlib-2.12.0/template/template2.c:209: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            pidName[256];
data/radlib-2.12.0/template/template2.c:271:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pidfile = fopen (pidName, "w");
data/radlib-2.12.0/template/templateStates.c:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    temp[256];
data/radlib-2.12.0/template/templateStates.c:138:17:  [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).
        value = atoi (temp);
data/radlib-2.12.0/template/templateStates2.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    temp[256];
data/radlib-2.12.0/test/database/dbtest.c:47: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            query[1024];
data/radlib-2.12.0/test/database/dbtest.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            temp[1024];
data/radlib-2.12.0/test/database/dbtest.c:142: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 (temp, "Test string #%d", i);
data/radlib-2.12.0/test/msgRouter/routetest.c:57:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char _hostname[64];
data/radlib-2.12.0/test/msgRouter/routetest.c:59: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).
    hfile = fopen ("/etc/hostname", "r");
data/radlib-2.12.0/test/msgRouter/routetest.c:154: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            devPath[256], temp[32];
data/radlib-2.12.0/test/msgRouter/routetest.c:186: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            devPath[256];
data/radlib-2.12.0/test/msgRouter/routetest.c:267: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            qname[256];
data/radlib-2.12.0/test/msgRouter/routetest.c:268: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            pidName[256];
data/radlib-2.12.0/test/msgRouter/routetest.c:269: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            workdir[128];
data/radlib-2.12.0/test/msgRouter/routetest.c:278:16:  [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).
    radSysID = atoi(argv[1]);
data/radlib-2.12.0/test/msgRouter/routetest.c:333:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pidfile = fopen (pidName, "w");
data/radlib-2.12.0/test/msgRouter/routetest.c:368: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(workdir, "./%d", radSysID);
data/radlib-2.12.0/test/msgRouter/routetest.h:60: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            myID[128];
data/radlib-2.12.0/test/msgRouter/routetest.h: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            id[128];
data/radlib-2.12.0/test/msgRouter/routetest.h:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            id[128];
data/radlib-2.12.0/test/msgRouter/routetest.h:83: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            rqstid[128];
data/radlib-2.12.0/test/multicast/multicast.c:14: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             myIP[16];
data/radlib-2.12.0/test/multicast/multicast.c:15: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             randData[32];
data/radlib-2.12.0/test/multicast/multicast.c:76:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy (pkt.randData, "First packet...");
data/radlib-2.12.0/test/multicast/multicast.c:107: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 (pkt.randData, "Packet %d", ++sendcnt);
data/radlib-2.12.0/test/sha/radsha.c:14: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             digest[RADSHA256_DIGEST_STR_LENGTH];
data/radlib-2.12.0/test/sha/radsha.c:22: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).
    is256 = atoi (argv[1]);
data/radlib-2.12.0/test/sqlite/dbtest.c:47: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            query[1024];
data/radlib-2.12.0/test/sqlite/dbtest.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            temp[1024];
data/radlib-2.12.0/test/sqlite/dbtest.c:154: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 (temp, "Test string #%d", i);
data/radlib-2.12.0/database/mysql/my_database.c:152:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (genField->name, field->name, DB_FIELD_NAME_MAX);
data/radlib-2.12.0/database/mysql/my_database.c:412: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 (query) > DB_QUERY_LENGTH_MAX-1)
data/radlib-2.12.0/database/mysql/my_database.c:493:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (mysqlId->resSet->query, query, DB_QUERY_LENGTH_MAX-1);
data/radlib-2.12.0/database/mysql/my_database.c:545:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (query, resSetId->query, DB_QUERY_LENGTH_MAX-1);
data/radlib-2.12.0/database/mysql/my_database.c:738:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf (&query[index], ")");
data/radlib-2.12.0/database/mysql/my_database.c:871: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).
            for (j = 0; j < strlen (field->name); j ++)
data/radlib-2.12.0/database/mysql/my_database.c:878:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (genField->name, row[i], DB_FIELD_NAME_MAX);
data/radlib-2.12.0/database/mysql/my_database.c:882: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).
                for (j = 0; j < strlen (row[i]); j ++)
data/radlib-2.12.0/database/postgresql/pg_database.c:164:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (genField->name, PQfname (set, col), DB_FIELD_NAME_MAX);
data/radlib-2.12.0/database/postgresql/pg_database.c:453: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 (query) > DB_QUERY_LENGTH_MAX-1)
data/radlib-2.12.0/database/postgresql/pg_database.c:527:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (pgId->resSet->query, query, DB_QUERY_LENGTH_MAX-1);
data/radlib-2.12.0/database/postgresql/pg_database.c:579:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (query, resSetId->query, DB_QUERY_LENGTH_MAX-1);
data/radlib-2.12.0/database/postgresql/pg_database.c:780:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf (&query[index], ")");
data/radlib-2.12.0/database/postgresql/pg_database.c:934:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (genField->name, fieldVal, DB_FIELD_NAME_MAX);
data/radlib-2.12.0/database/postgresql/pg_database.c:1122:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    colindex = sprintf (columns, "(");
data/radlib-2.12.0/msgRouter/msgRouter.c:644:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (pib->name, intMsg->name, PROCESS_MAX_NAME_LEN);
data/radlib-2.12.0/msgRouter/msgRouter.c:645:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (pib->queueName, srcQueueName, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/msgRouter/msgRouter.c:996:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(outMsg.srcIP, inMsg.srcIP, sizeof(outMsg.srcIP));
data/radlib-2.12.0/msgRouter/msgRouter.c:1040:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (pib->name, inMsg.name, PROCESS_MAX_NAME_LEN);
data/radlib-2.12.0/msgRouter/msgRouter.c:1241:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(outMsg.srcIP, radSocketGetHost(msgrtrWork.remoteServer), sizeof(outMsg.srcIP));
data/radlib-2.12.0/msgRouter/msgRouter.c:1281:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (pib->name, outMsg.name, PROCESS_MAX_NAME_LEN);
data/radlib-2.12.0/msgRouter/msgRouter.c:1364:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(msgrtrWork.remoteIP, word, sizeof(msgrtrWork.remoteIP));
data/radlib-2.12.0/msgRouter/msgRouter.c:1457: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(msgrtrWork.remoteIP) > 0)
data/radlib-2.12.0/src/radconffile.c:123:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(commentData->comment, textHdr[i], sizeof(commentData->comment));
data/radlib-2.12.0/src/radconffile.c:292:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(curCF->fileName, file, MAX_FILENAME_LENGTH);
data/radlib-2.12.0/src/radconffile.c:336:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(comment->comment, tempPtr, sizeof(comment->comment));
data/radlib-2.12.0/src/radconffile.c:359:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(comment->comment, tempText, sizeof(comment->comment));
data/radlib-2.12.0/src/radconffile.c:415:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (entry->id, curToken, (instPtrStart-1) - curToken);
data/radlib-2.12.0/src/radconffile.c:416:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (entry->instance, instPtrStart, instPtrEnd - instPtrStart);
data/radlib-2.12.0/src/radconffile.c:420: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 (strlen (curToken) > MAX_ID_LENGTH)
data/radlib-2.12.0/src/radconffile.c:427:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (entry->id, curToken, MAX_ID_LENGTH);
data/radlib-2.12.0/src/radconffile.c:440:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (entry->value, curToken, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:464:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (entry->comment, curToken, MAX_COMMENT_LENGTH);
data/radlib-2.12.0/src/radconffile.c:578: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 (strlen (entry->instance) > 0)
data/radlib-2.12.0/src/radconffile.c:589: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 (strlen (entry->comment) > 0)
data/radlib-2.12.0/src/radconffile.c:633:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(commentData->comment, text, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:665:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(commentData->comment, commentText, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:796:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(instance, entry->instance, MAX_INSTANCE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:799:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(value, entry->value, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:827:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(value, entry->value, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:855:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(entry->id, id, MAX_ID_LENGTH);
data/radlib-2.12.0/src/radconffile.c:858:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(entry->instance, instance, MAX_INSTANCE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:864:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(entry->value, value, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/radconffile.c:882:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(entry->value, value, MAX_LINE_LENGTH);
data/radlib-2.12.0/src/raddatabase.c:142:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (field->name, name, DB_FIELD_NAME_MAX-1);
data/radlib-2.12.0/src/raddatabase.c:448:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (id->cvalue, value, valueLength+1);
data/radlib-2.12.0/src/raddatabase.c:480:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (id->cvalue, value, valueLength+1);
data/radlib-2.12.0/src/raddebug.c:84:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar ();
data/radlib-2.12.0/src/radmsgLog.c:161:13:  [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/radlib-2.12.0/src/radmsgLog.c:186:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (msg, " ");
data/radlib-2.12.0/src/radmsgRouter.c:297:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (rtrMsg.name, radProcessGetName(temp), sizeof(rtrMsg.name));
data/radlib-2.12.0/src/radprocess.c:138:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    retVal = read (fd, &msg, sizeof (msg));
data/radlib-2.12.0/src/radprocess.c:322:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (procData.name, processName, PROCESS_MAX_NAME_LEN);
data/radlib-2.12.0/src/radprocess.c:544:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (store, procData.name, PROCESS_MAX_NAME_LEN);
data/radlib-2.12.0/src/radproclist.c:144:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (newId->pName, parentName, PROC_PARENT_NAME_LEN-1);
data/radlib-2.12.0/src/radqueue.c:113:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (id->queueTable->recs[id->queueTable->numRecs].name, id->name, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:194:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (store,  id->queueTable->recs[i].name,  QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:430:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytesRead = read (reflectFD, buffer, sizeof (buffer));
data/radlib-2.12.0/src/radqueue.c:602:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (newId->name, myName, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:603:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (newId->refName, temp, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:696:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (node->name, newQueueName, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:827:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        retVal = read (tqid->pipeFD, bPtr + bytesRead, sizeof(hdr) - bytesRead);
data/radlib-2.12.0/src/radqueue.c:854:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (srcQueueName, hdr.name, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:898:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (hdr.name, tqid->name, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radqueue.c:1028:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (store, tqid->name, QUEUE_NAME_LENGTH);
data/radlib-2.12.0/src/radsocket.c:103:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(newRecord->host, inet_ntoa(addr), 256);
data/radlib-2.12.0/src/radsocket.c:287:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (newId->host, hostNameOrIP, RADSOCK_MAX_HOST_LENGTH);
data/radlib-2.12.0/src/radsocket.c:547:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        retVal = read (id->sockfd, bPtr+bytesRead, lenToRead-bytesRead);
data/radlib-2.12.0/src/radsqlite.c:148:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (genField->name, sqlite3_column_name(statement, i), DB_SQLITE_FIELD_NAME_MAX);
data/radlib-2.12.0/src/radsqlite.c:278: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(query) > DB_SQLITE_QUERY_LENGTH_MAX-1)
data/radlib-2.12.0/src/radsqlite.c:299:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sqliteId->resSet->query, query, DB_SQLITE_QUERY_LENGTH_MAX-1);
data/radlib-2.12.0/src/radsqlite.c:308:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen(query) + 1,
data/radlib-2.12.0/src/radsqlite.c:436:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(query, resSetId->query, DB_SQLITE_QUERY_LENGTH_MAX-1);
data/radlib-2.12.0/src/radsqlite.c:741:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (genField->name, tempField->cvalue, DB_SQLITE_FIELD_NAME_MAX);
data/radlib-2.12.0/src/radsqlite.c:755: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).
        for (j = 0; j < strlen (tempField->cvalue); j ++)
data/radlib-2.12.0/src/radsqlite.c:899:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    colindex = sprintf (columns, "(");
data/radlib-2.12.0/src/radsqlite.c:1196:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (field->name, name, DB_SQLITE_FIELD_NAME_MAX-1);
data/radlib-2.12.0/src/radsqlite.c:1447:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (id->cvalue, value, valueLength+1);
data/radlib-2.12.0/src/radsqlite.c:1476: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 (query) > DB_SQLITE_QUERY_LENGTH_MAX-1)
data/radlib-2.12.0/src/radsqlite.c:1493: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).
                                       strlen(query) + 1,
data/radlib-2.12.0/src/radsqlite.c:1625:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(saveField.name, sqlite3_column_name(statement, i), DB_SQLITE_FIELD_NAME_MAX);
data/radlib-2.12.0/src/radtextsearch.c:68:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(newNode->text, text, SEARCH_TEXT_MAX);
data/radlib-2.12.0/src/radtextsearch.c:294:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(found->text, q->text, SEARCH_TEXT_MAX);
data/radlib-2.12.0/template-old/databaseExample.c:143:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        raddatabaseFieldSetCharValue (field, temp, strlen (temp));
data/radlib-2.12.0/template-old/templateStates.c:105:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        retVal = read (stim->iofd, temp, 256);
data/radlib-2.12.0/template/databaseExample.c:143:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        raddatabaseFieldSetCharValue (field, temp, strlen (temp));
data/radlib-2.12.0/template/template.c:416:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (templateWork.fileDev, value, sizeof(templateWork.fileDev));
data/radlib-2.12.0/template/templateStates.c:126:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        retVal = read (stim->iofd, temp, 256);
data/radlib-2.12.0/test/database/dbtest.c:143:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        raddatabaseFieldSetCharValue (field, temp, strlen (temp));
data/radlib-2.12.0/test/msgRouter/routetest.c:81:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg.id, routetestWork.myID, sizeof(msg.id));
data/radlib-2.12.0/test/msgRouter/routetest.c:89:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg.id, routetestWork.myID, sizeof(msg.id));
data/radlib-2.12.0/test/msgRouter/routetest.c:90:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg.rqstid, rqstid, sizeof(msg.rqstid));
data/radlib-2.12.0/test/multicast/multicast.c:75:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (pkt.myIP, argv[1], sizeof(pkt.myIP));
data/radlib-2.12.0/test/multicast/multicast.c:106:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (pkt.myIP, argv[1], sizeof(pkt.myIP));
data/radlib-2.12.0/test/sqlite/dbtest.c:155:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        radsqliteFieldSetCharValue (field, temp, strlen (temp));

ANALYSIS SUMMARY:

Hits = 545
Lines analyzed = 26807 in approximately 0.68 seconds (39503 lines/second)
Physical Source Lines of Code (SLOC) = 15942
Hits@level = [0] 173 [1]  95 [2] 269 [3]  12 [4] 169 [5]   0
Hits@level+ = [0+] 718 [1+] 545 [2+] 450 [3+] 181 [4+] 169 [5+]   0
Hits/KSLOC@level+ = [0+] 45.0383 [1+] 34.1864 [2+] 28.2273 [3+] 11.3537 [4+] 10.6009 [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.