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/spice-0.14.3/tools/reds_stat.c
Examining data/spice-0.14.3/server/tests/test-websocket.c
Examining data/spice-0.14.3/server/tests/test-vdagent.c
Examining data/spice-0.14.3/server/tests/test-two-servers.c
Examining data/spice-0.14.3/server/tests/test-stream-device.c
Examining data/spice-0.14.3/server/tests/test-stream.c
Examining data/spice-0.14.3/server/tests/test-stat-file.c
Examining data/spice-0.14.3/server/tests/test-stat.c
Examining data/spice-0.14.3/server/tests/test-smartcard.c
Examining data/spice-0.14.3/server/tests/test-sasl.c
Examining data/spice-0.14.3/server/tests/test-record.c
Examining data/spice-0.14.3/server/tests/test-qxl-parsing.c
Examining data/spice-0.14.3/server/tests/test-playback.c
Examining data/spice-0.14.3/server/tests/test-options.c
Examining data/spice-0.14.3/server/tests/test-loop.c
Examining data/spice-0.14.3/server/tests/test-listen.c
Examining data/spice-0.14.3/server/tests/test-leaks.c
Examining data/spice-0.14.3/server/tests/test-gst.c
Examining data/spice-0.14.3/server/tests/test-fail-on-null-core-interface.c
Examining data/spice-0.14.3/server/tests/test-empty-success.c
Examining data/spice-0.14.3/server/tests/test-display-width-stride.c
Examining data/spice-0.14.3/server/tests/test-display-streaming.c
Examining data/spice-0.14.3/server/tests/test-display-resolution-changes.c
Examining data/spice-0.14.3/server/tests/test-display-no-ssl.c
Examining data/spice-0.14.3/server/tests/test-codecs-parsing.c
Examining data/spice-0.14.3/server/tests/test-channel.c
Examining data/spice-0.14.3/server/tests/test-agent-msg-filter.c
Examining data/spice-0.14.3/server/tests/replay.c
Examining data/spice-0.14.3/server/tests/vmc-emu.h
Examining data/spice-0.14.3/server/tests/vmc-emu.c
Examining data/spice-0.14.3/server/tests/win-alarm.h
Examining data/spice-0.14.3/server/tests/win-alarm.c
Examining data/spice-0.14.3/server/tests/test-glib-compat.h
Examining data/spice-0.14.3/server/tests/test-display-base.h
Examining data/spice-0.14.3/server/tests/test-display-base.c
Examining data/spice-0.14.3/server/tests/basic-event-loop.h
Examining data/spice-0.14.3/server/tests/basic-event-loop.c
Examining data/spice-0.14.3/server/tests/stat-test.c
Examining data/spice-0.14.3/server/glz-encode.tmpl.c
Examining data/spice-0.14.3/server/glz-encode-match.tmpl.c
Examining data/spice-0.14.3/server/cache-item.tmpl.c
Examining data/spice-0.14.3/server/spice-bitmap-utils.tmpl.c
Examining data/spice-0.14.3/server/gstreamer-encoder.c
Examining data/spice-0.14.3/server/smartcard-channel-client.h
Examining data/spice-0.14.3/server/smartcard-channel-client.c
Examining data/spice-0.14.3/server/smartcard.h
Examining data/spice-0.14.3/server/smartcard.c
Examining data/spice-0.14.3/server/lz4-encoder.h
Examining data/spice-0.14.3/server/lz4-encoder.c
Examining data/spice-0.14.3/server/zlib-encoder.h
Examining data/spice-0.14.3/server/zlib-encoder.c
Examining data/spice-0.14.3/server/websocket.h
Examining data/spice-0.14.3/server/websocket.c
Examining data/spice-0.14.3/server/video-stream.h
Examining data/spice-0.14.3/server/video-stream.c
Examining data/spice-0.14.3/server/video-encoder.h
Examining data/spice-0.14.3/server/utils.h
Examining data/spice-0.14.3/server/utils.c
Examining data/spice-0.14.3/server/tree.h
Examining data/spice-0.14.3/server/tree.c
Examining data/spice-0.14.3/server/sw-canvas.c
Examining data/spice-0.14.3/server/red-stream-device.h
Examining data/spice-0.14.3/server/red-stream-device.c
Examining data/spice-0.14.3/server/sys-socket.c
Examining data/spice-0.14.3/server/sys-socket.h
Examining data/spice-0.14.3/server/stream-channel.h
Examining data/spice-0.14.3/server/stream-channel.c
Examining data/spice-0.14.3/server/stat.h
Examining data/spice-0.14.3/server/stat-file.h
Examining data/spice-0.14.3/server/stat-file.c
Examining data/spice-0.14.3/server/spicevmc.c
Examining data/spice-0.14.3/server/spice-bitmap-utils.h
Examining data/spice-0.14.3/server/spice-bitmap-utils.c
Examining data/spice-0.14.3/server/sound.h
Examining data/spice-0.14.3/server/sound.c
Examining data/spice-0.14.3/server/red-worker.h
Examining data/spice-0.14.3/server/red-worker.c
Examining data/spice-0.14.3/server/red-stream.h
Examining data/spice-0.14.3/server/red-stream.c
Examining data/spice-0.14.3/server/reds-private.h
Examining data/spice-0.14.3/server/reds.h
Examining data/spice-0.14.3/server/reds.c
Examining data/spice-0.14.3/server/red-replay-qxl.c
Examining data/spice-0.14.3/server/red-record-qxl.h
Examining data/spice-0.14.3/server/red-record-qxl.c
Examining data/spice-0.14.3/server/red-qxl.h
Examining data/spice-0.14.3/server/red-qxl.c
Examining data/spice-0.14.3/server/red-pipe-item.h
Examining data/spice-0.14.3/server/red-pipe-item.c
Examining data/spice-0.14.3/server/red-parse-qxl.h
Examining data/spice-0.14.3/server/red-parse-qxl.c
Examining data/spice-0.14.3/server/red-common.h
Examining data/spice-0.14.3/server/red-client.h
Examining data/spice-0.14.3/server/red-client.c
Examining data/spice-0.14.3/server/red-channel.h
Examining data/spice-0.14.3/server/red-channel-client.h
Examining data/spice-0.14.3/server/red-channel-client.c
Examining data/spice-0.14.3/server/red-channel-capabilities.h
Examining data/spice-0.14.3/server/red-channel-capabilities.c
Examining data/spice-0.14.3/server/red-channel.c
Examining data/spice-0.14.3/server/pixmap-cache.h
Examining data/spice-0.14.3/server/pixmap-cache.c
Examining data/spice-0.14.3/server/net-utils.h
Examining data/spice-0.14.3/server/net-utils.c
Examining data/spice-0.14.3/server/mjpeg-encoder.c
Examining data/spice-0.14.3/server/migration-protocol.h
Examining data/spice-0.14.3/server/memslot.h
Examining data/spice-0.14.3/server/memslot.c
Examining data/spice-0.14.3/server/main-dispatcher.h
Examining data/spice-0.14.3/server/main-dispatcher.c
Examining data/spice-0.14.3/server/main-channel.h
Examining data/spice-0.14.3/server/main-channel-client.h
Examining data/spice-0.14.3/server/main-channel-client.c
Examining data/spice-0.14.3/server/main-channel.c
Examining data/spice-0.14.3/server/jpeg-encoder.h
Examining data/spice-0.14.3/server/jpeg-encoder.c
Examining data/spice-0.14.3/server/inputs-channel.h
Examining data/spice-0.14.3/server/inputs-channel-client.h
Examining data/spice-0.14.3/server/inputs-channel-client.c
Examining data/spice-0.14.3/server/inputs-channel.c
Examining data/spice-0.14.3/server/image-encoders.h
Examining data/spice-0.14.3/server/image-encoders.c
Examining data/spice-0.14.3/server/image-cache.h
Examining data/spice-0.14.3/server/image-cache.c
Examining data/spice-0.14.3/server/glz-encoder-priv.h
Examining data/spice-0.14.3/server/glz-encoder.h
Examining data/spice-0.14.3/server/glz-encoder-dict.h
Examining data/spice-0.14.3/server/glz-encoder-dict.c
Examining data/spice-0.14.3/server/glz-encoder.c
Examining data/spice-0.14.3/server/event-loop.c
Examining data/spice-0.14.3/server/display-limits.h
Examining data/spice-0.14.3/server/display-channel-private.h
Examining data/spice-0.14.3/server/display-channel.h
Examining data/spice-0.14.3/server/display-channel.c
Examining data/spice-0.14.3/server/dispatcher.h
Examining data/spice-0.14.3/server/dispatcher.c
Examining data/spice-0.14.3/server/dcc-send.c
Examining data/spice-0.14.3/server/dcc-private.h
Examining data/spice-0.14.3/server/dcc.h
Examining data/spice-0.14.3/server/dcc.c
Examining data/spice-0.14.3/server/cursor-channel.h
Examining data/spice-0.14.3/server/cursor-channel-client.h
Examining data/spice-0.14.3/server/cursor-channel-client.c
Examining data/spice-0.14.3/server/cursor-channel.c
Examining data/spice-0.14.3/server/common-graphics-channel.h
Examining data/spice-0.14.3/server/common-graphics-channel.c
Examining data/spice-0.14.3/server/char-device.h
Examining data/spice-0.14.3/server/char-device.c
Examining data/spice-0.14.3/server/cache-item.h
Examining data/spice-0.14.3/server/agent-msg-filter.h
Examining data/spice-0.14.3/server/agent-msg-filter.c
Examining data/spice-0.14.3/server/spice-server-enums.c
Examining data/spice-0.14.3/server/spice-server-enums.h
Examining data/spice-0.14.3/server/spice.h
Examining data/spice-0.14.3/server/spice-replay.h
Examining data/spice-0.14.3/server/spice-version.h
Examining data/spice-0.14.3/server/spice-server.h
Examining data/spice-0.14.3/server/spice-qxl.h
Examining data/spice-0.14.3/server/spice-migration.h
Examining data/spice-0.14.3/server/spice-input.h
Examining data/spice-0.14.3/server/spice-core.h
Examining data/spice-0.14.3/server/spice-char.h
Examining data/spice-0.14.3/server/spice-audio.h
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-ssl-verify.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-region.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-quic.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-marshallers.h
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-marshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/generated_test_enums.h
Examining data/spice-0.14.3/subprojects/spice-common/tests/generated_test_demarshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/generated_test_marshallers.h
Examining data/spice-0.14.3/subprojects/spice-common/tests/generated_test_marshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-logging.c
Examining data/spice-0.14.3/subprojects/spice-common/tests/test-dummy-recorder.c
Examining data/spice-0.14.3/subprojects/spice-common/common/lz_decompress_tmpl.c
Examining data/spice-0.14.3/subprojects/spice-common/common/lz_compress_tmpl.c
Examining data/spice-0.14.3/subprojects/spice-common/common/canvas_base.h
Examining data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_messages.h
Examining data/spice-0.14.3/subprojects/spice-common/common/sw_canvas.h
Examining data/spice-0.14.3/subprojects/spice-common/common/sw_canvas.c
Examining data/spice-0.14.3/subprojects/spice-common/common/agent_interface.h
Examining data/spice-0.14.3/subprojects/spice-common/common/agent_interface.c
Examining data/spice-0.14.3/subprojects/spice-common/common/recorder.h
Examining data/spice-0.14.3/subprojects/spice-common/common/verify.h
Examining data/spice-0.14.3/subprojects/spice-common/common/utils.h
Examining data/spice-0.14.3/subprojects/spice-common/common/utils.c
Examining data/spice-0.14.3/subprojects/spice-common/common/snd_codec.h
Examining data/spice-0.14.3/subprojects/spice-common/common/snd_codec.c
Examining data/spice-0.14.3/subprojects/spice-common/common/rop3.h
Examining data/spice-0.14.3/subprojects/spice-common/common/rop3.c
Examining data/spice-0.14.3/subprojects/spice-common/common/ring.h
Examining data/spice-0.14.3/subprojects/spice-common/common/region.h
Examining data/spice-0.14.3/subprojects/spice-common/common/region.c
Examining data/spice-0.14.3/subprojects/spice-common/common/rect.h
Examining data/spice-0.14.3/subprojects/spice-common/common/quic_config.h
Examining data/spice-0.14.3/subprojects/spice-common/common/quic.h
Examining data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.h
Examining data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c
Examining data/spice-0.14.3/subprojects/spice-common/common/messages.h
Examining data/spice-0.14.3/subprojects/spice-common/common/mem.h
Examining data/spice-0.14.3/subprojects/spice-common/common/mem.c
Examining data/spice-0.14.3/subprojects/spice-common/common/marshaller.h
Examining data/spice-0.14.3/subprojects/spice-common/common/marshaller.c
Examining data/spice-0.14.3/subprojects/spice-common/common/macros.h
Examining data/spice-0.14.3/subprojects/spice-common/common/lz_config.h
Examining data/spice-0.14.3/subprojects/spice-common/common/lz_common.h
Examining data/spice-0.14.3/subprojects/spice-common/common/lz.h
Examining data/spice-0.14.3/subprojects/spice-common/common/lz.c
Examining data/spice-0.14.3/subprojects/spice-common/common/log.h
Examining data/spice-0.14.3/subprojects/spice-common/common/log.c
Examining data/spice-0.14.3/subprojects/spice-common/common/lines.h
Examining data/spice-0.14.3/subprojects/spice-common/common/lines.c
Examining data/spice-0.14.3/subprojects/spice-common/common/draw.h
Examining data/spice-0.14.3/subprojects/spice-common/common/demarshallers.h
Examining data/spice-0.14.3/subprojects/spice-common/common/canvas_utils.h
Examining data/spice-0.14.3/subprojects/spice-common/common/canvas_utils.c
Examining data/spice-0.14.3/subprojects/spice-common/common/backtrace.h
Examining data/spice-0.14.3/subprojects/spice-common/common/backtrace.c
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_server_marshallers.h
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_server_marshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_server_demarshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_client_marshallers.h
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_client_marshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c
Examining data/spice-0.14.3/subprojects/spice-common/common/ssl_verify.h
Examining data/spice-0.14.3/subprojects/spice-common/common/ssl_verify.c
Examining data/spice-0.14.3/subprojects/spice-common/common/client_marshallers.h
Examining data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder_ring.h
Examining data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder_ring.c
Examining data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.h
Examining data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c
Examining data/spice-0.14.3/subprojects/spice-common/common/quic.c
Examining data/spice-0.14.3/subprojects/spice-common/common/quic_tmpl.c
Examining data/spice-0.14.3/subprojects/spice-common/common/quic_family_tmpl.c

FINAL RESULTS:

data/spice-0.14.3/server/image-encoders.c:97:5:  [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.
    vsnprintf(message_buf, sizeof(message_buf), fmt, ap);
data/spice-0.14.3/server/image-encoders.c:112:5:  [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.
    vsnprintf(message_buf, sizeof(message_buf), fmt, ap);
data/spice-0.14.3/server/image-encoders.c:126:5:  [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.
    vsnprintf(message_buf, sizeof(message_buf), fmt, ap);
data/spice-0.14.3/server/image-encoders.c:142:5:  [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.
    vsnprintf(message_buf, sizeof(message_buf), fmt, ap);
data/spice-0.14.3/server/image-encoders.c:154:5:  [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.
    vsnprintf(message_buf, sizeof(message_buf), fmt, ap);
data/spice-0.14.3/server/image-encoders.c:166:5:  [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.
    vsnprintf(message_buf, sizeof(message_buf), fmt, ap);
data/spice-0.14.3/server/red-replay-qxl.c:69:23:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
__attribute__((format(scanf, 2, 3)))
data/spice-0.14.3/server/red-replay-qxl.c:85:11:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    ret = vfscanf(replay->fd, fmt, ap);
data/spice-0.14.3/server/red-stream-device.c:250: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((char *) error->msg, error_msg);
data/spice-0.14.3/server/red-stream.c:1009:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(quoted_mechname, ",%s,", auth->mechname);
data/spice-0.14.3/server/reds.c:2792: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(buf, pass);
data/spice-0.14.3/server/spice-bitmap-utils.c:257:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(file_str, "%s/%u.bmp", RAM_PATH, id);
data/spice-0.14.3/server/tests/test-record.c:45:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    g_assert_cmpint(access(fn, F_OK), <, 0);
data/spice-0.14.3/server/tests/test-record.c:52:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    g_assert_cmpint(access(fn, F_OK), ==, 0);
data/spice-0.14.3/server/tests/test-record.c:67:13:  [4] (shell) popen:
  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.
        f = popen("gzip -dc < " OUTPUT_FILENAME, "r");
data/spice-0.14.3/server/tests/test-stat-file.c:42:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    g_assert(access(filename, R_OK));
data/spice-0.14.3/server/tests/test-stat-file.c:86:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    g_assert_cmpint(access(filename, F_OK),==,-1);
data/spice-0.14.3/server/tests/test-stream-device.c:422: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((char*)p, address);
data/spice-0.14.3/server/tree.c:138: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(item_prefix, 0);
data/spice-0.14.3/server/websocket.c:730:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(outbuf, "HTTP/1.1 101 Switching Protocols\r\n"
data/spice-0.14.3/subprojects/spice-common/common/agent_interface.c:382: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(dest, entry->format, args);
data/spice-0.14.3/subprojects/spice-common/common/agent_interface.h:371:60:  [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 RECORD_X(Name, Format, ...)   RECORD_TOO_MANY_ARGS(printf(Format, __VA_ARGS__))
data/spice-0.14.3/subprojects/spice-common/common/backtrace.c:84:9:  [4] (shell) execle:
  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.
        execle(GSTACK_PATH, "gstack", parent, NULL, NULL);
data/spice-0.14.3/subprojects/spice-common/common/backtrace.c:126:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(GSTACK_PATH, X_OK)) {
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1773:5:  [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.
    vsnprintf(usr_data->message_buf, sizeof(usr_data->message_buf), fmt, ap);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1785:5:  [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.
    vsnprintf(usr_data->message_buf, sizeof(usr_data->message_buf), fmt, ap);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1805:5:  [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.
    vsnprintf(usr_data->message_buf, sizeof(usr_data->message_buf), fmt, ap);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1816:5:  [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.
    vsnprintf(usr_data->message_buf, sizeof(usr_data->message_buf), fmt, ap);
data/spice-0.14.3/subprojects/spice-common/common/macros.h:28:27:  [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.
    __attribute__((format(printf,a,b)))
data/spice-0.14.3/subprojects/spice-common/common/recorder.h:66:53:  [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.
        if (sizeof((spice_recorder_ ## rec).dummy)) printf(format, ##__VA_ARGS__); \
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:716:28:  [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.
                    dst += snprintf(dst, dst_end - dst,
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:720:28:  [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.
                    dst += snprintf(dst, dst_end - dst,
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:724:28:  [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.
                    dst += snprintf(dst, dst_end - dst,
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:737:28:  [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.
                    dst += snprintf(dst, dst_end - dst,
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:741:28:  [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.
                    dst += snprintf(dst, dst_end - dst,
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:745:28:  [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.
                    dst += snprintf(dst, dst_end - dst,
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:819:11:  [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/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:819:21:  [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/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:838:5:  [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.
    snprintf(dst, dst_end >= dst ? dst_end - dst : 0,  __VA_ARGS__)
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2235:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(chan_name, "%s/%s", rec->name, name);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.h:549:60:  [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 RECORD_X(Name, Format, ...)   RECORD_TOO_MANY_ARGS(printf(Format, __VA_ARGS__))
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.h:698:65:  [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 RECORD_FAST_X(Name, Format, ...)   RECORD_TOO_MANY_ARGS(printf(Format, __VA_ARGS__))
data/spice-0.14.3/tools/reds_stat.c:112:5:  [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.
    snprintf(shm_name, shm_name_len, SPICE_STAT_SHM_NAME, kvm_pid);
data/spice-0.14.3/tools/reds_stat.c:139:13:  [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("clear") != 0) {
data/spice-0.14.3/server/red-record-qxl.c:846:14:  [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.
    filter = getenv("SPICE_WORKER_RECORD_FILTER");
data/spice-0.14.3/server/reds.c:3537:36:  [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.
    reds->allow_multiple_clients = getenv(SPICE_DEBUG_ALLOW_MC_ENV) != NULL;
data/spice-0.14.3/server/reds.c:3602:23:  [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.
    record_filename = getenv("SPICE_WORKER_RECORD_FILENAME");
data/spice-0.14.3/server/tests/test-display-base.c:993:19:  [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 ((val = getopt_long(argc, argv, "", options, &option_index)) != -1) {
data/spice-0.14.3/server/tests/test-display-streaming.c:244: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/spice-0.14.3/server/video-stream.c:625:24:  [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.
    env_bit_rate_str = getenv("SPICE_BIT_RATE");
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1972:24:  [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.
    recorder_trace_set(getenv("RECORDER_TRACES"));
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1973:24:  [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.
    recorder_trace_set(getenv("RECORDER_TWEAKS"));
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1975:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *dump_pattern = getenv("RECORDER_DUMP");
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2136:26:  [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.
    const char *result = getenv("RECORDER_SHARE");
data/spice-0.14.3/subprojects/spice-common/tests/test-quic.c:194:26:  [3] (random) g_random_boolean:
  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.
    gboolean has_alpha = g_random_boolean();
data/spice-0.14.3/subprojects/spice-common/tests/test-quic.c:195:18:  [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.
    gint width = g_random_int_range(100, 2000);
data/spice-0.14.3/subprojects/spice-common/tests/test-quic.c:196:19:  [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.
    gint height = g_random_int_range(100, 2000);
data/spice-0.14.3/subprojects/spice-common/tests/test-quic.c:204:21:  [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.
        pixels[i] = g_random_int_range(0, 256);
data/spice-0.14.3/server/char-device.c:967: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(dev->priv->cur_write_buf->buf,
data/spice-0.14.3/server/display-channel.c:200: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(mc->heads, heads, nheads * sizeof(QXLHead));
data/spice-0.14.3/server/glz-encoder-dict.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(new_segs, dict->window.segs,
data/spice-0.14.3/server/gstreamer-encoder.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 format[8];
data/spice-0.14.3/server/gstreamer-encoder.c:1266:10:  [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, src, MIN(stream_stride, bitmap->stride));
data/spice-0.14.3/server/gstreamer-encoder.c:1297: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(dst, src, thislen);
data/spice-0.14.3/server/image-encoders.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message_buf[ENCODER_MESSAGE_SIZE];
data/spice-0.14.3/server/image-encoders.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 message_buf[ENCODER_MESSAGE_SIZE];
data/spice-0.14.3/server/image-encoders.c:123: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 message_buf[ENCODER_MESSAGE_SIZE];
data/spice-0.14.3/server/image-encoders.c:139: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 message_buf[ENCODER_MESSAGE_SIZE];
data/spice-0.14.3/server/image-encoders.c:151:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message_buf[ENCODER_MESSAGE_SIZE];
data/spice-0.14.3/server/image-encoders.c:163: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 message_buf[ENCODER_MESSAGE_SIZE];
data/spice-0.14.3/server/lz4-encoder.c:95: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(out_buf, compressed_lines + already_copied, num_io_bytes);
data/spice-0.14.3/server/lz4-encoder.c:107: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(out_buf, compressed_lines + already_copied, enc_size);
data/spice-0.14.3/server/main-channel-client.c:383: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(&item->msg.name, name, item->msg.name_len);
data/spice-0.14.3/server/red-parse-qxl.c:106: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(ptr, chunk->data, copy);
data/spice-0.14.3/server/red-parse-qxl.c:776: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_transform, t, sizeof(*dst_transform));
data/spice-0.14.3/server/red-parse-qxl.c:849: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(red->attr.style, buf, style_nseg * sizeof(QXLFIXED));
data/spice-0.14.3/server/red-parse-qxl.c:948: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(glyph->data, start->data, glyph_size);
data/spice-0.14.3/server/red-qxl.c:56: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 device_address[MAX_DEVICE_ADDRESS_LEN];
data/spice-0.14.3/server/red-record-qxl.c:841:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(filename, "wb+");
data/spice-0.14.3/server/red-replay-qxl.c:222:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char template[1024];
data/spice-0.14.3/server/red-replay-qxl.c:361: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 template[1024];
data/spice-0.14.3/server/red-stream-device.c:331: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(dev->device_display_info.device_address,
data/spice-0.14.3/server/red-stream-device.c:595: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(&hdr[1], start, msg_size);
data/spice-0.14.3/server/red-stream-device.h:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char device_address[MAX_DEVICE_ADDRESS_LEN];
data/spice-0.14.3/server/red-stream.c:361: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 data[CMSG_SPACE(fd_size)];
data/spice-0.14.3/server/red-stream.c:384: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(CMSG_DATA(cmsg), &fd, fd_size);
data/spice-0.14.3/server/red-stream.c:742: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, decoded, n);
data/spice-0.14.3/server/red-stream.c:751:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[NI_MAXHOST];
data/spice-0.14.3/server/red-stream.c:752: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 serv[NI_MAXSERV];
data/spice-0.14.3/server/red-stream.c:1008: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 quoted_mechname[SASL_MAX_MECHNAME_LEN + 4];
data/spice-0.14.3/server/red-worker.c:1073: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 worker_str[SPICE_STAT_NODE_NAME_MAX];
data/spice-0.14.3/server/reds-private.h:35: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 password[SPICE_MAX_PASSWORD_LENGTH];
data/spice-0.14.3/server/reds-private.h:65: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 keyfile_password[256];
data/spice-0.14.3/server/reds-private.h:66: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 certs_file[256];
data/spice-0.14.3/server/reds-private.h:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char private_key_file[256];
data/spice-0.14.3/server/reds-private.h:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ca_certificate_file[256];
data/spice-0.14.3/server/reds-private.h: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 dh_key_file[256];
data/spice-0.14.3/server/reds-private.h:70: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 ciphersuite[256];
data/spice-0.14.3/server/reds.c:118: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 spice_addr[256];
data/spice-0.14.3/server/reds.c:938: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(&internal_buf->u.graphics_device_info, info, len_info);
data/spice-0.14.3/server/reds.c:1464: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(agent_dev->priv->current_read_buf->data,
data/spice-0.14.3/server/reds.c:2583: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 port[33];
data/spice-0.14.3/server/reds.c:2640: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 uaddr[INET6_ADDRSTRLEN+1];
data/spice-0.14.3/server/reds.c:2641: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 uport[33];
data/spice-0.14.3/server/smartcard-channel-client.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(scc->priv->write_buf->buf, message, size);
data/spice-0.14.3/server/smartcard.c:506: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(dev->priv->buf, read_data, mig_data->read_size);
data/spice-0.14.3/server/sound.c:321: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(record_client->samples + write_pos, data, now << 2);
data/spice-0.14.3/server/sound.c:324: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(record_client->samples, data + now, size << 2);
data/spice-0.14.3/server/sound.c:1231: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(samples, &record_client->samples[read_pos], now * 4);
data/spice-0.14.3/server/sound.c:1233: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(samples + now, record_client->samples, (len - now) * 4);
data/spice-0.14.3/server/spice-bitmap-utils.c:177:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char zeroes[4] = { 0 };
data/spice-0.14.3/server/spice-bitmap-utils.c:194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file_str[200];
data/spice-0.14.3/server/spice-bitmap-utils.c:259:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(file_str, "wb");
data/spice-0.14.3/server/stream-channel.c:601: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(item->data.data, data, size);
data/spice-0.14.3/server/tests/replay.c:398:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = fopen(file[0], "rb");
data/spice-0.14.3/server/tests/test-channel.c:200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/spice-0.14.3/server/tests/test-channel.c:220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/spice-0.14.3/server/tests/test-display-base.c:209: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(cmd_clip + 1, clip_rects, cmd_clip->chunk.data_size);
data/spice-0.14.3/server/tests/test-gst.c:403: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_report = fopen(file_report_name, "w");
data/spice-0.14.3/server/tests/test-gst.c:461: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 coords[4][32];
data/spice-0.14.3/server/tests/test-gst.c:462: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 clipping_type_sign[2];
data/spice-0.14.3/server/tests/test-record.c:65:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(fn, "rb");
data/spice-0.14.3/server/tests/test-record.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 line[1024];
data/spice-0.14.3/server/tests/test-sasl.c:427:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char long_mechname[128];
data/spice-0.14.3/server/tests/test-sasl.c:519: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[300];
data/spice-0.14.3/server/tests/test-smartcard.c:121: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 data[6];
data/spice-0.14.3/server/tests/test-smartcard.c:129: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(msg.data, "hello");
data/spice-0.14.3/server/tests/test-smartcard.c:231: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(p, "\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x06" "foobaz", 18);
data/spice-0.14.3/server/tests/test-smartcard.c:233: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(p, "\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x06" "foobar", 18);
data/spice-0.14.3/server/tests/test-smartcard.c:299: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(p, "\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x04\x0a\x0b\x0c\x0d", 16);
data/spice-0.14.3/server/tests/test-smartcard.c:334: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, "\x00\x00\x00\x01\x0a\x0b\x0c\x0d\x00\x00\x00\x00", 12);
data/spice-0.14.3/server/tests/test-stat-file.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[20];
data/spice-0.14.3/server/tests/test-stat-file.c:46: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(name, "node %d", i);
data/spice-0.14.3/server/tests/test-stat-file.c:61: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(name, "node %d", (i * 17 + 5) % 10);
data/spice-0.14.3/server/tests/test-stat-file.c:76: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(name, "counter %d", i);
data/spice-0.14.3/server/tests/test-stream-device.c:49: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, &hdr, sizeof(hdr));
data/spice-0.14.3/server/tests/test-stream-device.c: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(p, &fmt, sizeof(fmt));
data/spice-0.14.3/server/tests/test-stream-device.c:311: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, "hello", 5);
data/spice-0.14.3/server/tests/test-stream-device.c:420: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, &info, sizeof(info));
data/spice-0.14.3/server/tests/test-stream.c:54: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 control[CMSG_SPACE(sizeof (int))];
data/spice-0.14.3/server/tests/test-stream.c:86: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(fd, CMSG_DATA(cmsg), sizeof(*fd));
data/spice-0.14.3/server/tests/test-vdagent.c:75: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, &message[pos], ret);
data/spice-0.14.3/server/tests/test-websocket.c:212:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/spice-0.14.3/server/tests/vmc-emu.c:32: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(vmc->write_buf+vmc->write_pos, buf, copy);
data/spice-0.14.3/server/tests/vmc-emu.c:53: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, &vmc->message[vmc->pos], ret);
data/spice-0.14.3/server/tree.c:132: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 indent_str[max_indent + 1];
data/spice-0.14.3/server/utils.c:123: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 error_str[256];
data/spice-0.14.3/server/websocket.c:303: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(frame->mask, frame->header + used, 4);
data/spice-0.14.3/server/websocket.c:686: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[2];
data/spice-0.14.3/server/websocket.c:741: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 rbuf[4096];
data/spice-0.14.3/server/websocket.c:743: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(rbuf, buf, len);
data/spice-0.14.3/server/websocket.c:772: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 outbuf[1024];
data/spice-0.14.3/subprojects/spice-common/common/agent_interface.c:151:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char msg_in[128];
data/spice-0.14.3/subprojects/spice-common/common/agent_interface.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 dummy[0];
data/spice-0.14.3/subprojects/spice-common/common/backtrace.c:76: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 parent[16];
data/spice-0.14.3/subprojects/spice-common/common/backtrace.c:88: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 btline[256];
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.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 message_buf[512];
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:121: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 message_buf[512];
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:451: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 file_str[200];
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:455: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(file_str, "c:\\tmp\\spice_dump\\%u.jpg", id);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:457: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(file_str, "/tmp/spice_dump/%u.jpg", id);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:460: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).
    FILE *f = fopen(file_str, "wb");
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:933: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 file_str[200];
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:937: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(file_str, "c:\\tmp\\spice_dump\\%u.%ubpp", id, bitmap->format);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:939: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(file_str, "/tmp/spice_dump/%u.%ubpp", id, bitmap->format);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:941: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).
    FILE *f = fopen(file_str, "wb");
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1017: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 file_str[200];
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1031: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(file_str, "c:\\tmp\\spice_dump\\%d\\%u.ppm", cache, id);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1033: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(file_str, "/tmp/spice_dump/%u.ppm", id);
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1035: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).
    FILE *f = fopen(file_str, "wb");
data/spice-0.14.3/subprojects/spice-common/common/canvas_base.c:1454:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest_line, src_line, line_size);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:514: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->message, in, message__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:574: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(end, in, this_ptr_info->nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:1193: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->name, in, name__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:1239: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->uuid, in, uuid__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:2051: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->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:5062: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(out2->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:5095: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(out2->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:5128: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(out2->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:5909: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->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_client_demarshallers.c:7394: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->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/generated_messages.h:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy[0];
data/spice-0.14.3/subprojects/spice-common/common/generated_messages.h:210: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 dummy[0];
data/spice-0.14.3/subprojects/spice-common/common/generated_server_demarshallers.c:1493: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->data, in, data__nelements);
data/spice-0.14.3/subprojects/spice-common/common/marshaller.c:259: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(m->items, m->static_items, sizeof(MarshallerItem) * m->n_items);
data/spice-0.14.3/subprojects/spice-common/common/marshaller.c:381: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(ptr, data, size);
data/spice-0.14.3/subprojects/spice-common/common/marshaller.c:487: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(p, item->data + skip_bytes, item->len - skip_bytes);
data/spice-0.14.3/subprojects/spice-common/common/mem.c: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(copy, str, len);
data/spice-0.14.3/subprojects/spice-common/common/mem.c:81: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(copy, mem, n_bytes);
data/spice-0.14.3/subprojects/spice-common/common/mem.c:225: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(p, chunks->chunk[i].data,
data/spice-0.14.3/subprojects/spice-common/common/mem.c:276: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(buffer->buffer + buffer->offset, data, len);
data/spice-0.14.3/subprojects/spice-common/common/mem.c:283: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(dest, buffer->buffer, len);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:620: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(byte_line, src_line, byte_width);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:850: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(dest, src, width * bpp);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:864: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(dest, src, width * bpp);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1074: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(dest, src, width * 4);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1084: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(dest, src, width);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1123: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(dest, src, width * 2);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1153: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(local_ents, ents, n_ents*4);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1199: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(local_ents, ents, n_ents*4);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1245: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(local_ents, ents, n_ents*4);
data/spice-0.14.3/subprojects/spice-common/common/pixman_utils.c:1295: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(local_ents, ents, n_ents*4);
data/spice-0.14.3/subprojects/spice-common/common/recorder.h:44: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 dummy[0];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:554:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:555: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 format_buffer[32];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:833:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1066: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            commands_buffer[RECORDER_CMD_LEN];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1167:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(file, O_RDWR|O_CREAT|O_TRUNC, (mode_t) 0600);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1331: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(base + name_offs, name, name_len + 1);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1332: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(base + descr_offs, description, descr_len + 1);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1333: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(base + unit_offs, unit, unit_len + 1);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1447:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(file, O_RDWR);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[RECORDER_CMD_LEN];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2265:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            buffer[128];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2296:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buffer, param, len);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2302:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(alloc, param, len);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2322:21:  [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(buffer, param, len);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2328:21:  [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(alloc, param, len);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2420:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                static char     error[128];
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2494: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).
                FILE *f = fopen(value_ptr, mode);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder_ring.c:201: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(ptr, data + idx * item_size, byte_count);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder_ring.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 + idx * item_size, ptr, byte_count);
data/spice-0.14.3/subprojects/spice-common/common/ssl_verify.c:430: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[256];
data/spice-0.14.3/subprojects/spice-common/common/sw_canvas.c:1158: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(dest, src, (area->right - area->left) * bpp);
data/spice-0.14.3/subprojects/spice-common/tests/generated_test_demarshallers.c:323: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->name, in, name__nelements);
data/spice-0.14.3/subprojects/spice-common/tests/generated_test_demarshallers.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->data, in, data__nelements);
data/spice-0.14.3/tools/reds_stat.c:76:19:  [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).
            pid = atoi(p+1);
data/spice-0.14.3/tools/reds_stat.c:98:19:  [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).
        kvm_pid = atoi(argv[1]);
data/spice-0.14.3/server/dcc.c:559:9:  [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(DISPLAY_CLIENT_RETRY_INTERVAL);
data/spice-0.14.3/server/display-channel.c:1495:9:  [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(DISPLAY_CLIENT_RETRY_INTERVAL);
data/spice-0.14.3/server/main-channel-client.c:379:64:  [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).
    RedNamePipeItem *item = g_malloc(sizeof(RedNamePipeItem) + strlen(name) + 1);
data/spice-0.14.3/server/main-channel-client.c:382: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).
    item->msg.name_len = strlen(name) + 1;
data/spice-0.14.3/server/main-channel-client.c:843: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).
    notify.message_len = strlen(item->msg);
data/spice-0.14.3/server/main-channel-client.c:854:27:  [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).
    dst_info->host_size = strlen(mig_dst->host) + 1;
data/spice-0.14.3/server/main-channel-client.c:857: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).
        dst_info->cert_subject_size = strlen(mig_dst->cert_subject) + 1;
data/spice-0.14.3/server/main-channel-client.c:913:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    migrate.host_size = strlen(mig_target->host) + 1;
data/spice-0.14.3/server/main-channel-client.c:916: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).
        migrate.cert_subject_size = strlen(mig_target->cert_subject) + 1;
data/spice-0.14.3/server/red-channel-client.c:1808:9:  [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(CHANNEL_BLOCKED_SLEEP_DURATION);
data/spice-0.14.3/server/red-channel-client.c:1839:9:  [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(CHANNEL_BLOCKED_SLEEP_DURATION);
data/spice-0.14.3/server/red-channel.c:685:9:  [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(CHANNEL_BLOCKED_SLEEP_DURATION);
data/spice-0.14.3/server/red-qxl.c:817: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).
    const size_t device_address_len = strlen(device_address) + 1;
data/spice-0.14.3/server/red-record-qxl.c:680: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).
    write_binary(fd, "message", strlen((char*)qxl->data), (uint8_t*)qxl->data);
data/spice-0.14.3/server/red-stream-device.c:110:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (sif->read(sin, buf, sizeof(buf)) > 0) {
data/spice-0.14.3/server/red-stream-device.c:133:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = sif->read(sin, (uint8_t *) &dev->hdr + dev->hdr_pos, sizeof(dev->hdr) - dev->hdr_pos);
data/spice-0.14.3/server/red-stream-device.c:237:51:  [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 msg_size = sizeof(StreamMsgNotifyError) + strlen(error_msg) + 1;
data/spice-0.14.3/server/red-stream-device.c:268:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = sif->read(sin, dev->msg->buf + dev->msg_pos, sizeof(StreamMsgFormat) - dev->msg_pos);
data/spice-0.14.3/server/red-stream-device.c:301:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t n = sif->read(sin, dev->msg->buf + dev->msg_pos, dev->hdr.size - dev->msg_pos);
data/spice-0.14.3/server/red-stream-device.c:366:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = sif->read(sin, dev->msg->buf + dev->msg_pos, dev->hdr.size - dev->msg_pos);
data/spice-0.14.3/server/red-stream-device.c:415:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = sif->read(sin, dev->msg->buf + dev->msg_pos, dev->hdr.size - dev->msg_pos);
data/spice-0.14.3/server/red-stream-device.c:523:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = sif->read(sin, dev->msg->buf + dev->msg_pos, dev->hdr.size - dev->msg_pos);
data/spice-0.14.3/server/red-stream-device.c:546:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = sif->read(sin, dev->msg->buf + dev->msg_pos, dev->hdr.size - dev->msg_pos);
data/spice-0.14.3/server/red-stream.c:100:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t (*read)(RedStream *s, void *buf, size_t nbyte);
data/spice-0.14.3/server/red-stream.c:232:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = s->priv->read(s, buf, nbyte);
data/spice-0.14.3/server/red-stream.c:722:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = s->priv->read(s, encoded, sizeof(encoded));
data/spice-0.14.3/server/red-stream.c:1133: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).
    mechlistlen = strlen(mechlist);
data/spice-0.14.3/server/red-stream.c:1196:74:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                     (websocket_read_cb_t) stream->priv->read,
data/spice-0.14.3/server/red-worker.c:306:17:  [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(DISPLAY_CLIENT_RETRY_INTERVAL);
data/spice-0.14.3/server/reds.c:801:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = sif->read(reds->vdagent, dev->priv->receive_pos, dev->priv->receive_len);
data/spice-0.14.3/server/reds.c:825:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = sif->read(reds->vdagent, dev->priv->receive_pos, dev->priv->receive_len);
data/spice-0.14.3/server/reds.c:879: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).
            size_t device_address_len = strlen(info->device_address) + 1;
data/spice-0.14.3/server/reds.c:2156: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(reds->config->taTicket.password) == 0) {
data/spice-0.14.3/server/reds.c:2618: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).
    rc = getaddrinfo(strlen(addr) ? addr : NULL, port, &ai, &res);
data/spice-0.14.3/server/reds.c:2788:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (size < strlen(pass) + 1) {
data/spice-0.14.3/server/reds.c:2793: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).
    return (strlen(pass));
data/spice-0.14.3/server/reds.c:2916: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(reds->config->ssl_parameters.dh_key_file) > 0) {
data/spice-0.14.3/server/reds.c:2923: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(reds->config->ssl_parameters.ciphersuite) > 0) {
data/spice-0.14.3/server/reds.c:4006: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(passwd) > SPICE_MAX_PASSWORD_LENGTH)
data/spice-0.14.3/server/smartcard.c:143:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int n = sif->read(sin, dev->priv->buf_pos, dev->priv->buf_size - dev->priv->buf_used);
data/spice-0.14.3/server/spice-char.h:70:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read)(SpiceCharDeviceInstance *sin, uint8_t *buf, int len);
data/spice-0.14.3/server/spicevmc.c:356:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = sif->read(sin, msg_item->buf,
data/spice-0.14.3/server/spicevmc.c:677: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).
    init.name_size = strlen(i->name) + 1;
data/spice-0.14.3/server/stat-file.c:147: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).
    spice_assert(name && strlen(name) > 0);
data/spice-0.14.3/server/stat-file.c:148: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(name) >= sizeof(node->name)) {
data/spice-0.14.3/server/sys-socket.h:27:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define socket_read(sock, buf, len) read(sock, buf, len)
data/spice-0.14.3/server/tests/stat-test.c:60:5:  [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(2000);
data/spice-0.14.3/server/tests/stat-test.c:74:5:  [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(2000);
data/spice-0.14.3/server/tests/stat-test.c:76:5:  [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);
data/spice-0.14.3/server/tests/test-display-base.c:527:9:  [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);
data/spice-0.14.3/server/tests/test-sasl.c:87:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *serveroutlen = strlen(big_data);
data/spice-0.14.3/server/tests/test-sasl.c:93:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *serveroutlen = strlen(normal_data);
data/spice-0.14.3/server/tests/test-sasl.c:339:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            l = read(fd, (char *) buf + byte_count, len - byte_count);
data/spice-0.14.3/server/tests/test-sasl.c:597:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data->mechlen = strlen(data->mechname);
data/spice-0.14.3/server/tests/test-stream.c:90:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size = read(sock, buf, bufsize);
data/spice-0.14.3/server/tree.c:145: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).
        indent_str_len = MIN(max_indent, strlen(item_prefix) + di->level * 2);
data/spice-0.14.3/server/websocket.c:147:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return s + strlen(needle);
data/spice-0.14.3/server/websocket.c:229:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            g_checksum_update(checksum, (uint8_t *) k, strlen(k));
data/spice-0.14.3/server/websocket.c:230:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            g_checksum_update(checksum, (uint8_t *) WEBSOCKET_GUID, strlen(WEBSOCKET_GUID));
data/spice-0.14.3/server/websocket.c:775: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).
    rc = write_cb(stream, outbuf, strlen(outbuf));
data/spice-0.14.3/server/websocket.c:776: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 (rc != strlen(outbuf)) {
data/spice-0.14.3/subprojects/spice-common/common/agent_interface.c:87:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(socket, &enable, sizeof(enable)) != sizeof(enable)) {
data/spice-0.14.3/subprojects/spice-common/common/agent_interface.c:157:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nbytes = read(socket, msg_in + len, 1);
data/spice-0.14.3/subprojects/spice-common/common/backtrace.c:96:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bytesread = read(pipefd[0], btline, sizeof(btline) - 1);
data/spice-0.14.3/subprojects/spice-common/common/macros.h:43:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    __pragma(section(".CRT$XCU",read)) \
data/spice-0.14.3/subprojects/spice-common/common/macros.h:49:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    __pragma(section(".CRT$XPU",read)) \
data/spice-0.14.3/subprojects/spice-common/common/mem.c:52:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str) + 1;
data/spice-0.14.3/subprojects/spice-common/common/mem.c:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(copy, str, n_bytes);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1278:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t             name_len    = strlen(name);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1279:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t             descr_len   = strlen(description);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1280:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t             unit_len    = strlen(unit);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:1569: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).
    size_t           len   = strlen(message);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2234:32:  [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).
            chan_name = malloc(strlen(rec->name) + strlen(name) + 2);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2234:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            chan_name = malloc(strlen(rec->name) + strlen(name) + 2);
data/spice-0.14.3/subprojects/spice-common/common/recorder/recorder.c:2310: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).
            len = strlen(param);
data/spice-0.14.3/subprojects/spice-common/common/region.c:516: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).
               (int)strlen(prefix), "",
data/spice-0.14.3/subprojects/spice-common/common/ssl_verify.c:292:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    key = (char*)alloca(strlen(subject)+1);
data/spice-0.14.3/tools/reds_stat.c:49:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            printf(":%*s%"PRIu64" (%"PRIu64")\n", (int) ((VALUE_TABS - depth) * TAB_LEN - strlen(node->name) - 1), "",
data/spice-0.14.3/tools/reds_stat.c:107:20:  [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).
    shm_name_len = strlen(SPICE_STAT_SHM_NAME) + 64;

ANALYSIS SUMMARY:

Hits = 307
Lines analyzed = 99080 in approximately 2.04 seconds (48612 lines/second)
Physical Source Lines of Code (SLOC) = 74621
Hits@level = [0] 210 [1]  79 [2] 170 [3]  14 [4]  44 [5]   0
Hits@level+ = [0+] 517 [1+] 307 [2+] 228 [3+]  58 [4+]  44 [5+]   0
Hits/KSLOC@level+ = [0+] 6.92834 [1+] 4.11412 [2+] 3.05544 [3+] 0.777261 [4+] 0.589646 [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.