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/guacamole-server-0.9.9/tests/protocol/suite.c
Examining data/guacamole-server-0.9.9/tests/protocol/instruction_read.c
Examining data/guacamole-server-0.9.9/tests/protocol/base64_decode.c
Examining data/guacamole-server-0.9.9/tests/protocol/nest_write.c
Examining data/guacamole-server-0.9.9/tests/protocol/instruction_write.c
Examining data/guacamole-server-0.9.9/tests/protocol/instruction_parse.c
Examining data/guacamole-server-0.9.9/tests/protocol/suite.h
Examining data/guacamole-server-0.9.9/tests/common/guac_string.c
Examining data/guacamole-server-0.9.9/tests/common/guac_rect.c
Examining data/guacamole-server-0.9.9/tests/common/guac_iconv.c
Examining data/guacamole-server-0.9.9/tests/common/common_suite.c
Examining data/guacamole-server-0.9.9/tests/common/common_suite.h
Examining data/guacamole-server-0.9.9/tests/client/client_suite.h
Examining data/guacamole-server-0.9.9/tests/client/layer_pool.c
Examining data/guacamole-server-0.9.9/tests/client/buffer_pool.c
Examining data/guacamole-server-0.9.9/tests/client/client_suite.c
Examining data/guacamole-server-0.9.9/tests/test_libguac.c
Examining data/guacamole-server-0.9.9/tests/util/util_suite.h
Examining data/guacamole-server-0.9.9/tests/util/util_suite.c
Examining data/guacamole-server-0.9.9/tests/util/guac_unicode.c
Examining data/guacamole-server-0.9.9/tests/util/guac_pool.c
Examining data/guacamole-server-0.9.9/src/terminal/cursor.c
Examining data/guacamole-server-0.9.9/src/terminal/char_mappings.c
Examining data/guacamole-server-0.9.9/src/terminal/ibar.c
Examining data/guacamole-server-0.9.9/src/terminal/common.h
Examining data/guacamole-server-0.9.9/src/terminal/terminal.h
Examining data/guacamole-server-0.9.9/src/terminal/blank.c
Examining data/guacamole-server-0.9.9/src/terminal/ibar.h
Examining data/guacamole-server-0.9.9/src/terminal/packet.h
Examining data/guacamole-server-0.9.9/src/terminal/packet.c
Examining data/guacamole-server-0.9.9/src/terminal/terminal.c
Examining data/guacamole-server-0.9.9/src/terminal/char_mappings.h
Examining data/guacamole-server-0.9.9/src/terminal/terminal_handlers.c
Examining data/guacamole-server-0.9.9/src/terminal/blank.h
Examining data/guacamole-server-0.9.9/src/terminal/scrollbar.h
Examining data/guacamole-server-0.9.9/src/terminal/types.h
Examining data/guacamole-server-0.9.9/src/terminal/common.c
Examining data/guacamole-server-0.9.9/src/terminal/display.c
Examining data/guacamole-server-0.9.9/src/terminal/pointer.h
Examining data/guacamole-server-0.9.9/src/terminal/buffer.c
Examining data/guacamole-server-0.9.9/src/terminal/pointer.c
Examining data/guacamole-server-0.9.9/src/terminal/display.h
Examining data/guacamole-server-0.9.9/src/terminal/terminal_handlers.h
Examining data/guacamole-server-0.9.9/src/terminal/buffer.h
Examining data/guacamole-server-0.9.9/src/terminal/scrollbar.c
Examining data/guacamole-server-0.9.9/src/terminal/cursor.h
Examining data/guacamole-server-0.9.9/src/protocols/telnet/clipboard.c
Examining data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c
Examining data/guacamole-server-0.9.9/src/protocols/telnet/clipboard.h
Examining data/guacamole-server-0.9.9/src/protocols/telnet/guac_handlers.h
Examining data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.h
Examining data/guacamole-server-0.9.9/src/protocols/telnet/client.h
Examining data/guacamole-server-0.9.9/src/protocols/telnet/client.c
Examining data/guacamole-server-0.9.9/src/protocols/telnet/guac_handlers.c
Examining data/guacamole-server-0.9.9/src/protocols/vnc/clipboard.c
Examining data/guacamole-server-0.9.9/src/protocols/vnc/sftp.c
Examining data/guacamole-server-0.9.9/src/protocols/vnc/sftp.h
Examining data/guacamole-server-0.9.9/src/protocols/vnc/pulse.h
Examining data/guacamole-server-0.9.9/src/protocols/vnc/clipboard.h
Examining data/guacamole-server-0.9.9/src/protocols/vnc/guac_handlers.h
Examining data/guacamole-server-0.9.9/src/protocols/vnc/pulse.c
Examining data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.c
Examining data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.h
Examining data/guacamole-server-0.9.9/src/protocols/vnc/client.h
Examining data/guacamole-server-0.9.9/src/protocols/vnc/client.c
Examining data/guacamole-server-0.9.9/src/protocols/vnc/guac_handlers.c
Examining data/guacamole-server-0.9.9/src/protocols/ssh/clipboard.c
Examining data/guacamole-server-0.9.9/src/protocols/ssh/ssh_client.h
Examining data/guacamole-server-0.9.9/src/protocols/ssh/sftp.c
Examining data/guacamole-server-0.9.9/src/protocols/ssh/sftp.h
Examining data/guacamole-server-0.9.9/src/protocols/ssh/ssh_agent.h
Examining data/guacamole-server-0.9.9/src/protocols/ssh/clipboard.h
Examining data/guacamole-server-0.9.9/src/protocols/ssh/guac_handlers.h
Examining data/guacamole-server-0.9.9/src/protocols/ssh/client.h
Examining data/guacamole-server-0.9.9/src/protocols/ssh/client.c
Examining data/guacamole-server-0.9.9/src/protocols/ssh/guac_handlers.c
Examining data/guacamole-server-0.9.9/src/protocols/ssh/ssh_agent.c
Examining data/guacamole-server-0.9.9/src/protocols/ssh/ssh_client.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_status.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_gdi.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_keymap.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/resolution.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_pointer.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_cliprdr.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_svc.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_messages.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_vol_info.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_file_info.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_service.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_dir_info.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_vol_info.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_file_info.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_service.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_messages.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_service.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_dir_info.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_service.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/resolution.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/compat/winpr-stream.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/compat/winpr-stream.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/compat/client-cliprdr.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/compat/winpr-wtypes.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/compat/rail.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/sftp.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_svc/svc_service.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_svc/svc_service.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/sftp.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_glyph.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_rail.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_settings.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_rail.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_bitmap.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_gdi.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_cliprdr.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_handlers.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_glyph.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_color.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/unicode.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_disp.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/client.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_pointer.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/client.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_svc.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/guac_handlers.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_color.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/_generated_keymaps.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_settings.c
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_bitmap.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/unicode.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_keymap.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.h
Examining data/guacamole-server-0.9.9/src/protocols/rdp/rdp_disp.c
Examining data/guacamole-server-0.9.9/src/libguac/instruction.c
Examining data/guacamole-server-0.9.9/src/libguac/protocol.c
Examining data/guacamole-server-0.9.9/src/libguac/pool.c
Examining data/guacamole-server-0.9.9/src/libguac/audio.c
Examining data/guacamole-server-0.9.9/src/libguac/client-handlers.h
Examining data/guacamole-server-0.9.9/src/libguac/encode-webp.c
Examining data/guacamole-server-0.9.9/src/libguac/hash.c
Examining data/guacamole-server-0.9.9/src/libguac/palette.c
Examining data/guacamole-server-0.9.9/src/libguac/timestamp.c
Examining data/guacamole-server-0.9.9/src/libguac/encode-jpeg.c
Examining data/guacamole-server-0.9.9/src/libguac/plugin.c
Examining data/guacamole-server-0.9.9/src/libguac/socket.c
Examining data/guacamole-server-0.9.9/src/libguac/raw_encoder.c
Examining data/guacamole-server-0.9.9/src/libguac/socket-nest.c
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/timestamp.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/pool.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/socket-constants.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/layer.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/stream.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/object-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/error.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/audio.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/protocol.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/instruction-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/stream-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/timestamp-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/client-constants.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/instruction.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/error-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/protocol-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/instruction-constants.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/socket-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/object.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/hash.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/socket-fntypes.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/client.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/plugin.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/plugin-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/plugin-constants.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/layer-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/audio-fntypes.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/audio-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/client-fntypes.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/pool-types.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/unicode.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/socket.h
Examining data/guacamole-server-0.9.9/src/libguac/guacamole/client-types.h
Examining data/guacamole-server-0.9.9/src/libguac/encode-png.c
Examining data/guacamole-server-0.9.9/src/libguac/socket-fd.c
Examining data/guacamole-server-0.9.9/src/libguac/encode-jpeg.h
Examining data/guacamole-server-0.9.9/src/libguac/palette.h
Examining data/guacamole-server-0.9.9/src/libguac/unicode.c
Examining data/guacamole-server-0.9.9/src/libguac/client-handlers.c
Examining data/guacamole-server-0.9.9/src/libguac/client.c
Examining data/guacamole-server-0.9.9/src/libguac/raw_encoder.h
Examining data/guacamole-server-0.9.9/src/libguac/encode-png.h
Examining data/guacamole-server-0.9.9/src/libguac/error.c
Examining data/guacamole-server-0.9.9/src/libguac/encode-webp.h
Examining data/guacamole-server-0.9.9/src/common/guac_string.h
Examining data/guacamole-server-0.9.9/src/common/guac_string.c
Examining data/guacamole-server-0.9.9/src/common/guac_rect.c
Examining data/guacamole-server-0.9.9/src/common/guac_clipboard.h
Examining data/guacamole-server-0.9.9/src/common/guac_pointer_cursor.h
Examining data/guacamole-server-0.9.9/src/common/guac_io.h
Examining data/guacamole-server-0.9.9/src/common/guac_clipboard.c
Examining data/guacamole-server-0.9.9/src/common/guac_surface.c
Examining data/guacamole-server-0.9.9/src/common/guac_json.c
Examining data/guacamole-server-0.9.9/src/common/guac_iconv.c
Examining data/guacamole-server-0.9.9/src/common/guac_io.c
Examining data/guacamole-server-0.9.9/src/common/guac_dot_cursor.c
Examining data/guacamole-server-0.9.9/src/common/guac_dot_cursor.h
Examining data/guacamole-server-0.9.9/src/common/guac_list.h
Examining data/guacamole-server-0.9.9/src/common/guac_pointer_cursor.c
Examining data/guacamole-server-0.9.9/src/common/guac_surface.h
Examining data/guacamole-server-0.9.9/src/common/guac_iconv.h
Examining data/guacamole-server-0.9.9/src/common/guac_json.h
Examining data/guacamole-server-0.9.9/src/common/guac_rect.h
Examining data/guacamole-server-0.9.9/src/common/guac_list.c
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_user.c
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh.h
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_buffer.c
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_buffer.h
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh.c
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.h
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_key.h
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_user.h
Examining data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_key.c
Examining data/guacamole-server-0.9.9/src/guacd/daemon.c
Examining data/guacamole-server-0.9.9/src/guacd/conf-args.h
Examining data/guacamole-server-0.9.9/src/guacd/conf-parse.h
Examining data/guacamole-server-0.9.9/src/guacd/conf-args.c
Examining data/guacamole-server-0.9.9/src/guacd/socket-ssl.c
Examining data/guacamole-server-0.9.9/src/guacd/log.c
Examining data/guacamole-server-0.9.9/src/guacd/log.h
Examining data/guacamole-server-0.9.9/src/guacd/client-map.h
Examining data/guacamole-server-0.9.9/src/guacd/conf-file.h
Examining data/guacamole-server-0.9.9/src/guacd/socket-ssl.h
Examining data/guacamole-server-0.9.9/src/guacd/conf-file.c
Examining data/guacamole-server-0.9.9/src/guacd/conf-parse.c
Examining data/guacamole-server-0.9.9/src/guacd/client-map.c
Examining data/guacamole-server-0.9.9/src/guacd/client.h
Examining data/guacamole-server-0.9.9/src/guacd/client.c

FINAL RESULTS:

data/guacamole-server-0.9.9/src/libguac/plugin.c:54:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    strncat(protocol_lib, protocol, GUAC_PROTOCOL_NAME_LIMIT-1);
data/guacamole-server-0.9.9/src/guacd/log.c:49: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, sizeof(message), format, args);
data/guacamole-server-0.9.9/src/guacd/log.c:89:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, GUACD_LOG_NAME "[%i]: %s:\t%s\n",
data/guacamole-server-0.9.9/src/libguac/plugin.c:55:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(protocol_lib, GUAC_PROTOCOL_LIBRARY_SUFFIX);
data/guacamole-server-0.9.9/src/libguac/protocol.c:59: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(buffer, sizeof(buffer), "%"PRIi64, i);
data/guacamole-server-0.9.9/src/libguac/protocol.c:541: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, sizeof(message), format, args);
data/guacamole-server-0.9.9/src/libguac/socket.c:253: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(buffer, sizeof(buffer), "%"PRIi64, i);
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.c:149:13:  [4] (shell) execvp:
  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 (execvp(guac_rdpdr_pdf_filter_command[0], guac_rdpdr_pdf_filter_command) < 0)
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:170:13:  [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.
        int access, int file_attributes, int create_disposition,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:186:29:  [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.
            __func__, path, access, file_attributes,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:210:9:  [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 & ACCESS_GENERIC_ALL)
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:212:15:  [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.
    else if ((access & ( ACCESS_GENERIC_WRITE
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:215:15:  [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.
          && (access & (ACCESS_GENERIC_READ  | ACCESS_FILE_READ_DATA)))
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:217: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.
    else if (access & ( ACCESS_GENERIC_WRITE
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.h:356:13:  [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.
        int access, int file_attributes, int create_disposition,
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:155: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(client_data->hostname,  argv[IDX_HOSTNAME]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:156: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(client_data->username,  argv[IDX_USERNAME]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:157: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(client_data->password,  argv[IDX_PASSWORD]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:160: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(client_data->key_base64,     argv[IDX_PRIVATE_KEY]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:161: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(client_data->key_passphrase, argv[IDX_PASSPHRASE]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:165:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->font_name, argv[IDX_FONT_NAME]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:167:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->font_name, GUAC_SSH_DEFAULT_FONT_NAME );
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:184:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->port, argv[IDX_PORT]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:186:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->port, GUAC_SSH_DEFAULT_PORT);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:160: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(client_data->hostname,  argv[IDX_HOSTNAME]);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:161: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(client_data->username,  argv[IDX_USERNAME]);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:162: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(client_data->password,  argv[IDX_PASSWORD]);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:192:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->port, argv[IDX_PORT]);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:194:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->port, GUAC_TELNET_DEFAULT_PORT);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:198:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->font_name, argv[IDX_FONT_NAME]);
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:200:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(client_data->font_name, GUAC_TELNET_DEFAULT_FONT_NAME );
data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.c:328: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, sizeof(message), format, args);
data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.c:343: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, sizeof(message), format, args);
data/guacamole-server-0.9.9/src/terminal/terminal.c:543:15:  [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.
    written = vsnprintf(buffer, sizeof(buffer)-1, format, ap);
data/guacamole-server-0.9.9/src/terminal/terminal.c:1658:15:  [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.
    written = vsnprintf(buffer, sizeof(buffer)-1, format, ap);
data/guacamole-server-0.9.9/src/guacd/conf-args.c:38:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "l:b:p:L:C:K:f")) != -1) {
data/guacamole-server-0.9.9/src/protocols/rdp/client.c:590:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom(time(NULL));
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_messages.c:159:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        client_id = random() & 0xFFFF;
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:284:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullpath[GUAC_COMMON_SSH_SFTP_MAX_PATH];
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:371: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 buffer[4096];
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:463: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(sftp_data->upload_path, path, length);
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:495:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[GUAC_COMMON_SSH_SFTP_MAX_PATH];
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:518: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 absolute_path[GUAC_COMMON_SSH_SFTP_MAX_PATH];
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.h:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char upload_path[GUAC_COMMON_SSH_SFTP_MAX_PATH];
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.h:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char directory_name[GUAC_COMMON_SSH_SFTP_MAX_PATH];
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh.c:386:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connected_address[1024];
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh.c:387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connected_port[64];
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_buffer.c:56:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*buffer, data, length);
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_buffer.c:87: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, bn_buffer, length);
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_key.c:140: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(key->private_key, data, length);
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_key.c:172: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 digest[EVP_MAX_MD_SIZE];
data/guacamole-server-0.9.9/src/common/guac_clipboard.c:107: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(clipboard->buffer + clipboard->length, data, length);
data/guacamole-server-0.9.9/src/common/guac_clipboard.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 mimetype[256];
data/guacamole-server-0.9.9/src/common/guac_json.c:74: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(json_state->buffer + json_state->size,
data/guacamole-server-0.9.9/src/common/guac_json.h:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/guacamole-server-0.9.9/src/common/guac_string.c:75: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(token, token_start, length);
data/guacamole-server-0.9.9/src/guacd/conf-file.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/guacamole-server-0.9.9/src/guacd/conf-file.c:193: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(GUACD_CONF_FILE, O_RDONLY);
data/guacamole-server-0.9.9/src/guacd/conf-parse.c:53:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char __guacd_current_section[GUACD_CONF_MAX_NAME_LENGTH + 1] = "";
data/guacamole-server-0.9.9/src/guacd/conf-parse.c:126: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(name, name_start, chars_read);
data/guacamole-server-0.9.9/src/guacd/conf-parse.c:173:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(value, value_start, chars_read);
data/guacamole-server-0.9.9/src/guacd/conf-parse.c:260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char param_name[GUACD_CONF_MAX_NAME_LENGTH + 1];
data/guacamole-server-0.9.9/src/guacd/conf-parse.c:261:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char param_value[GUACD_CONF_MAX_VALUE_LENGTH + 1];
data/guacamole-server-0.9.9/src/guacd/daemon.c:249:35:  [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).
    client->info.optimal_width  = atoi(size->argv[0]);
data/guacamole-server-0.9.9/src/guacd/daemon.c:250:35:  [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).
    client->info.optimal_height = atoi(size->argv[1]);
data/guacamole-server-0.9.9/src/guacd/daemon.c:254:43:  [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).
        client->info.optimal_resolution = atoi(size->argv[2]);
data/guacamole-server-0.9.9/src/guacd/daemon.c:405:18:  [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 new_fd = open(GUACD_DEV_NULL, flags);
data/guacamole-server-0.9.9/src/guacd/daemon.c:483:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bound_address[1024];
data/guacamole-server-0.9.9/src/guacd/daemon.c:484:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bound_port[64];
data/guacamole-server-0.9.9/src/guacd/daemon.c:637:22:  [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* pidf = fopen(config->pidfile, "w");
data/guacamole-server-0.9.9/src/guacd/log.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2048];
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:91:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[0]), /* x */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:92:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[1]), /* y */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:93:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[2])  /* mask */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:102:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[0]), /* keysym */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:103:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[1])  /* pressed */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:170:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:194:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[0]), /* width */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:195:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(instruction->argv[1])  /* height */
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:203:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:226:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:251:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:264:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                atoi(instruction->argv[2]));
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:269:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                atoi(instruction->argv[2]));
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:276:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:305:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:330:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int object_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:360:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int object_index = atoi(instruction->argv[0]);
data/guacamole-server-0.9.9/src/libguac/client-handlers.c:371:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int stream_index = atoi(instruction->argv[1]);
data/guacamole-server-0.9.9/src/libguac/encode-jpeg.c:65: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 buffer[6048];
data/guacamole-server-0.9.9/src/libguac/encode-png.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[6048];
data/guacamole-server-0.9.9/src/libguac/encode-png.c:126: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(write_state->buffer + write_state->buffer_size,
data/guacamole-server-0.9.9/src/libguac/encode-webp.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[6048];
data/guacamole-server-0.9.9/src/libguac/encode-webp.c:155: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(writer->buffer + writer->buffer_size,
data/guacamole-server-0.9.9/src/libguac/guacamole/socket.h:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char __out_buf[GUAC_SOCKET_OUTPUT_BUFFER_SIZE];
data/guacamole-server-0.9.9/src/libguac/guacamole/socket.h:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char __instructionbuf[32768];
data/guacamole-server-0.9.9/src/libguac/plugin.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char protocol_lib[GUAC_PROTOCOL_LIBRARY_LIMIT] =
data/guacamole-server-0.9.9/src/libguac/protocol.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/guacamole-server-0.9.9/src/libguac/protocol.c: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 buffer[128];
data/guacamole-server-0.9.9/src/libguac/protocol.c:540:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/guacamole-server-0.9.9/src/libguac/raw_encoder.c:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mimetype[256];
data/guacamole-server-0.9.9/src/libguac/raw_encoder.c:98: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(state->buffer + state->written, pcm_data, chunk_size);
data/guacamole-server-0.9.9/src/libguac/socket-nest.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[GUAC_SOCKET_NEST_BUFFER_SIZE];
data/guacamole-server-0.9.9/src/libguac/socket.c:39:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char __guac_socket_BASE64_CHARACTERS[64] = {
data/guacamole-server-0.9.9/src/libguac/socket.c:252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/guacamole-server-0.9.9/src/protocols/rdp/client.c:660:26:  [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).
        settings->port = atoi(argv[IDX_PORT]);
data/guacamole-server-0.9.9/src/protocols/rdp/client.c:671:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        settings->resolution = atoi(argv[IDX_DPI]);
data/guacamole-server-0.9.9/src/protocols/rdp/client.c:679:27:  [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).
        settings->width = atoi(argv[IDX_WIDTH]);
data/guacamole-server-0.9.9/src/protocols/rdp/client.c:698:28:  [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).
        settings->height = atoi(argv[IDX_HEIGHT]);
data/guacamole-server-0.9.9/src/protocols/rdp/client.c:770:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        settings->color_depth = atoi(argv[IDX_COLOR_DEPTH]);
data/guacamole-server-0.9.9/src/protocols/rdp/client.c:785:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int preconnection_id = atoi(argv[IDX_PRECONNECTION_ID]);
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c:451: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 entry_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_dir_info.c:50: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 utf16_entry_name[256];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_dir_info.c:96: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 utf16_entry_name[256];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_dir_info.c:143: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 utf16_entry_name[256];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_dir_info.c:194: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 utf16_entry_name[256];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages_file_info.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char destination_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[8192];
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.c:203: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 filename[1024] = "guacamole-print.pdf";
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.c:231:17:  [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(&(filename[j]), ".pdf");
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_service.c:60: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(rdpdr->plugin.channel_def.name, "rdpdr");
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c:298: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, rdpsnd->initial_wave_data, 4);
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c:51: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(rdpsnd->plugin.channel_def.name, "rdpsnd");
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.h:102: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 initial_wave_data[4];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_cliprdr.c:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char received_data[GUAC_RDP_CLIPBOARD_MAX_LENGTH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:173:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char real_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:174:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char normalized_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:304:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(real_path, flags, S_IRUSR | S_IWUSR);
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:310: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).
        fd = open(real_path, flags, S_IRUSR | S_IWUSR);
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:421:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char real_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:422:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char normalized_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:579:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path_component_data[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:659:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char combined_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.h:232:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dir_pattern[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_gdi.c:352: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(clrconv->palette->entries, palette->entries,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.c:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.c:319: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 buffer[4096];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.c:381: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 absolute_path[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.h:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char directory_name[GUAC_RDP_FS_MAX_PATH];
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_svc.h: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 name[GUAC_RDP_SVC_MAX_LENGTH+1];
data/guacamole-server-0.9.9/src/protocols/ssh/client.c:171:34:  [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).
        client_data->font_size = atoi(argv[IDX_FONT_SIZE]);
data/guacamole-server-0.9.9/src/protocols/ssh/client.h:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostname[1024];
data/guacamole-server-0.9.9/src/protocols/ssh/client.h:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port[64];
data/guacamole-server-0.9.9/src/protocols/ssh/client.h:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char username[1024];
data/guacamole-server-0.9.9/src/protocols/ssh/client.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 password[1024];
data/guacamole-server-0.9.9/src/protocols/ssh/client.h:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_base64[4096];
data/guacamole-server-0.9.9/src/protocols/ssh/client.h:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_passphrase[1024];
data/guacamole-server-0.9.9/src/protocols/ssh/client.h:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char font_name[1024];
data/guacamole-server-0.9.9/src/protocols/ssh/ssh_agent.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 sig[4096];
data/guacamole-server-0.9.9/src/protocols/ssh/ssh_agent.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/guacamole-server-0.9.9/src/protocols/ssh/ssh_agent.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/guacamole-server-0.9.9/src/protocols/ssh/ssh_agent.h:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/guacamole-server-0.9.9/src/protocols/ssh/ssh_client.c:159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/guacamole-server-0.9.9/src/protocols/ssh/ssh_client.c:179:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/guacamole-server-0.9.9/src/protocols/ssh/ssh_client.c:191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1024];
data/guacamole-server-0.9.9/src/protocols/telnet/client.c:204:34:  [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).
        client_data->font_size = atoi(argv[IDX_FONT_SIZE]);
data/guacamole-server-0.9.9/src/protocols/telnet/client.h: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 hostname[1024];
data/guacamole-server-0.9.9/src/protocols/telnet/client.h:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port[64];
data/guacamole-server-0.9.9/src/protocols/telnet/client.h: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 username[1024];
data/guacamole-server-0.9.9/src/protocols/telnet/client.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 password[1024];
data/guacamole-server-0.9.9/src/protocols/telnet/client.h:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char font_name[1024];
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:95: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 line_buffer[1024] = {0};
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:121: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(&(line_buffer[length]), buffer, size);
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connected_address[1024];
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:294:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connected_port[64];
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:384: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 buffer[2];
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:459:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/guacamole-server-0.9.9/src/protocols/vnc/client.c:310:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    guac_client_data->port = atoi(argv[IDX_PORT]);
data/guacamole-server-0.9.9/src/protocols/vnc/client.c:320:37:  [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).
    guac_client_data->color_depth = atoi(argv[IDX_COLOR_DEPTH]);
data/guacamole-server-0.9.9/src/protocols/vnc/client.c:330:39:  [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).
        guac_client_data->dest_port = atoi(argv[IDX_DEST_PORT]);
data/guacamole-server-0.9.9/src/protocols/vnc/client.c:341:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        retries_remaining = atoi(argv[IDX_AUTORETRY]);
data/guacamole-server-0.9.9/src/protocols/vnc/client.c:352:44:  [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).
        guac_client_data->listen_timeout = atoi(argv[IDX_LISTEN_TIMEOUT]);
data/guacamole-server-0.9.9/src/protocols/vnc/clipboard.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char output_data[GUAC_VNC_CLIPBOARD_MAX_LENGTH];
data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.c:304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char received_data[GUAC_VNC_CLIPBOARD_MAX_LENGTH];
data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.c:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2048];
data/guacamole-server-0.9.9/src/protocols/vnc/vnc_handlers.c:338:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2048];
data/guacamole-server-0.9.9/src/terminal/buffer.c:172: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_row->characters, src_row->characters, sizeof(guac_terminal_char) * src_row->length);
data/guacamole-server-0.9.9/src/terminal/display.c:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char utf8[4];
data/guacamole-server-0.9.9/src/terminal/packet.c:41: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, data, length);
data/guacamole-server-0.9.9/src/terminal/packet.h:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[GUAC_TERMINAL_PACKET_SIZE];
data/guacamole-server-0.9.9/src/terminal/terminal.c:433:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[GUAC_TERMINAL_PACKET_SIZE];
data/guacamole-server-0.9.9/src/terminal/terminal.c:539:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/guacamole-server-0.9.9/src/terminal/terminal.c:1446: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 data[5];
data/guacamole-server-0.9.9/src/terminal/terminal.c:1654:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/guacamole-server-0.9.9/src/terminal/terminal_handlers.c:424: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 argv_buffer[256];
data/guacamole-server-0.9.9/src/terminal/terminal_handlers.c:446:28:  [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).
            argv[argc++] = atoi(argv_buffer);
data/guacamole-server-0.9.9/src/terminal/terminal_handlers.c:891: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 filename[2048];
data/guacamole-server-0.9.9/src/terminal/terminal_handlers.c:916: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 filename[2048];
data/guacamole-server-0.9.9/tests/common/guac_iconv.c: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 output[4096];
data/guacamole-server-0.9.9/tests/common/guac_iconv.c:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char input[4096];
data/guacamole-server-0.9.9/tests/common/guac_iconv.c:41: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(input, in_string, in_length);
data/guacamole-server-0.9.9/tests/protocol/instruction_write.c:83: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 buffer[1024];
data/guacamole-server-0.9.9/tests/protocol/nest_write.c:91: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 buffer[1024];
data/guacamole-server-0.9.9/tests/util/guac_unicode.c:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[16];
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:624:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(list_state->directory_name, name,
data/guacamole-server-0.9.9/src/common-ssh/guac_sftp.c:754:5:  [1] (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 character.
    strcpy(sftp_data->upload_path, ".");
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh.c:266:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        responses[0].length = strlen(password);
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh.c:309:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(username));
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_user.c:74:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(private_key), "");
data/guacamole-server-0.9.9/src/common-ssh/guac_ssh_user.c:79:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(private_key), passphrase);
data/guacamole-server-0.9.9/src/common/guac_clipboard.c:96:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(clipboard->mimetype, mimetype, sizeof(clipboard->mimetype)-1);
data/guacamole-server-0.9.9/src/common/guac_io.c:57:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int bytes_read = read(fd, bytes, length);
data/guacamole-server-0.9.9/src/guacd/conf-file.c:137:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((chars_read = read(fd, buffer + length, sizeof(buffer) -  length)) > 0) {
data/guacamole-server-0.9.9/src/libguac/socket-fd.c:52:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int retval = read(data->fd, buf, count);
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_messages.c:60:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int name_bytes = strlen(name) + 1;
data/guacamole-server-0.9.9/src/protocols/rdp/guac_rdpdr/rdpdr_printer.c:72:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((length = read(printer_data->printer_output, buffer, sizeof(buffer))) > 0)
data/guacamole-server-0.9.9/src/protocols/rdp/guac_svc/svc_service.c:59:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(svc_plugin->plugin.channel_def.name, svc->name,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:383:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bytes_read = read(file->fd, buffer, length);
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:593:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path_component_data, path, GUAC_RDP_FS_MAX_PATH-1);
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:629:9:  [1] (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 character.
        strcpy(abs_path, "\\");
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_fs.c:677:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(current, rel_path, GUAC_RDP_FS_MAX_PATH-i-2);
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_settings.c:158:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rdp_settings->client_hostname, guac_settings->client_name,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_settings.c:161:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rdp_settings->ClientHostname, guac_settings->client_name,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_stream.c:488:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rdp_stream->ls_status.directory_name, name,
data/guacamole-server-0.9.9/src/protocols/rdp/rdp_svc.c:58:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(svc->name, name, GUAC_RDP_SVC_MAX_LENGTH);
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:421: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).
    telnet_send(telnet, username, strlen(username));
data/guacamole-server-0.9.9/src/protocols/telnet/telnet_client.c:485:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int bytes_read = read(client_data->socket_fd, buffer, sizeof(buffer));
data/guacamole-server-0.9.9/src/terminal/common.c:117:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int ret_val = read(fd, buffer, remaining);
data/guacamole-server-0.9.9/src/terminal/terminal.c:507:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(stdin_fd, c, size);
data/guacamole-server-0.9.9/src/terminal/terminal.c:1357:66:  [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 guac_terminal_write_all(term->stdin_pipe_fd[1], data, strlen(data));
data/guacamole-server-0.9.9/tests/protocol/instruction_write.c:90:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(rfd,
data/guacamole-server-0.9.9/tests/protocol/nest_write.c:98:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(rfd,

ANALYSIS SUMMARY:

Hits = 224
Lines analyzed = 46061 in approximately 1.32 seconds (34967 lines/second)
Physical Source Lines of Code (SLOC) = 19717
Hits@level = [0]  14 [1]  28 [2] 158 [3]   3 [4]  34 [5]   1
Hits@level+ = [0+] 238 [1+] 224 [2+] 196 [3+]  38 [4+]  35 [5+]   1
Hits/KSLOC@level+ = [0+] 12.0708 [1+] 11.3608 [2+] 9.94066 [3+] 1.92727 [4+] 1.77512 [5+] 0.0507177
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.