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/lcm-1.3.1+repack1/lcm-python/pylcm_subscription.h
Examining data/lcm-1.3.1+repack1/lcm-python/pyeventlog.c
Examining data/lcm-1.3.1+repack1/lcm-python/pylcm.h
Examining data/lcm-1.3.1+repack1/lcm-python/pylcm.c
Examining data/lcm-1.3.1+repack1/lcm-python/module.c
Examining data/lcm-1.3.1+repack1/lcm-python/pylcm_subscription.c
Examining data/lcm-1.3.1+repack1/liblcm-test/lcm-example.c
Examining data/lcm-1.3.1+repack1/liblcm-test/buftest-sender.c
Examining data/lcm-1.3.1+repack1/liblcm-test/lcm-sink.c
Examining data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c
Examining data/lcm-1.3.1+repack1/liblcm-test/buftest-receiver.c
Examining data/lcm-1.3.1+repack1/liblcm-test/lcm-logfilter.c
Examining data/lcm-1.3.1+repack1/liblcm-test/lcm-tester.c
Examining data/lcm-1.3.1+repack1/lcmgen/lcmgen.h
Examining data/lcm-1.3.1+repack1/lcmgen/tokenize.h
Examining data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c
Examining data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c
Examining data/lcm-1.3.1+repack1/lcmgen/emit_lua.c
Examining data/lcm-1.3.1+repack1/lcmgen/emit_c.c
Examining data/lcm-1.3.1+repack1/lcmgen/getopt.c
Examining data/lcm-1.3.1+repack1/lcmgen/emit_java.c
Examining data/lcm-1.3.1+repack1/lcmgen/tokenize.c
Examining data/lcm-1.3.1+repack1/lcmgen/emit_python.c
Examining data/lcm-1.3.1+repack1/lcmgen/lcmgen.c
Examining data/lcm-1.3.1+repack1/lcmgen/getopt.h
Examining data/lcm-1.3.1+repack1/lcmgen/main.c
Examining data/lcm-1.3.1+repack1/lcm-logger/lcm_logplayer.c
Examining data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c
Examining data/lcm-1.3.1+repack1/lcm-logger/glib_util.h
Examining data/lcm-1.3.1+repack1/lcm-logger/glib_util.c
Examining data/lcm-1.3.1+repack1/lcm-lua/utf8_check.c
Examining data/lcm-1.3.1+repack1/lcm-lua/lualcm_pack.c
Examining data/lcm-1.3.1+repack1/lcm-lua/lualcm_pack.h
Examining data/lcm-1.3.1+repack1/lcm-lua/lua_ref_helper.c
Examining data/lcm-1.3.1+repack1/lcm-lua/lualcm_lcm.c
Examining data/lcm-1.3.1+repack1/lcm-lua/lua_ver_helper.h
Examining data/lcm-1.3.1+repack1/lcm-lua/init.c
Examining data/lcm-1.3.1+repack1/lcm-lua/test_unref.c
Examining data/lcm-1.3.1+repack1/lcm-lua/debug_support.h
Examining data/lcm-1.3.1+repack1/lcm-lua/lualcm_hash.c
Examining data/lcm-1.3.1+repack1/lcm-lua/lualcm_hash.h
Examining data/lcm-1.3.1+repack1/lcm-lua/lualcm_lcm.h
Examining data/lcm-1.3.1+repack1/lcm-lua/lua_ref_helper.h
Examining data/lcm-1.3.1+repack1/lcm-lite/lcmlite.c
Examining data/lcm-1.3.1+repack1/lcm-lite/lcmlite.h
Examining data/lcm-1.3.1+repack1/lcm-lite/lcmlite_posix.c
Examining data/lcm-1.3.1+repack1/lcm-lite/lcmlite_ios.c
Examining data/lcm-1.3.1+repack1/lcm-lite/lcmlite_ios.h
Examining data/lcm-1.3.1+repack1/test/cpp/client.cpp
Examining data/lcm-1.3.1+repack1/test/cpp/common.cpp
Examining data/lcm-1.3.1+repack1/test/cpp/memq_test.cpp
Examining data/lcm-1.3.1+repack1/test/cpp/common.hpp
Examining data/lcm-1.3.1+repack1/test/c/client.cpp
Examining data/lcm-1.3.1+repack1/test/c/udpm_test.cpp
Examining data/lcm-1.3.1+repack1/test/c/server.c
Examining data/lcm-1.3.1+repack1/test/c/common.c
Examining data/lcm-1.3.1+repack1/test/c/memq_test.cpp
Examining data/lcm-1.3.1+repack1/test/c/eventlog_test.cpp
Examining data/lcm-1.3.1+repack1/test/c/common.h
Examining data/lcm-1.3.1+repack1/examples/cpp/send_message.cpp
Examining data/lcm-1.3.1+repack1/examples/cpp/read_log.cpp
Examining data/lcm-1.3.1+repack1/examples/cpp/listener.cpp
Examining data/lcm-1.3.1+repack1/examples/c/send_message.c
Examining data/lcm-1.3.1+repack1/examples/c/listener-async.c
Examining data/lcm-1.3.1+repack1/examples/c/read_log.c
Examining data/lcm-1.3.1+repack1/examples/c/listener.c
Examining data/lcm-1.3.1+repack1/examples/c/listener-glib.c
Examining data/lcm-1.3.1+repack1/lcm/eventlog.c
Examining data/lcm-1.3.1+repack1/lcm/lcm_memq.c
Examining data/lcm-1.3.1+repack1/lcm/eventlog.h
Examining data/lcm-1.3.1+repack1/lcm/lcm_udpm.c
Examining data/lcm-1.3.1+repack1/lcm/ringbuffer.h
Examining data/lcm-1.3.1+repack1/lcm/udpm_util.h
Examining data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c
Examining data/lcm-1.3.1+repack1/lcm/windows/WinPorting.cpp
Examining data/lcm-1.3.1+repack1/lcm/windows/WinPorting.h
Examining data/lcm-1.3.1+repack1/lcm/windows/WinLCM.cpp
Examining data/lcm-1.3.1+repack1/lcm/ringbuffer.c
Examining data/lcm-1.3.1+repack1/lcm/dbg.h
Examining data/lcm-1.3.1+repack1/lcm/lcm_file.c
Examining data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h
Examining data/lcm-1.3.1+repack1/lcm/lcm.c
Examining data/lcm-1.3.1+repack1/lcm/lcmtypes/channel_to_port_t.h
Examining data/lcm-1.3.1+repack1/lcm/lcmtypes/channel_port_map_update_t.c
Examining data/lcm-1.3.1+repack1/lcm/lcmtypes/channel_port_map_update_t.h
Examining data/lcm-1.3.1+repack1/lcm/lcmtypes/channel_to_port_t.c
Examining data/lcm-1.3.1+repack1/lcm/lcm.h
Examining data/lcm-1.3.1+repack1/lcm/ioutils.h
Examining data/lcm-1.3.1+repack1/lcm/lcm_internal.h
Examining data/lcm-1.3.1+repack1/lcm/lcm-cpp-impl.hpp
Examining data/lcm-1.3.1+repack1/lcm/udpm_util.c
Examining data/lcm-1.3.1+repack1/lcm/lcm-cpp.hpp
Examining data/lcm-1.3.1+repack1/lcm/lcm_tcpq.c

FINAL RESULTS:

data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:144:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(logger->fname_prefix, new_prefix);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:146:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(logger->fname_prefix, logger->input_fname);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:160:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(logger->fname, logger->fname_prefix);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:341: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(le->channel, channel);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logplayer.c:101:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (url_in, "file://%s?speed=%f", argv[optind], speed);
data/lcm-1.3.1+repack1/lcm-lua/debug_support.h:26:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(lua_toboolean(L, i) ? "true" : "false");
data/lcm-1.3.1+repack1/lcm-lua/debug_support.h:63:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          printf(lua_toboolean(L, -2) ? "true" : "false");
data/lcm-1.3.1+repack1/lcm-lua/debug_support.h:86:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          printf(lua_toboolean(L, -1) ? "true" : "false");
data/lcm-1.3.1+repack1/lcm-lua/test_unref.c:31:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          printf(lua_toboolean(L, -2) ? "true" : "false");
data/lcm-1.3.1+repack1/lcm-lua/test_unref.c:54:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          printf(lua_toboolean(L, -1) ? "true" : "false");
data/lcm-1.3.1+repack1/lcm/dbg.h:193:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(__VA_ARGS__); \
data/lcm-1.3.1+repack1/lcm/dbg.h:194:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(_NORMAL_); \
data/lcm-1.3.1+repack1/lcm/dbg.h:207:31:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define cprintf(color, ...) { printf(color); printf(__VA_ARGS__); \
data/lcm-1.3.1+repack1/lcm/dbg.h:207:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define cprintf(color, ...) { printf(color); printf(__VA_ARGS__); \
data/lcm-1.3.1+repack1/lcm/dbg.h:208:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(_NORMAL_); }
data/lcm-1.3.1+repack1/lcm/lcm_file.c:347: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(le->channel, channel);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:515:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (lcmb->channel_name, fbuf->channel);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:559: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 (lcmb->channel_name, pkt_channel_str);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:349:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (lcmb->channel_name, fbuf->channel);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:387: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 (lcmb->channel_name, pkt_channel_str);
data/lcm-1.3.1+repack1/lcm/windows/WinPorting.h:8:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf	_snprintf
data/lcm-1.3.1+repack1/lcm/windows/WinPorting.h:8:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf	_snprintf
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:17:67:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_start(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:18:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_continue(...) do { fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:19:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_end(...) do { fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:20:61:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:409:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "&(%s[element].%s)", n, lm->membername);
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:411:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        int pos = sprintf(tmp, "%s[element].%s", n, lm->membername);
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:20:67:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_start(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:21:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_continue(...) do { fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:22:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_end(...) do { fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:23:61:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:24:67:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_start(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:25:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_continue(...) do { fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:26:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_end(...) do { fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:27:61:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:133:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    pos += sprintf(s, "%s%s%s", obj, obj[0]==0 ? "" : ".", lm->membername);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:24:67:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_start(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:25:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_continue(...) do { fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:26:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_end(...) do { fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:27:61:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:125:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    pos += sprintf(s, "%s%s%s", obj, obj[0]==0 ? "" : ".", lm->membername);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:137:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    pos += sprintf(s, "%s%s%s", obj, obj[0]==0 ? "" : ".", lm->membername);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:28:67:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_start(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:29:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_continue(...) do { fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:30:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_end(...) do { fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:31:61:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:33:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err(...) fprintf (stderr, __VA_ARGS__)
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:759:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (package_dir_prefix, "%s%s", getopt_get_string(lcm->gopt, "lpath"),
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:762:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(package_dir, "%s%s%s", package_dir_prefix, pdname,
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:986:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (path, "%s%s.lua", package_dir, ls->structname->shortname);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:27:67:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_start(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:28:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_continue(...) do { fprintf(f, __VA_ARGS__); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:29:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit_end(...) do { fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:30:61:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define emit(n, ...) do { fprintf(f, "%*s", INDENT(n), ""); fprintf(f, __VA_ARGS__); fprintf(f, "\n"); } while (0)
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:32:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err(...) fprintf (stderr, __VA_ARGS__)
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:699:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (package_dir_prefix, "%s%s", getopt_get_string(lcm->gopt, "ppath"), 
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:702:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(package_dir, "%s%s%s", package_dir_prefix, pdname,
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:814:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (path, "%s%s.py", package_dir, le->enumname->shortname);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:898:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (path, "%s%s.py", package_dir, ls->structname->shortname);
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:302:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:320:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:336:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:823:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    pos += sprintf(&buf[pos], "%s", lt->lctypename);
data/lcm-1.3.1+repack1/test/c/client.cpp:11:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define info(...) do { printf("c_client: "); printf(__VA_ARGS__); printf("\n"); } while(0)
data/lcm-1.3.1+repack1/test/c/common.c:13:53:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define info(...) do { fprintf(stderr, "server: "); fprintf(stderr, __VA_ARGS__); } while(0)
data/lcm-1.3.1+repack1/test/c/common.c:23:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf c99_snprintf
data/lcm-1.3.1+repack1/test/c/common.c:24:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf c99_vsnprintf
data/lcm-1.3.1+repack1/test/cpp/client.cpp:11:48:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define info(...) do { printf("cpp_client: "); printf(__VA_ARGS__); \
data/lcm-1.3.1+repack1/test/cpp/common.cpp:7:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); } while(0)
data/lcm-1.3.1+repack1/test/cpp/common.cpp:17:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf c99_snprintf
data/lcm-1.3.1+repack1/test/cpp/common.cpp:18:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf c99_vsnprintf
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:454:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long (argc, argv, optstring, long_opts, 0)) >= 0)
data/lcm-1.3.1+repack1/lcm-logger/lcm_logplayer.c:64:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long (argc, argv, "hp:s:ve:l:", long_opts, 0)) >= 0)
data/lcm-1.3.1+repack1/lcm/dbg.h:146:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    dbg_env = getenv(DBG_ENV);
data/lcm-1.3.1+repack1/lcm/lcm.c:91:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        url = getenv ("LCM_DEFAULT_URL");
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:1672:15:  [3] (random) g_random_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            + g_random_int_range(0,
data/lcm-1.3.1+repack1/lcmgen/getopt.c:261:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_get_int(getopt_t *getopt, const char *lname)
data/lcm-1.3.1+repack1/lcmgen/getopt.c:263:39:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    const char *v = getopt_get_string(getopt, lname);
data/lcm-1.3.1+repack1/lcmgen/getopt.c:268:31:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_get_bool(getopt_t *getopt, const char *lname)
data/lcm-1.3.1+repack1/lcmgen/getopt.c:270:39:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    const char *v = getopt_get_string(getopt, lname);
data/lcm-1.3.1+repack1/lcmgen/getopt.h:22:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
typedef struct getopt getopt_t;
data/lcm-1.3.1+repack1/lcmgen/getopt.h:24:8:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
struct getopt
data/lcm-1.3.1+repack1/liblcm-test/buftest-sender.c:12:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(0);
data/lcm-1.3.1+repack1/liblcm-test/lcm-logfilter.c:57:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, optstring)) >= 0)
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:84:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, optstring)) >= 0)
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:126:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/lcm-1.3.1+repack1/test/c/client.cpp:78:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/lcm-1.3.1+repack1/test/c/common.c:376:12:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    return tmpnam(NULL);
data/lcm-1.3.1+repack1/test/c/common.c:383:19:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
free_tmpnam(char* tmpnam)
data/lcm-1.3.1+repack1/test/c/common.c:386:10:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    free(tmpnam);
data/lcm-1.3.1+repack1/test/c/common.h:43:24:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
void free_tmpnam(char* tmpnam);
data/lcm-1.3.1+repack1/test/cpp/client.cpp:72:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));
data/lcm-1.3.1+repack1/lcm-lite/lcmlite.c:133:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char channel[LCM_MAX_CHANNEL_LENGTH];
data/lcm-1.3.1+repack1/lcm-lite/lcmlite.c:238: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(&fbuf->buf[fragment_offset], &buf[buf_pos], buf_len - buf_pos);
data/lcm-1.3.1+repack1/lcm-lite/lcmlite.c:277: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(&lcm->publish_buffer[buf_pos], _buf, buf_len);       buf_pos += buf_len;
data/lcm-1.3.1+repack1/lcm-lite/lcmlite.c:315: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(&lcm->publish_buffer[buf_pos], &((char*) _buf)[fragment_offset], this_fragment_size);
data/lcm-1.3.1+repack1/lcm-lite/lcmlite.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 channel[LCM_MAX_CHANNEL_LENGTH];
data/lcm-1.3.1+repack1/lcm-lite/lcmlite.h:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LCM3_MAX_PACKET_SIZE];
data/lcm-1.3.1+repack1/lcm-lite/lcmlite_ios.c:107:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[65536];
data/lcm-1.3.1+repack1/lcm-lite/lcmlite_posix.c:146:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[65536];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:58: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    input_fname[PATH_MAX];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:59: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    fname[PATH_MAX];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c: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    fname_prefix[PATH_MAX];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:135:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char new_prefix[PATH_MAX];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:344: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(le->data, rbuf->data, rbuf->data_size);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:417: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 logpath[PATH_MAX];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:505:43:  [2] (integer) atol:
  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).
              logger.fflush_interval_ms = atol(optarg);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:522:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (logger.input_fname, "lcmlog-%Y-%m-%d");
data/lcm-1.3.1+repack1/lcm-logger/lcm_logplayer.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char url_in[strlen(file) + 64];
data/lcm-1.3.1+repack1/lcm-logger/lcm_logplayer.c:99: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 url_in[2048];
data/lcm-1.3.1+repack1/lcm-lua/lualcm_hash.c:271:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hash_str[20];
data/lcm-1.3.1+repack1/lcm-python/pyeventlog.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 buf[512];
data/lcm-1.3.1+repack1/lcm/dbg.h:150:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char env[256];
data/lcm-1.3.1+repack1/lcm/eventlog.c:34:12:  [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).
    l->f = fopen(path, mode);
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:62:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[offset], p, elements);
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:73: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(p, &buf[offset], elements);
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:80: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(q, p, elements * sizeof(uint8_t));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:102:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[offset], p, elements);
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:113: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(p, &buf[offset], elements);
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:120: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(q, p, elements * sizeof(int8_t));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:180: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(q, p, elements * sizeof(int16_t));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:245: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(q, p, elements * sizeof(int32_t));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:317: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(q, p, elements * sizeof(int64_t));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:346: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(q, p, elements * sizeof(float));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:375: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(q, p, elements * sizeof(double));
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:452: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 (q[element], p[element], len);
data/lcm-1.3.1+repack1/lcm/lcm_file.c:350: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(le->data, data, datalen);
data/lcm-1.3.1+repack1/lcm/lcm_memq.c:34: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->rbuf.data, data, data_size);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:487: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 (fbuf->data + fragment_offset, data_start, frag_size);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:749:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char controlbuf[64];
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:324: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 (fbuf->data + fragment_offset, data_start, frag_size);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:488:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char controlbuf[64];
data/lcm-1.3.1+repack1/lcm/udpm_util.c:259: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).
    FILE *fp = fopen("/proc/net/route", "r");
data/lcm-1.3.1+repack1/lcm/udpm_util.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 buf[1024];
data/lcm-1.3.1+repack1/lcm/udpm_util.h:140: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  channel_name[LCM_MAX_CHANNEL_NAME_LENGTH+1];
data/lcm-1.3.1+repack1/lcm/udpm_util.h:187: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      channel[LCM_MAX_CHANNEL_NAME_LENGTH+1];
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:413:20:  [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.
            pos += sprintf(&tmp[pos], "[%c]", d + 'a');
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:446:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char stars[1000];
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:979: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).
        FILE *f = fopen(header_name, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:1124: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).
        FILE *f = fopen(c_name, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:1160: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).
        FILE *f = fopen(header_name, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:1174: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).
        FILE *f = fopen(c_name, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:763:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE *f = fopen(header_name, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:139:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			pos += sprintf(&s[pos],"%c", 'a'+d);
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:216: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:326: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:483:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char accessor[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:127: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.
        pos += sprintf(&s[pos],"[%c]", 'a'+d);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:139: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.
        pos += sprintf(&s[pos],"[%c]", 'a'+d);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:166:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char accessor_array[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:221:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char accessor_array[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:270:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char accessor_array[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:382: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:483: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:640:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char accessor[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:223:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    atoi(len) * _primitive_type_size(tn));
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:755: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 package_dir[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:756: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 package_dir_prefix[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:791:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        		char *initlua_fname_parts[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:808:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        		char * name_parts[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:835:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            	init_lua_fp = fopen(initlua_fname, "r");
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:845:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            		char buf[4096];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:884:27:  [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).
            init_lua_fp = fopen(initlua_fname, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:985:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char path[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:1038: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:191:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    atoi(len) * _primitive_type_size(tn),
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:207:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    atoi(len) * _primitive_type_size(tn), 
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:695: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 package_dir[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:696: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 package_dir_prefix[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:725:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *initpy_fname_parts[1024];
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:747:30:  [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).
                init_py_fp = fopen(initpy_fname, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:752:30:  [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).
                init_py_fp = fopen(initpy_fname, "r+");
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:784:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buf[4096];
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:813:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char path[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:825: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:897:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char path[PATH_MAX];
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:909: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).
        FILE *f = fopen(path, "w");
data/lcm-1.3.1+repack1/lcmgen/getopt.c:135:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sopt[2];
data/lcm-1.3.1+repack1/lcmgen/getopt.c:213: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 sname[2];
data/lcm-1.3.1+repack1/lcmgen/getopt.c:236: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 sname[2];
data/lcm-1.3.1+repack1/lcmgen/getopt.c:265:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(v);
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:820:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/lcm-1.3.1+repack1/lcmgen/tokenize.c:39:12:  [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).
    t->f = fopen(path, "r");
data/lcm-1.3.1+repack1/liblcm-test/buftest-receiver.c:18:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    msg_id = atoi(rbuf->data);
data/lcm-1.3.1+repack1/liblcm-test/buftest-receiver.c:33:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            queue_capacity = atoi(argv[1]);
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:71: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 channel[80];
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:95:42:  [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).
                transmit_interval_usec = atoi(optarg);
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:101:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                packet_sz = atoi (optarg);
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:144:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (sz >= sizeof (seqno)) memcpy (data, &seqno, sizeof (seqno));
data/lcm-1.3.1+repack1/test/c/common.c:59: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(result, src, len+1);
data/lcm-1.3.1+repack1/test/c/common.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char expected_buf[80];
data/lcm-1.3.1+repack1/test/c/common.c: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 buf[80];
data/lcm-1.3.1+repack1/test/c/common.c:219:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char expected_name[100];
data/lcm-1.3.1+repack1/test/c/common.c:220: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(expected_name, "%d", -n);
data/lcm-1.3.1+repack1/test/c/common.c:254:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[100];
data/lcm-1.3.1+repack1/test/c/common.c:290: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 expected_name[100];
data/lcm-1.3.1+repack1/test/c/common.c:291: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(expected_name, "%d", n);
data/lcm-1.3.1+repack1/test/c/common.c:318: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_buf[80];
data/lcm-1.3.1+repack1/test/c/eventlog_test.cpp:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[datalen];
data/lcm-1.3.1+repack1/test/c/eventlog_test.cpp:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[datalen];
data/lcm-1.3.1+repack1/test/c/memq_test.cpp:22: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(&(*received_buf)[0], rbuf->data, rbuf->data_size);
data/lcm-1.3.1+repack1/test/c/memq_test.cpp:54:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[0], rbuf->data, rbuf->data_size);
data/lcm-1.3.1+repack1/test/cpp/common.cpp:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char expected_buf[80];
data/lcm-1.3.1+repack1/test/cpp/common.cpp:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[80];
data/lcm-1.3.1+repack1/test/cpp/common.cpp:188:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char expected_name[100];
data/lcm-1.3.1+repack1/test/cpp/common.cpp:189: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(expected_name, "%d", -n);
data/lcm-1.3.1+repack1/test/cpp/common.cpp:222:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[100];
data/lcm-1.3.1+repack1/test/cpp/common.cpp:250:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char expected_name[100];
data/lcm-1.3.1+repack1/test/cpp/common.cpp:251:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(expected_name, "%d", n);
data/lcm-1.3.1+repack1/test/cpp/common.cpp:277:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name_buf[80];
data/lcm-1.3.1+repack1/test/cpp/memq_test.cpp:21: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(&(*received_buf)[0], rbuf->data, rbuf->data_size);
data/lcm-1.3.1+repack1/test/cpp/memq_test.cpp:50:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[0], rbuf->data, rbuf->data_size);
data/lcm-1.3.1+repack1/lcm-logger/glib_util.c:16:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define lcm_internal_pipe_read read
data/lcm-1.3.1+repack1/lcm-logger/glib_util.c:244:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/lcm-1.3.1+repack1/lcm-logger/glib_util.c:248:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dirpath, path, i);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:301:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int channellen = strlen(channel);
data/lcm-1.3.1+repack1/lcm-logger/lcm_logger.c:526:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (logger.input_fname, argv[optind], sizeof (logger.input_fname));
data/lcm-1.3.1+repack1/lcm-logger/lcm_logplayer.c:97:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char url_in[strlen(file) + 64];
data/lcm-1.3.1+repack1/lcm-lua/lualcm_pack.c:243:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t length = strlen(string);
data/lcm-1.3.1+repack1/lcm-python/pylcm.c:226:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!channel || !strlen (channel)) {
data/lcm-1.3.1+repack1/lcm/dbg.h:153:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(env, dbg_env, sizeof(env));
data/lcm-1.3.1+repack1/lcm/eventlog.c:61:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = fgetc(l->f);
data/lcm-1.3.1+repack1/lcm/eventlog.c:157:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = fgetc(l->f);
data/lcm-1.3.1+repack1/lcm/lcm.c:90:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!url || !strlen(url)) 
data/lcm-1.3.1+repack1/lcm/lcm.c:92:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!url || !strlen(url))
data/lcm-1.3.1+repack1/lcm/lcm.c:480:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!url || !strlen (url))
data/lcm-1.3.1+repack1/lcm/lcm.c:508:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (key_value[0] && strlen(key_value[0])) {
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:397:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size += 4 + strlen(s[element]) + 1;
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:413:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int32_t length = strlen(p[element]) + 1; // length includes \0
data/lcm-1.3.1+repack1/lcm/lcm_coretypes.h:450:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(p[element]) + 1;
data/lcm-1.3.1+repack1/lcm/lcm_file.c:169:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!target || !strlen (target)) {
data/lcm-1.3.1+repack1/lcm/lcm_file.c:332:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int channellen = strlen(channel);
data/lcm-1.3.1+repack1/lcm/lcm_internal.h:21:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define lcm_internal_pipe_read read
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:334:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!str || !strlen (str)) {
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:398:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(RESERVED_CHANNEL_PREFIX)) == 0);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:436:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int channel_sz = strlen (channel);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:516:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        lcmb->channel_size = strlen (lcmb->channel_name);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:539:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lcmb->channel_size = strlen (pkt_channel_str);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:891: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).
                (uint8_t*) msg, strlen(msg));
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:1150:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int channel_size = strlen (channel);
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:1401:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(msg));
data/lcm-1.3.1+repack1/lcm/lcm_mpudpm.c:1429:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    (uint8_t*) msg, strlen(msg));
data/lcm-1.3.1+repack1/lcm/lcm_tcpq.c:219:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!network || !strlen(network)) {
data/lcm-1.3.1+repack1/lcm/lcm_tcpq.c:273:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t channel_len = strlen(channel);
data/lcm-1.3.1+repack1/lcm/lcm_tcpq.c:402:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t channel_len = strlen(channel);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:190:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!str || !strlen (str)) {
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:279:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int channel_sz = strlen (channel);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:350:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        lcmb->channel_size = strlen (lcmb->channel_name);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:373:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lcmb->channel_size = strlen (pkt_channel_str);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:610:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int channel_size = strlen (channel);
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:826:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lcm_udpm_publish (lcm, SELF_TEST_CHANNEL, (uint8_t*)msg, strlen (msg));
data/lcm-1.3.1+repack1/lcm/lcm_udpm.c:852: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).
                    strlen (msg));
data/lcm-1.3.1+repack1/lcm/udpm_util.c:19:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (fbuf->channel, channel, sizeof (fbuf->channel));
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:134:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(lines[line_ind])) {
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:161: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).
                    strlen(getopt_get_string(lcm->gopt, "cinclude"))>0 ? "/" : "",
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:985:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *tn_upper = g_ascii_strup (tn_, strlen (tn_));
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:1122:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *tn_upper = g_ascii_strup (tn_, strlen (tn_));
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:1129:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(getopt_get_string(lcmgen->gopt, "cinclude"))>0 ? "/" : "",
data/lcm-1.3.1+repack1/lcmgen/emit_c.c:1182:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(getopt_get_string(lcmgen->gopt, "cinclude"))>0 ? "/" : "",
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:46:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char* p = (char*) calloc(1, 2 * strlen(s) + 1);
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:78:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:82:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dirpath, path, i);
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:159:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(lines[line_ind])) {
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:232: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).
                    strlen(getopt_get_string(lcmgen->gopt, "cpp-include"))>0 ? G_DIR_SEPARATOR_S : "",
data/lcm-1.3.1+repack1/lcmgen/emit_cpp.c:756:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(getopt_get_string(lcmgen->gopt, "cpp-hpath")) > 0 ? G_DIR_SEPARATOR_S : "",
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:47:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:51:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dirpath, path, i);
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:105:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(def_nsp) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:116:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(haystack);
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:136:10:  [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.
		pos += sprintf(&s[pos], "[");
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:141:12:  [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.
				pos += sprintf(&s[pos], ",");
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:143:10:  [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.
		pos += sprintf(&s[pos], "]");
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:207:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(getopt_get_string(lcm->gopt, "csharp-path")) > 0 ? G_DIR_SEPARATOR_S : "",
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:227:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(le->enumname->package) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:232:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(def_nsp) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:317:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(getopt_get_string(lcm->gopt, "csharp-path")) > 0 ? "/" : "",
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:342:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(lr->structname->package) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_csharp.c:347:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(def_nsp) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:47:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:51:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dirpath, path, i);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:108:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(haystack);
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:373:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(getopt_get_string(lcm->gopt, "jpath")) > 0 ? G_DIR_SEPARATOR_S : "",
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:386:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(le->enumname->package) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:474:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(getopt_get_string(lcm->gopt, "jpath")) > 0 ? G_DIR_SEPARATOR_S : "",
data/lcm-1.3.1+repack1/lcmgen/emit_java.c:492:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(lr->structname->package) > 0)
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:41:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:45:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dirpath, path, i);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:63:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        total_len += strlen (*p) + strlen(G_DIR_SEPARATOR_S);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:63:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        total_len += strlen (*p) + strlen(G_DIR_SEPARATOR_S);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:69:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (! strlen(*p)) continue;
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:70:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(result, *p, total_len);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:72:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(result, G_DIR_SEPARATOR_S, total_len);
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:760:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(getopt_get_string(lcm->gopt, "lpath")) > 0 ?
data/lcm-1.3.1+repack1/lcmgen/emit_lua.c:765: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 (package_dir)) {
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:40:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:44:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dirpath, path, i);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:62:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        total_len += strlen (*p) + strlen(G_DIR_SEPARATOR_S);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:62:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        total_len += strlen (*p) + strlen(G_DIR_SEPARATOR_S);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:68:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (! strlen(*p)) continue;
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:69:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(result, *p, total_len);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:71:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(result, G_DIR_SEPARATOR_S, total_len);
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:619:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (is_same_type (lm->type, ls->structname) || strlen(lm->type->package) == 0) {
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:700:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(getopt_get_string(lcm->gopt, "ppath")) > 0 ? 
data/lcm-1.3.1+repack1/lcmgen/emit_python.c:705: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 (package_dir)) {
data/lcm-1.3.1+repack1/lcmgen/getopt.c:66:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int last = strlen(val) - 1;
data/lcm-1.3.1+repack1/lcmgen/getopt.c:132:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int len = strlen(tok);
data/lcm-1.3.1+repack1/lcmgen/getopt.c:287:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        longwidth = MAX(longwidth, strlen(goo->lname));
data/lcm-1.3.1+repack1/lcmgen/getopt.c:290:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            valuewidth = MAX(valuewidth, strlen(goo->svalue));
data/lcm-1.3.1+repack1/lcmgen/getopt.c:298:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (goo->help==NULL || strlen(goo->help)==0)
data/lcm-1.3.1+repack1/lcmgen/getopt.c:316:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        printf("%*s", (int) (valuewidth-strlen(goo->svalue)), "");
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:126:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    v = hash_update(v, strlen(s));
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:170:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                          strlen(lcmgen->package)>0 ? "." : "",
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:180: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(package_prefix)>0 && !lcm_is_primitive_type(lt->shortname)){
data/lcm-1.3.1+repack1/lcmgen/lcmgen.c:183: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(lt->package) > 0 ? "." : "",
data/lcm-1.3.1+repack1/lcmgen/tokenize.c:93:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t->buffer_len = (int) strlen(t->buffer);
data/lcm-1.3.1+repack1/liblcm-test/lcm-example.c:39:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int datalen = strlen(data) + 1;
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:32:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int nchars = strlen(cset);
data/lcm-1.3.1+repack1/liblcm-test/lcm-source.c:92:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (channel, optarg, sizeof(channel));
data/lcm-1.3.1+repack1/liblcm-test/lcm-tester.c:79:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int datalen = (int) strlen(data)+1;
data/lcm-1.3.1+repack1/test/c/common.c:57:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(src);
data/lcm-1.3.1+repack1/test/c/eventlog_test.cpp:28:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const int channellen = strlen(channel);
data/lcm-1.3.1+repack1/test/c/eventlog_test.cpp:93:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const int channellen = strlen(channel);

ANALYSIS SUMMARY:

Hits = 323
Lines analyzed = 25094 in approximately 0.95 seconds (26438 lines/second)
Physical Source Lines of Code (SLOC) = 18003
Hits@level = [0] 427 [1] 110 [2] 120 [3]  21 [4]  72 [5]   0
Hits@level+ = [0+] 750 [1+] 323 [2+] 213 [3+]  93 [4+]  72 [5+]   0
Hits/KSLOC@level+ = [0+] 41.6597 [1+] 17.9415 [2+] 11.8314 [3+] 5.16581 [4+] 3.99933 [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.