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/pdp-0.14.1+darcs20180201/debug/c++test.cc
Examining data/pdp-0.14.1+darcs20180201/debug/teststuff.c
Examining data/pdp-0.14.1+darcs20180201/include/pdp.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_ascii.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_base.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_bitmap.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_comm.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_compat.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_control.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_debug.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_dpd_base.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_dpd_command.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_image.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_imagebase.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_imageproc.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_internals.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_list.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_list_macros.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_llconv.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_matrix.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_mem.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_mmx.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_net.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_pd.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_png.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_post.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_queue.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_resample.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_symbol.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_type.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_types.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_xvideo.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_xwindow.h
Examining data/pdp-0.14.1+darcs20180201/include/pdp_packet.h
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_convert.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_del.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_description.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_inspect.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_loop.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_metro.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawin.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_reg.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_route.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_snap.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_trigger.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_udp_receive.c
Examining data/pdp-0.14.1+darcs20180201/modules/generic/pdp_udp_send.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_add.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_bq.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_cheby.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_constant.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_conv.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_gain.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_logic.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_mix.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_mul.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_noise.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_plasma.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_randmix.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_stateless.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_zoom.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_glx.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_sdl.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_v4l.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_xv.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_array.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_chrot.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_cog.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_grey2mask.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_histo.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_scale.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_scan.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_scanxy.c
Examining data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_scope.c
Examining data/pdp-0.14.1+darcs20180201/modules/matrix_basic/clusterstuff.c
Examining data/pdp-0.14.1+darcs20180201/modules/matrix_basic/pdp_mat_lu.c
Examining data/pdp-0.14.1+darcs20180201/modules/matrix_basic/pdp_mat_mul.c
Examining data/pdp-0.14.1+darcs20180201/modules/matrix_basic/pdp_mat_vec.c
Examining data/pdp-0.14.1+darcs20180201/modules/test/pdp_dpd_test.c
Examining data/pdp-0.14.1+darcs20180201/opengl/include/pdp_3dp_base.h
Examining data/pdp-0.14.1+darcs20180201/opengl/include/pdp_mesh.h
Examining data/pdp-0.14.1+darcs20180201/opengl/include/pdp_opengl.h
Examining data/pdp-0.14.1+darcs20180201/opengl/include/pdp_texture.h
Examining data/pdp-0.14.1+darcs20180201/opengl/include/pdp_3Dcontext.h
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_color.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_context.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_dlist.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_draw.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_drawmesh.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_for.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_light.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_push.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_snap.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_subcontext.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_view.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_state.c
Examining data/pdp-0.14.1+darcs20180201/opengl/modules/pdp_3d_windowcontext.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/pdp_3Dcontext_common.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/pdp_3Dcontext_glx.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/pdp_3dp_base.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/pdp_mesh.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/pdp_opengl.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c
Examining data/pdp-0.14.1+darcs20180201/opengl/system/setup.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_base.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_comm.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_compat.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_control.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_dpd_base.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_imagebase.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_queue.c
Examining data/pdp-0.14.1+darcs20180201/puredata/pdp_ut.c
Examining data/pdp-0.14.1+darcs20180201/scaf/include/pdp_ca.h
Examining data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c
Examining data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca_system.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_common.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_llconv.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_llconv_mmx.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_llconv_portable.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_resample.c
Examining data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_debug.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_dpd_command.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_list.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_mem.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet2.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_post.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_symbol.c
Examining data/pdp-0.14.1+darcs20180201/system/kernel/pdp_type.c
Examining data/pdp-0.14.1+darcs20180201/system/mmx/pdp_mmx_test.c
Examining data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c
Examining data/pdp-0.14.1+darcs20180201/system/png/pdp_png.c
Examining data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c
Examining data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c
Examining data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/3Dcontext.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/3Dcontext_common.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/3Dcontext_glx.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/config.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/glx.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/glx.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/pwc-ioctl.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/test.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/util.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/v4l.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/xv.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/xv.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/xwindow.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/zl.h
Examining data/pdp-0.14.1+darcs20180201/system/zl/v4l.c
Examining data/pdp-0.14.1+darcs20180201/system/zl/xwindow.c
Examining data/pdp-0.14.1+darcs20180201/system/zl_pd/zl_pd.h
Examining data/pdp-0.14.1+darcs20180201/system/pdp.c

FINAL RESULTS:

data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:128:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(me, "pdp_rawout: %s", x->x_pipe->s_name);
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c:483:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "rule_%s", c);
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c:617:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(commandline)) 
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_post.c:36:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_post.c:43:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_symbol.c:82: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(sym2->s_name, s);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:81:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(x->x_data_type, np->type);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:377: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(np->type, x->x_data_type);
data/pdp-0.14.1+darcs20180201/system/zl/config.h:15:21:  [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 ZL_LOG(...) fprintf(stderr, __VA_ARGS__)
data/pdp-0.14.1+darcs20180201/system/zl/config.h:30:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, msg, vl);
data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_noise.c:52:37:  [3] (random) random:
  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.
    if (seed == 0.0f) seed = (float)random();
data/pdp-0.14.1+darcs20180201/modules/image_basic/pdp_plasma.c:52:37:  [3] (random) random:
  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.
    if (seed == 0.0f) seed = (float)random();
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:982:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if(realpath(buf, realpath_buf))
data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_histo.c:132:15:  [3] (random) random:
  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.
	    int ri = random();
data/pdp-0.14.1+darcs20180201/modules/matrix_basic/clusterstuff.c:279:15:  [3] (random) random:
  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.
	    int ri = random();
data/pdp-0.14.1+darcs20180201/opengl/include/pdp_mesh.h:118:18:  [3] (random) random:
  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.
    long int r = random();
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_mesh.c:378:51:  [3] (random) random:
  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.
    t_triangle *t = pdp_list_index(m->triangles, (random() % size)).w_pointer;
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c:659:12:  [3] (random) random:
  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.
	data[i] = random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_common.c:168:16:  [3] (random) random:
  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.
  return (s16)(random()<<0);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_common.c:261:5:  [3] (random) srandom:
  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.
    srandom (((t_plasma *)x)->seed);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_common.c:272:29:  [3] (random) random:
  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.
    ((t_plasma *)x)->seed = random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:221:5:  [3] (random) srandom:
  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.
    srandom((u32)d[1]);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:225:12:  [3] (random) random:
  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.
	r = (s16)(random() & 0x7fff);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:863:5:  [3] (random) srandom:
  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.
    srandom((u32)seed);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:864:17:  [3] (random) random:
  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.
    d[0] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:865:17:  [3] (random) random:
  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.
    d[1] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:866:17:  [3] (random) random:
  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.
    d[2] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:867:17:  [3] (random) random:
  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.
    d[3] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:98:5:  [3] (random) srandom:
  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.
    srandom((u32)seed);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:99:17:  [3] (random) random:
  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.
    d[4] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:100:17:  [3] (random) random:
  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.
    d[5] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:101:17:  [3] (random) random:
  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.
    d[6] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:102:17:  [3] (random) random:
  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.
    d[7] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:351:5:  [3] (random) srandom:
  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.
    srandom((u32)seed);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:352:17:  [3] (random) random:
  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.
    d[0] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:353:17:  [3] (random) random:
  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.
    d[1] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:354:17:  [3] (random) random:
  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.
    d[2] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_mmx.c:355:17:  [3] (random) random:
  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.
    d[3] = (s16)random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c:128:5:  [3] (random) srandom:
  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.
    srandom((u32)d[1]);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c:133:12:  [3] (random) random:
  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.
	r = (s16)(random() & 0x7fff);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c:497:5:  [3] (random) srandom:
  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.
    srandom(d[0]);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c:505:5:  [3] (random) srandom:
  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.
    srandom(d[0]);
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c:507:6:  [3] (random) random:
  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.
	r = random();
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_portable.c:510:12:  [3] (random) random:
  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.
    d[0] = random();
data/pdp-0.14.1+darcs20180201/include/pdp_net.h:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char signature[4];                  /* must be "PDP" */;
data/pdp-0.14.1+darcs20180201/include/pdp_net.h:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[0];                       /* the packet type */
data/pdp-0.14.1+darcs20180201/include/pdp_net.h: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 x_buf[PDP_UDP_BUFSIZE];        //send buffer
data/pdp-0.14.1+darcs20180201/include/pdp_net.h:169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char x_buf[PDP_UDP_BUFSIZE];                                
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawin.c:283:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (-1 == (x->x_pipefd = open(x->x_pipe->s_name, O_RDONLY|O_NONBLOCK))){
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:127:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char me[1024];
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:140:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (-1 == (pipefd = open(x->x_pipe->s_name, O_WRONLY|O_NONBLOCK|O_APPEND))){
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:141:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (-1 == (pipefd = open(x->x_pipe->s_name, O_WRONLY|O_CREAT, 0600))){
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:476:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp_packet[1024];
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:477: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(temp_packet, "image/grey/256x%d", 8 * chans);
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_udp_receive.c:117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pdp_data, pdp_udp_receiver_data(x->x_receiver), size);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:801:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(out0, x->x_chunk[0][x->x_chunk_current] + x->x_chunk_pos, sizeof(float)*xfer_samples);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:802:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(out1, x->x_chunk[0][x->x_chunk_current] + x->x_chunk_pos, sizeof(float)*xfer_samples);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:805:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(out0, x->x_chunk[0][x->x_chunk_current] + x->x_chunk_pos, sizeof(float)*xfer_samples);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:806:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(out1, x->x_chunk[1][x->x_chunk_current] + x->x_chunk_pos, sizeof(float)*xfer_samples);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:978:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FILENAME_MAX];
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:979:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char realpath_buf[FILENAME_MAX];
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:981:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(buf, "/../lib/libquicktime1");
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_sdl.c:239:3:  [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(x->x_overlay->pixels[0], data, planesize); data += planesize;
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_sdl.c:240:3:  [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(x->x_overlay->pixels[1], data, planesize >> 2); data += (planesize >> 2);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_sdl.c:241:3:  [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(x->x_overlay->pixels[2], data, planesize >> 2);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_v4l.c:264: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(data, newimage, w * h *2);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_v4l.c:341:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c, nospace_card[strlen(card)+1];
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_xv.c:166: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(xv_data, data, size);
data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_grey2mask.c:67: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(newdata, data, size * sizeof(s16));
data/pdp-0.14.1+darcs20180201/modules/image_special/pdp_grey2mask.c: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(newdata+v_offset,  newdata+u_offset, (size>>2)*sizeof(s16));
data/pdp-0.14.1+darcs20180201/modules/matrix_basic/clusterstuff.c:172:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(x->x_cluster, c, size);
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char description[1024];
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:72:10:  [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.
    c += sprintf(c, "texture");
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:74:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case GL_LUMINANCE: c += sprintf(c, "/grey"); break;
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:75:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case GL_RGB:       c += sprintf(c, "/rgb"); break;
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:76:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case GL_RGBA:      c += sprintf(c, "/rgba"); break;
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:78:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	c += sprintf(c, "/unknown"); goto exit;
data/pdp-0.14.1+darcs20180201/opengl/system/pdp_texture.c:80:10:  [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.
    c += sprintf(c, "/%dx%d", width, height);
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c:478:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[256];
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c:606:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char commandline[TMPSIZE];
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca.c:607:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char library[TMPSIZE];
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca_system.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char description[1024];
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca_system.c:52:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	c += sprintf(c, "ca");
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca_system.c:54:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	case PDP_CA_STANDARD: c += sprintf(c, "/1bit2D"); break;
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca_system.c:56: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.
	    c += sprintf(c, "/unknown"); goto exit;
data/pdp-0.14.1+darcs20180201/scaf/pdp/pdp_ca_system.c:58:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	c += sprintf(c, "/%dx%d", 
data/pdp-0.14.1+darcs20180201/system/image/pdp_imageproc_gcc_mmx.c:180: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(image, image2, width * height * 2);
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_list.c:308:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char tmp[n+1];
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet.c:176:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_pool, pdp_pool, pdp_pool_size * sizeof(t_pdp *));
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet.c:475:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_header, header, PDP_HEADER_SIZE);
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet.c:507:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pdp_packet_data(new_handle),
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet2.c:173:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_pool, pdp_pool, pdp_pool_size * sizeof(t_pdp *));
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_packet2.c:458:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pdp_packet_data(new_handle),
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_type.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[strlen(type->s_name)+1];
data/pdp-0.14.1+darcs20180201/system/mmx/pdp_mmx_test.c:46:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char src[16]={1,2,3,4,5,6,7,8,-1,-2,-3,-4,-5,-6,-7,-8};
data/pdp-0.14.1+darcs20180201/system/mmx/pdp_mmx_test.c:47:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char dst[8];
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:22:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(header->signature, "PDP");
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:144:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy((char *)&x->x_resend_header, "PDP");
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:183: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(x->x_data + offset, x->x_buf, x->x_buf_size);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:412:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(x->x_buf, x->x_data + offset, current_chunk_size);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:525:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(x->x_chunk_list, x->x_resend_chunks, sizeof(unsigned int) * x->x_resend_items);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:584:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)&x->x_sa.sin_addr, (char *)hp->h_addr, hp->h_length);
data/pdp-0.14.1+darcs20180201/system/pdp.c:128: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 encoded[MAXPDSTRING];
data/pdp-0.14.1+darcs20180201/system/pdp.c:147: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[MAXPDSTRING];
data/pdp-0.14.1+darcs20180201/system/png/pdp_png.c:91:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char header[SIG_BYTES];
data/pdp-0.14.1+darcs20180201/system/png/pdp_png.c:94:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    x->x_fp = fopen(file, "r");
data/pdp-0.14.1+darcs20180201/system/png/pdp_png.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char header[SIG_BYTES];
data/pdp-0.14.1+darcs20180201/system/png/pdp_png.c:112:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    x->x_fp = fopen(file, "w");
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.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 description[1024];
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:67: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.
	    c += sprintf(c, "bitmap");
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:70:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_BITMAP_RGB: c += sprintf(c, "/rgb"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:71:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_BITMAP_RGBA: c += sprintf(c, "/rgba"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:72:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_BITMAP_GREY: c += sprintf(c, "/grey"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:73:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_BITMAP_YV12: c += sprintf(c, "/yv12"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:74:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_BITMAP_I420: c += sprintf(c, "/i420"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:76:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		c += sprintf(c, "/unknown"); goto exit;
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:78: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.
	    c += sprintf(c, "/%dx%d", 
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:493: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(out_d, in_d, plane);
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:497: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(out_d, in_d+plane, plane);
data/pdp-0.14.1+darcs20180201/system/type/pdp_bitmap.c:498: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(out_d+plane, in_d, plane);
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:219:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char description[1024];
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:227: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.
	    c += sprintf(c, "image");
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:230:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_IMAGE_YV12: c += sprintf(c, "/YCrCb"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:231:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_IMAGE_GREY: c += sprintf(c, "/grey"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:232:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_IMAGE_MCHP: c += sprintf(c, "/multi"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:234:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		c += sprintf(c, "/unknown"); goto exit;
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:237:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		c += sprintf(c, "/%dx%dx%d", 
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:243:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		c += sprintf(c, "/%dx%d", 
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:275: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(pdp_packet_data(p), pdp_packet_data(packet), 2*w*h);
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:291:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, pdp_packet_data(packet), y_bytes);
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:308:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, pdp_packet_data(packet), y_bytes);
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:333: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(newdata, data, plane_size<<1);
data/pdp-0.14.1+darcs20180201/system/type/pdp_image.c:372: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(newdata, data, plane_size<<1);
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:158: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(pdp_packet_data(p_LU), pdp_packet_data(p), sh_m->block.size); 
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char description[100];
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:304: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.
	    c += sprintf(c, "matrix");
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:307:40:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_MATRIX_TYPE_RFLOAT: c += sprintf(c, "/float/real"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:308:40:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_MATRIX_TYPE_CFLOAT: c += sprintf(c, "/float/complex"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:309:41:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_MATRIX_TYPE_RDOUBLE: c += sprintf(c, "/double/real"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:310:41:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    case PDP_MATRIX_TYPE_CDOUBLE: c += sprintf(c, "/double/complex"); break;
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:312:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		c += sprintf(c, "/unknown"); goto exit;
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:315: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.
	    c += sprintf(c, "/%dx%d", (int)m->rows, (int)m->columns);
data/pdp-0.14.1+darcs20180201/system/type/pdp_matrix.c:405:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst + PDP_HEADER_SIZE, src + PDP_HEADER_SIZE, src->size - PDP_HEADER_SIZE);
data/pdp-0.14.1+darcs20180201/system/zl/pwc-ioctl.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/pdp-0.14.1+darcs20180201/system/zl/test.c:40: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(image_buffer, video_data, image_buffer_size);
data/pdp-0.14.1+darcs20180201/system/zl/v4l.c:247:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((x->x_tvfd = open(name, O_RDWR)) < 0)
data/pdp-0.14.1+darcs20180201/system/zl/v4l.c:787:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((x->x_tvfd = open(name, O_RDWR)) < 0) {
data/pdp-0.14.1+darcs20180201/system/zl/v4l.h:75:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char *x_buf[ZL_V4L_MAX_BUFFERS];
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawin.c:180:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    int bytes = read(x->x_pipefd, data, left);
data/pdp-0.14.1+darcs20180201/modules/generic/pdp_rawout.c:162:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000.0f); // sleep before polling again
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_qt.c:980:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, sys_libdir->s_name, FILENAME_MAX - 20);
data/pdp-0.14.1+darcs20180201/modules/image_io/pdp_v4l.c:341: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).
    char c, nospace_card[strlen(card)+1];
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_list.c:309:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(tmp, chardef, n);
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_type.c:61:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char tmp[strlen(type->s_name)+1];
data/pdp-0.14.1+darcs20180201/system/kernel/pdp_type.c:66:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(tmp, lastname, n);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:80: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).
	x->x_data_type = pdp_alloc(1 + strlen(np->type));
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:323:27:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	if (!x->x_sleep_count++) usleep(x->x_sleepgrain_us);
data/pdp-0.14.1+darcs20180201/system/net/pdp_net.c:378: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).
    x->x_buf_size = sizeof(*np) + strlen(np->type) + 1;
data/pdp-0.14.1+darcs20180201/system/zl/glx.c:220:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (pos[strlen(extension)]==' ' || pos[strlen(extension)]=='\0');
data/pdp-0.14.1+darcs20180201/system/zl/glx.c:220:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (pos[strlen(extension)]==' ' || pos[strlen(extension)]=='\0');
data/pdp-0.14.1+darcs20180201/system/zl/util.h:30:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned int read;
data/pdp-0.14.1+darcs20180201/system/zl/util.h:161:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (x->write - x->read) & x->mask;
data/pdp-0.14.1+darcs20180201/system/zl/util.h:174:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int i = x->read;

ANALYSIS SUMMARY:

Hits = 163
Lines analyzed = 38416 in approximately 0.96 seconds (40019 lines/second)
Physical Source Lines of Code (SLOC) = 22433
Hits@level = [0]  70 [1]  15 [2] 104 [3]  34 [4]  10 [5]   0
Hits@level+ = [0+] 233 [1+] 163 [2+] 148 [3+]  44 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 10.3865 [1+] 7.26608 [2+] 6.59742 [3+] 1.9614 [4+] 0.445772 [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.