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/freerdp2-2.2.0+dfsg1/channels/audin/client/alsa/audin_alsa.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/audin_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/audin_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/mac/audin_mac.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/opensles/audin_opensl_es.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/opensles/opensl_io.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/opensles/opensl_io.h
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/oss/audin_oss.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/pulse/audin_pulse.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/client/winmm/audin_winmm.c
Examining data/freerdp2-2.2.0+dfsg1/channels/audin/server/audin.c
Examining data/freerdp2-2.2.0+dfsg1/channels/client/addin.c
Examining data/freerdp2-2.2.0+dfsg1/channels/client/addin.h
Examining data/freerdp2-2.2.0+dfsg1/channels/client/tables.h
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/client/cliprdr_format.c
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/client/cliprdr_format.h
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/client/cliprdr_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/client/cliprdr_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/cliprdr_common.c
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/cliprdr_common.h
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/server/cliprdr_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/cliprdr/server/cliprdr_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/disp/client/disp_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/disp/client/disp_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/disp/disp_common.c
Examining data/freerdp2-2.2.0+dfsg1/channels/disp/disp_common.h
Examining data/freerdp2-2.2.0+dfsg1/channels/disp/server/disp_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/disp/server/disp_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/drdynvc/client/drdynvc_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/drdynvc/client/drdynvc_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/drdynvc/server/drdynvc_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/drdynvc/server/drdynvc_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c
Examining data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.h
Examining data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/echo/client/echo_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/echo/client/echo_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/echo/server/echo_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/encomsp/server/encomsp_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/encomsp/server/encomsp_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/geometry/client/geometry_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/geometry/client/geometry_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/parallel/client/parallel_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/printer/client/cups/printer_cups.c
Examining data/freerdp2-2.2.0+dfsg1/channels/printer/client/printer_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/printer/client/win/printer_win.c
Examining data/freerdp2-2.2.0+dfsg1/channels/printer/printer.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/client/rail_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/client/rail_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/client/rail_orders.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/client/rail_orders.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/rail_common.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/rail_common.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/server/rail_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rail/server/rail_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdp2tcp/client/rdp2tcp_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/devman.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/devman.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/irp.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/irp.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_capabilities.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_capabilities.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpei/client/rdpei_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpei/client/rdpei_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpei/rdpei_common.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpei/rdpei_common.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpei/server/rdpei_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpei/server/rdpei_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/client/rdpgfx_codec.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/client/rdpgfx_codec.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/client/rdpgfx_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/client/rdpgfx_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/rdpgfx_common.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/rdpgfx_common.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/server/rdpgfx_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/server/rdpgfx_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/alsa/rdpsnd_alsa.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/fake/rdpsnd_fake.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/ios/TPCircularBuffer.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/ios/TPCircularBuffer.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/ios/rdpsnd_ios.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/opensles/opensl_io.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/opensles/opensl_io.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/opensles/rdpsnd_opensles.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/oss/rdpsnd_oss.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/proxy/rdpsnd_proxy.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/pulse/rdpsnd_pulse.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/rdpsnd_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/rdpsnd_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/winmm/rdpsnd_winmm.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/common/rdpsnd_common.h
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/remdesk/client/remdesk_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/remdesk/client/remdesk_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/remdesk/server/remdesk_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/remdesk/server/remdesk_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/serial/client/serial_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/server/channels.c
Examining data/freerdp2-2.2.0+dfsg1/channels/server/channels.h
Examining data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c
Examining data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c
Examining data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.h
Examining data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/alsa/tsmf_alsa.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/gstreamer/tsmf_X11.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/gstreamer/tsmf_gstreamer.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/gstreamer/tsmf_platform.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/oss/tsmf_oss.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/pulse/tsmf_pulse.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_audio.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_audio.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_codec.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_codec.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_constants.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_decoder.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_decoder.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_ifman.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_ifman.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.h
Examining data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_types.h
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/data_transfer.c
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/data_transfer.h
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.c
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.h
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevman.c
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.h
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/common/msusb.c
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/common/msusb.h
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/common/urbdrc_helpers.c
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/common/urbdrc_helpers.h
Examining data/freerdp2-2.2.0+dfsg1/channels/urbdrc/common/urbdrc_types.h
Examining data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.c
Examining data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.h
Examining data/freerdp2-2.2.0+dfsg1/client/Sample/tf_channels.c
Examining data/freerdp2-2.2.0+dfsg1/client/Sample/tf_channels.h
Examining data/freerdp2-2.2.0+dfsg1/client/Sample/tf_freerdp.c
Examining data/freerdp2-2.2.0+dfsg1/client/Sample/tf_freerdp.h
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_channels.c
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_channels.h
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.h
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_disp.c
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_disp.h
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_input.c
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_input.h
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_pointer.c
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_pointer.h
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlfreerdp.c
Examining data/freerdp2-2.2.0+dfsg1/client/Wayland/wlfreerdp.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/cli/xfreerdp.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_channels.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_channels.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_disp.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_disp.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_floatbar.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_floatbar.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_gdi.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_gdi.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_gfx.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_gfx.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_graphics.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_graphics.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_input.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_input.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_monitor.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_monitor.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_rail.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_rail.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_video.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_video.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_window.c
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xf_window.h
Examining data/freerdp2-2.2.0+dfsg1/client/X11/xfreerdp.h
Examining data/freerdp2-2.2.0+dfsg1/client/common/client.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/compatibility.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/compatibility.h
Examining data/freerdp2-2.2.0+dfsg1/client/common/file.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/geometry.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientChannels.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientCmdLine.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientRdpFile.c
Examining data/freerdp2-2.2.0+dfsg1/client/common/cmdline.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/addin.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/altsec.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/api.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/assistance.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/autodetect.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/bitmap.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/brush.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/cache.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/glyph.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/nine_grid.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/offscreen.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/palette.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/cache/pointer.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/audin.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/channels.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/cliprdr.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/disp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/encomsp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/geometry.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/log.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/rail.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/rdpdr.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/rdpei.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/rdpgfx.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/remdesk.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/tsmf.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/urbdrc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/video.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/wtsvc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/audin.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/channels.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/cliprdr.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/cmdline.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/disp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/drdynvc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/encomsp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/file.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/geometry.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/printer.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/rail.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/rdpei.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/rdpgfx.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/remdesk.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/sshagent.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/tsmf.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/client/video.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/audio.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/bitmap.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/bulk.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/clear.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/color.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/dsp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/h264.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/interleaved.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/jpeg.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/mppc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/ncrush.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/nsc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/planar.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/progressive.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/region.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/rfx.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/xcrush.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/yuv.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codec/zgfx.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/codecs.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/constants.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/ber.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/certificate.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/crypto.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/der.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/er.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/per.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/crypto/tls.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/display.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/dvc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/error.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/event.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/extension.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/freerdp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/bitmap.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/dc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/gdi.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/gfx.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/pen.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/region.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/shape.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/gdi/video.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/graphics.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/heartbeat.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/input.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/license.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/listener.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/keyboard.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/locale.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/log.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/message.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/metrics.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/peer.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/pointer.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/primary.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/primitives.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/rail.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/scancode.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/secondary.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/audin.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/channels.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/cliprdr.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/disp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/drdynvc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/echo.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/encomsp.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/rail.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/rdpdr.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/rdpei.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/rdpgfx.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/remdesk.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/server-common.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/server/shadow.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/session.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/settings.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/svc.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/types.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/update.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/utils/passphrase.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/utils/pcap.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/utils/profiler.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/utils/ringbuffer.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/utils/signal.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/utils/stopwatch.h
Examining data/freerdp2-2.2.0+dfsg1/include/freerdp/window.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/bitmap.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/bitmap.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/brush.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/brush.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/cache.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/cache.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/nine_grid.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/offscreen.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/palette.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/palette.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/audio.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/bitmap.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/clear.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/color.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/dsp.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/dsp.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/dsp_ffmpeg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/dsp_ffmpeg.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_ffmpeg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_mf.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_openh264.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_x264.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/include/bitmap.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/interleaved.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/jpeg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/mppc.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/ncrush.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_sse2.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_sse2.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_types.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/progressive.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/progressive.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/region.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_bitstream.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_constants.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_decode.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_decode.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_differential.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_dwt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_dwt.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_encode.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_encode.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_neon.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_neon.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_quantization.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_quantization.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_rlgr.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_rlgr.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_sse2.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_sse2.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_types.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecClear.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecInterleaved.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecMppc.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecNCrush.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecPlanar.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecRemoteFX.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecXCrush.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecZGfx.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPRegion.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/yuv.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings_getters.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings_str.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/common/test/TestCommonAssistance.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/activation.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/activation.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/autodetect.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/autodetect.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/bulk.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/bulk.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/capabilities.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/capabilities.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/channels.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/channels.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/codecs.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/connection.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/connection.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/display.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/display.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/errbase.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/errconnect.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/errinfo.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/errinfo.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/fastpath.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/fastpath.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/http.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/http.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ncacn_http.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ncacn_http.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ntlm.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ntlm.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_fault.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_fault.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts_signature.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts_signature.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/tsg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/tsg.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gcc.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gcc.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/heartbeat.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/heartbeat.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/input.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/input.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/listener.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/listener.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/mcs.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/mcs.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/metrics.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/multitransport.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/multitransport.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nego.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nego.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/peer.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/peer.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/rdp.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/rdp.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/redirection.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/redirection.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/surface.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/surface.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tcp.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tcp.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestSettings.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestVersion.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/settings_property_lists.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/timezone.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/timezone.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tpdu.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tpdu.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tpkt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tpkt.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/window.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/core/window.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/base64.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/ber.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/der.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/er.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/opensslcompat.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/opensslcompat.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/per.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestBase64.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/Test_x509_cert_info.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/bitmap.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/brush.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/brush.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/clipping.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/clipping.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/dc.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/drawing.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/drawing.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gdi.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gdi.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/graphics.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/graphics.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/line.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/line.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/pen.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/region.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/shape.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiBitBlt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiClip.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiCreate.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiEllipse.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiLine.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiRect.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiRegion.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiRop3.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/helpers.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/helpers.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/video.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_layout.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_sun.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_sun.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_xkbfile.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_xkbfile.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/liblocale.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/xkb_layout_ids.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/xkb_layout_ids.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YCoCg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YCoCg_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_neon.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_opencl.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_ssse3.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_add.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_add_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_alphaComp.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_alphaComp_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_andor.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_andor_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_colors.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_colors_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_copy.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_internal.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_set.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_set_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_shift.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_shift_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_sign.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_sign_opt.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_templates.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/primitives.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesAdd.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesAlphaComp.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesAndOr.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesColors.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesCopy.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesSet.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesShift.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesSign.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCoCg.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYUV.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/measure.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.h
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/passphrase.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/pcap.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/profiler.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/ringbuffer.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/signal.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/stopwatch.c
Examining data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/test/TestRingBuffer.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/include/rdtk/api.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/include/rdtk/rdtk.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_button.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_button.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_engine.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_engine.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_label.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_label.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_nine_patch.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_nine_patch.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_resources.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_resources.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_surface.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_surface.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_text_field.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_text_field.h
Examining data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/test/TestRdTkNinePatch.c
Examining data/freerdp2-2.2.0+dfsg1/rdtk/sample/rdtk_x11.c
Examining data/freerdp2-2.2.0+dfsg1/resources/FreeRDP_Icon_256px.h
Examining data/freerdp2-2.2.0+dfsg1/scripts/LECHash.c
Examining data/freerdp2-2.2.0+dfsg1/scripts/LOMHash.c
Examining data/freerdp2-2.2.0+dfsg1/scripts/test-scard.cpp
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_audin.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_audin.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_event.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_event.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_info.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_info.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_input.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_input.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_interface.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_interface.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_mountain_lion.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_mountain_lion.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_peer.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_peer.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_rdpsnd.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mf_rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mfreerdp.c
Examining data/freerdp2-2.2.0+dfsg1/server/Mac/mfreerdp.h
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sf_audin.c
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sf_audin.h
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sf_encomsp.c
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sf_encomsp.h
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sf_rdpsnd.c
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sf_rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sfreerdp.c
Examining data/freerdp2-2.2.0+dfsg1/server/Sample/sfreerdp.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/cli/wfreerdp.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/cli/wfreerdp.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_directsound.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_directsound.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_dxgi.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_dxgi.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_info.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_info.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_input.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_input.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_interface.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_interface.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_peer.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_peer.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_rdpsnd.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_settings.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_settings.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_update.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_update.h
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_wasapi.c
Examining data/freerdp2-2.2.0+dfsg1/server/Windows/wf_wasapi.h
Examining data/freerdp2-2.2.0+dfsg1/server/common/server.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/freerdp_proxy.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_config.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_config.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_main.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_protocol.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_protocol.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/demo/demo.cpp
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/modules/modules_api.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_channels.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_channels.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_client.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_client.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_cliprdr.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_cliprdr.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_config.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_config.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_context.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_context.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_disp.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_disp.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_gdi.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_gdi.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_graphics.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_graphics.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_input.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_input.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_log.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_modules.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_modules.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_rail.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_rail.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_rdpgfx.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_rdpgfx.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_rdpsnd.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_server.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_server.h
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c
Examining data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Mac/mac_shadow.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Mac/mac_shadow.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_dxgi.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_dxgi.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_rdp.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_rdp.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_shadow.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_shadow.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_wds.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_wds.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_audin.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_audin.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_capture.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_capture.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_channels.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_channels.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_encoder.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_encoder.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_encomsp.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_encomsp.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_input.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_input.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_lobby.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_lobby.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_rdpgfx.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_rdpgfx.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_rdpsnd.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_rdpsnd.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_remdesk.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_remdesk.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_screen.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_screen.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_subsystem.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_subsystem.h
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_subsystem_builtin.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_surface.c
Examining data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_surface.h
Examining data/freerdp2-2.2.0+dfsg1/uwac/include/uwac/uwac-tools.h
Examining data/freerdp2-2.2.0+dfsg1/uwac/include/uwac/uwac.h
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-clipboard.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-display.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-input.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-os.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-os.h
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-output.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-priv.h
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-tools.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-utils.c
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-utils.h
Examining data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-window.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/asn1.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/bcrypt.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/bitstream.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/clipboard.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/cmdline.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/collections.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/comm.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/credentials.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/credui.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/crt.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/crypto.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/debug.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/dsparse.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/endian.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/environment.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/error.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/file.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/handle.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/heap.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/image.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/ini.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/input.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/interlocked.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/intrin.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/io.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/library.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/locale.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/memory.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/midl.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/ndr.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/nt.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/ntlm.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/pack.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/path.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/pipe.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/platform.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/pool.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/print.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/registry.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/rpc.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sam.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/schannel.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/security.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/shell.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/smartcard.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/spec.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/ssl.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspicli.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/stream.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/strlst.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/synch.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sysinfo.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/timezone.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tools/makecert.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/user.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/windows.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winhttp.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winpr.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winsock.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/wlog.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/wnd.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/wtsapi.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/asn1.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1BerDec.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1BerEnc.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Compare.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Decode.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Decoder.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1DerDec.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1DerEnc.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Encode.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Encoder.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Integer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1Module.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/asn1/test/TestAsn1String.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/bcrypt/bcrypt.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/clipboard.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/clipboard.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/test/TestClipboardFormats.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_io.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_ioctl.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_ioctl.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_sercx2_sys.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_sercx2_sys.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_sercx_sys.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_sercx_sys.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestCommConfig.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestCommDevice.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestCommMonitor.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestControlSettings.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestGetCommState.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestHandflow.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestSerialChars.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestSetCommState.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestTimeouts.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credentials/credentials.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/credui.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUICmdLinePromptForCredentials.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIConfirmCredentials.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIParseUserName.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIPromptForCredentials.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/alignment.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/buffer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/casing.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/conversion.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/memory.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestAlignment.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestFormatSpecifiers.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestString.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestTypes.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/unicode.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/cert.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/cipher.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/crypto.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/crypto.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/hash.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/rand.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoCertEnumCertificatesInStore.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoCipher.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoHash.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoProtectData.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoProtectMemory.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoRand.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/dsparse/dsparse.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/dsparse/test/TestDsCrackNames.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/dsparse/test/TestDsMakeSpn.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/dummy.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentGetEnvironmentStrings.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentGetSetEB.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentSetEnvironmentVariable.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/error/error.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/error/test/TestErrorSetLastError.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/file.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/file.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/namedPipeClient.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/pattern.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileCreateFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileDeleteFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFileEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileGetStdHandle.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFilePatternMatch.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileReadFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileWriteFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/handle/handle.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/handle/handle.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/handle/nonehandle.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/handle/nonehandle.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/heap/heap.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/input/keycode.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/input/scancode.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/input/virtualkey.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/interlocked/interlocked.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/interlocked/test/TestInterlockedAccess.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/interlocked/test/TestInterlockedDList.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/interlocked/test/TestInterlockedSList.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/io/device.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/io/io.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/io/io.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/io/test/TestIoDevice.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/io/test/TestIoGetOverlappedResult.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/test/TestLibraryA/TestLibraryA.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/test/TestLibraryB/TestLibraryB.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/test/TestLibraryGetModuleFileName.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/test/TestLibraryGetProcAddress.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/test/TestLibraryLoadLibrary.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/locale/locale.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/locale/test/TestLocaleFormatMessage.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/log.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/memory/memory.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/memory/memory.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/memory/test/TestMemoryCreateFileMapping.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/nt/nt.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/nt/ntstatus.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/nt/test/TestNtCreateFile.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/nt/test/TestNtCurrentTeb.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathAllocCombine.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathCchAddExtension.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathCchAddSeparator.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathCchAddSeparatorEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathCchAppend.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/path.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell_ios.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathAllocCanonicalize.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathAllocCombine.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslash.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppendEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchCanonicalize.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchCanonicalizeEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchCombine.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchCombineEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchFindExtension.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchIsRoot.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchRemoveBackslash.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchRemoveBackslashEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchRemoveExtension.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchRemoveFileSpec.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchRenameExtension.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchSkipRoot.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripToRoot.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathIsUNCEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathMakePath.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathShell.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/pipe.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/pipe.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipeOverlapped.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/test/TestPipeCreatePipe.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/callback.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/callback_cleanup.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/cleanup_group.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/io.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/pool.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/pool.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/synch.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolIO.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolSynch.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolThread.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolTimer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolWork.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/timer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/work.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/midl.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_array.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_array.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_context.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_context.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_correlation.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_correlation.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_pointer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_pointer.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_private.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_private.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_simple.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_simple.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_string.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_string.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_structure.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_structure.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_union.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/ndr_union.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/rpc.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/security/security.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/security/security.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/security/test/TestSecurityToken.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/shell/shell.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_inspect.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_inspect.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_winscard.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_winscard.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardListReaders.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardStatus.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/CredSSP/credssp.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/CredSSP/credssp.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Negotiate/negotiate.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Negotiate/negotiate.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_export.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_gss.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_gss.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestAcquireCredentialsHandle.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestCredSSP.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestEnumerateSecurityPackages.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestInitializeSecurityContext.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestQuerySecurityPackageInfo.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestSchannel.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspicli/sspicli.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/address.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/barrier.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/critical.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/event.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/init.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/mutex.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/semaphore.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/sleep.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/synch.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchBarrier.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchCritical.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchEvent.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchInit.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchMultipleThreads.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchMutex.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchSemaphore.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchThread.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchTimerQueue.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchWaitableTimer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchWaitableTimerAPC.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/timer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/wait.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/test/TestCPUFeatures.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/test/TestGetComputerName.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/test/TestGetNativeSystemInfo.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/test/TestLocalTime.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/test/TestSystemTime.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/process.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/processor.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/test/TestThreadCommandLineToArgv.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/test/TestThreadCreateProcess.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/test/TestThreadExitThread.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/thread.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/thread.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/tls.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/TimeZones.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/TimeZones.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/WindowsZones.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/WindowsZones.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BitStream.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BufferPool.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/CountdownEvent.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/LinkedList.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessagePipe.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ObjectPool.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/PubSub.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Reference.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/StreamPool.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/corkscrew/backtrace.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/corkscrew/demangle.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/corkscrew/map_info.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/corkscrew/ptrace.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/corkscrew/symbol_table.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/debug.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/image.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/print.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ssl.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/stream.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/strlst.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestArrayList.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestBacktrace.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestBipBuffer.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestBitStream.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestBufferPool.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestCmdLine.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestHashTable.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestIni.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestLinkedList.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestListDictionary.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestMessagePipe.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestMessageQueue.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestPrint.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestPubSub.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestQueue.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestStream.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestStreamPool.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestVersion.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestWLog.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestWLogCallback.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/strio.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triodef.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trionan.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trionan.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triop.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triostr.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triostr.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/winpr.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Appender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Appender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/BinaryAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/BinaryAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/ConsoleAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/ConsoleAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/DataMessage.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/DataMessage.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/FileAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/FileAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/ImageMessage.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/ImageMessage.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/JournaldAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/JournaldAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Layout.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Layout.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Message.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Message.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/PacketMessage.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/PacketMessage.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/SyslogAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/SyslogAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/UdpAppender.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/UdpAppender.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winhttp/winhttp.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wnd/test/TestWndCreateWindowEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wnd/test/TestWndWmCopyData.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wnd/wnd.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wnd/wnd.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiEnumerateProcesses.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiEnumerateSessions.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraDisconnectSession.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraDynamicVirtualChannel.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraLogoffSession.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraSendMessage.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraStartRemoteSessionEx.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraVirtualChannel.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiQuerySessionInformation.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiSessionNotification.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiShutdownSystem.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiWaitSystemEvent.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.h
Examining data/freerdp2-2.2.0+dfsg1/winpr/test/TestIntrinsics.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/test/TestTypes.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/tools/hash-cli/hash.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert-cli/main.c
Examining data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c

FINAL RESULTS:

data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:561:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(lpFileName, st.st_mode) != 0)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:1299:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	return chmod(filename, fl);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:277:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		status = readlink(path, buffer, sizeof(buffer));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:108:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		if ((len = readlink(link, buf, sizeof(buf) - 1)) != -1)
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:604:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	strncpy(uname, getlogin(), sizeof(uname));
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:619:4:  [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), location, (unsigned long)uid);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:621:4:  [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), location, uname);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.c:91:3:  [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(buffer, sizeof(buffer), fmt, ap);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevman.c:482:2:  [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(dst, src);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:64:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	wClipboard* system;
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:185:55:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	const char* name = ClipboardGetFormatName(clipboard->system, formatId);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:214:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		UINT32 formatId = ClipboardGetFormatId(clipboard->system, "HTML Format");
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:225:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		UINT32 formatId = ClipboardGetFormatId(clipboard->system, "image/bmp");
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:398:64:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			clipboard->responseFormat = ClipboardGetFormatId(clipboard->system, "HTML Format");
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:606:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			if (formatId == ClipboardGetFormatId(clipboard->system, "HTML Format"))
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:608:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			else if (formatId == ClipboardGetFormatId(clipboard->system, "image/bmp"))
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:611:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				mime = ClipboardGetFormatName(clipboard->system, formatId);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:841:56:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	clipboard->delegate = ClipboardGetDelegate(clipboard->system);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlf_cliprdr.c:859:30:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	ClipboardDestroy(clipboard->system);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c:1190:23:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		strncpy(login_name, getlogin(), sizeof(login_name));
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:64:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	wClipboard* system;
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:575:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			srcFormatId = ClipboardGetFormatId(clipboard->system, "UTF8_STRING");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:579:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			srcFormatId = ClipboardGetFormatId(clipboard->system, "image/bmp");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:583:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			srcFormatId = ClipboardGetFormatId(clipboard->system, "text/html");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:587:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			srcFormatId = ClipboardGetFormatId(clipboard->system, "text/uri-list");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:592:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bSuccess = ClipboardSetData(clipboard->system, srcFormatId, data, SrcSize);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:595:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		dstFormatId = ClipboardGetFormatId(clipboard->system, format->formatName);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:602:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		pDstData = (BYTE*)ClipboardGetData(clipboard->system, dstFormatId, &DstSize);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:619:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    (dstFormatId == ClipboardGetFormatId(clipboard->system, "FileGroupDescriptorW")))
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1366:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			srcFormatId = ClipboardGetFormatId(clipboard->system, "HTML Format");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1367:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			dstFormatId = ClipboardGetFormatId(clipboard->system, "text/html");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1373:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			srcFormatId = ClipboardGetFormatId(clipboard->system, "FileGroupDescriptorW");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1374:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			dstFormatId = ClipboardGetFormatId(clipboard->system, "text/uri-list");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1384:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				dstFormatId = ClipboardGetFormatId(clipboard->system, "UTF8_STRING");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1390:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				dstFormatId = ClipboardGetFormatId(clipboard->system, "UTF8_STRING");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1396:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				dstFormatId = ClipboardGetFormatId(clipboard->system, "UTF8_STRING");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1402:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				dstFormatId = ClipboardGetFormatId(clipboard->system, "image/bmp");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1411:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bSuccess = ClipboardSetData(clipboard->system, srcFormatId, data, SrcSize);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1423:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		pDstData = (BYTE*)ClipboardGetData(clipboard->system, dstFormatId, &DstSize);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1428:48:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			          ClipboardGetFormatName(clipboard->system, dstFormatId),
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1429:48:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			          ClipboardGetFormatName(clipboard->system, srcFormatId));
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1699:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (ClipboardGetFormatId(clipboard->system, "text/uri-list"))
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1717:56:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	clipboard->delegate = ClipboardGetDelegate(clipboard->system);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1731:30:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	ClipboardDestroy(clipboard->system);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1758:30:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	ClipboardDestroy(clipboard->system);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:181:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	actionScript = popen(command, "r");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:250:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	actionScript = popen(command, "r");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:67:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	keyScript = popen(command, "r");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:411:2:  [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(combination, keyStr);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:430:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	keyScript = popen(command, "r");
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:207:2:  [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(tmp, value);
data/freerdp2-2.2.0+dfsg1/client/common/file.c:1013:8:  [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.
	len = vsnprintf(buf, bufSize, fmt, ap);
data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientCmdLine.c:16:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, format, ##__VA_ARGS__); \
data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientCmdLine.c:18:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(format, ##__VA_ARGS__);          \
data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientCmdLine.c:27:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(format, ##__VA_ARGS__); \
data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientRdpFile.c:221:7:  [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.
	rc = vsnprintf(NULL, 0, fmt, ap);
data/freerdp2-2.2.0+dfsg1/client/common/test/TestClientRdpFile.c:230:7:  [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.
	rc = vsnprintf(dst, (size_t)rc + 1, fmt, ap);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/http.c:369:11:  [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.
	length = vsnprintf(NULL, 0, fmt, ap) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/http.c:377:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	used = vsnprintf(str, (size_t)length, fmt, ap);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:198:4:  [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(buffer, map[x].name);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:202:2:  [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(buffer, fields);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/tsg.c:299:7:  [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.
	rc = vsnprintf(*buffer, *len, fmt, ap);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:137:4:  [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(result, info_flags[i].label);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1051:28:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	nla->status = nla->table->ImpersonateSecurityContext(&nla->context);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:2512:34:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	if (!nla->table || !nla->table->ImpersonateSecurityContext)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:2515:22:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	return (nla->table->ImpersonateSecurityContext(&nla->context) == SEC_E_OK);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/rdp.c:1275:4:  [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), "UNKNOWN %04" PRIx16, pduType);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/window.c:542:3:  [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(&b[pos], s - pos, __VA_ARGS__); \
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_sun.c:226:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	kbd = popen("kbd -t -l", "r");
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c:51:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (!(xprop = popen("xprop -root _XKB_RULES_NAMES_BACKUP", "r")))
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c:104:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (!(xprop = popen("xprop -root _XKB_RULES_NAMES", "r")))
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c:160:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	setxkbmap = popen("setxkbmap -print", "r");
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYUV.c:864:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			int rc = sscanf(argv[1], "%" PRIu32 "x%" PRIu32, &roi.width, &roi.height);
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_interface.c:60:4:  [4] (buffer) _stprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			_stprintf(name, _T("%s (%s)"), dd.DeviceName, dd.DeviceString);
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_interface.c:255:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf(dstStr, 50, L"%hs", peer->hostname);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.c:56:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	rc = sprintf(buf, "%s/%s", base_dir, username);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.c:82:7:  [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.
	rc = _snprintf(NULL, 0, fmt, config->CapturesDirectory, settings->Username,
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.c:96:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	rc = sprintf(pc->frames_dir, fmt, config->CapturesDirectory, settings->Username,
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.c:149:7:  [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.
	rc = _snprintf(NULL, 0, fmt, pc->frames_dir, pc->frames_count++);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_capture.c:158:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	rc = sprintf(file_path, fmt, pc->frames_dir, pc->frames_count++);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/pipe.h:104:17:  [4] (access) ImpersonateNamedPipeClient:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	WINPR_API BOOL ImpersonateNamedPipeClient(HANDLE hNamedPipe);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/rpc.h:591:23:  [4] (access) RpcImpersonateClient:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	WINPR_API RPC_STATUS RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h:903:34:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	IMPERSONATE_SECURITY_CONTEXT_FN ImpersonateSecurityContext;
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h:937:34:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	IMPERSONATE_SECURITY_CONTEXT_FN ImpersonateSecurityContext;
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h:1037:38:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	WINPR_API SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(PCtxtHandle phContext);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:176:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define sprintf_s snprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:177:9:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _snprintf snprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:177:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _snprintf snprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:178:24:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _scprintf(...) snprintf(NULL, 0, __VA_ARGS__)
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:180:24:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _scprintf(...) snprintf(NULL, 0, __VA_ARGS__)
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:39:18:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define _tprintf wprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:40:9:  [4] (format) _sntprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _sntprintf snwprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:45:9:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#define _tcscpy wcscpy
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:45:17:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#define _tcscpy wcscpy
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:46:9:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#define _tcscat wcscat
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:46:17:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#define _tcscat wcscat
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:53:18:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define _tprintf printf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:54:9:  [4] (format) _sntprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _sntprintf snprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:54:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _sntprintf snprintf
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:59:9:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#define _tcscpy strcpy
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:59:17:  [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).
#define _tcscpy strcpy
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:60:9:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#define _tcscat strcat
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:60:17:  [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).
#define _tcscat strcat
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:393:3:  [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(pDstData, pSrcData);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1128:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(lpTargetPath, storedTargetPath);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c:64:3:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		wcscpy((wchar_t*)strDestination, (const wchar_t*)strSource);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:22:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:42:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:24:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:44:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:20:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathNoExtension);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:38:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathNoExtension);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:56:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathExtension);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:74:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathExtension);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:22:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:40:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:58:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:76:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:103:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:114:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:123:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testBasePathNoBackslash);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:33:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathPrefixFileNamespace);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:52:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathPrefixDeviceNamespace);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:83:3:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		_tcscpy(Path, testPathPrefixFileNamespace);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:97:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathPrefixFileNamespaceMinimum);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathIsUNCEx.c:20:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathUNC);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathIsUNCEx.c:38:2:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	_tcscpy(Path, testPathNotUNC);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/pipe.c:903:6:  [4] (access) ImpersonateNamedPipeClient:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
BOOL ImpersonateNamedPipeClient(HANDLE hNamedPipe)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/rpc.c:517:12:  [4] (access) RpcImpersonateClient:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
RPC_STATUS RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Negotiate/negotiate.c:300:22:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	if (context->sspiW->ImpersonateSecurityContext)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Negotiate/negotiate.c:301:28:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
		status = context->sspiW->ImpersonateSecurityContext(&(context->SubContext));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi.c:748:28:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	if (!(g_SspiW && g_SspiW->ImpersonateSecurityContext))
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi.c:751:20:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	status = g_SspiW->ImpersonateSecurityContext(phContext);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_export.c:209:39:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
SSPI_EXPORT SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(void* phContext)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c:1170:14:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	if (!table->ImpersonateSecurityContext)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c:1173:18:  [4] (access) ImpersonateSecurityContext:
  If this call fails, the program could fail to drop heightened privileges
  (CWE-250). Make sure the return value is checked, and do not continue if a
  failure is reported.
	status = table->ImpersonateSecurityContext(phContext);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspicli/sspicli.c:210:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
			strncpy(login, getlogin(), sizeof(login));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:93:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(__VA_ARGS__);       \
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:212:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		FILE* fp = popen("getprop persist.sys.timezone", "r");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestPrint.c:18:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define _printf printf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:183:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef printf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:184:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printf trio_printf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:187:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:188:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vprintf trio_vprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:191:8:  [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.
#undef fprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:192:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fprintf trio_fprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:195:8:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vfprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:196:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfprintf trio_vfprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:199:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:200:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define sprintf trio_sprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:203:8:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef vsprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:204:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vsprintf trio_vsprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:207:8:  [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.
#undef snprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:208:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf trio_snprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:211:8:  [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.
#undef vsnprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:212:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf trio_vsnprintf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:215:8:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef scanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:216:9:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define scanf trio_scanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:219:8:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef vscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:220:9:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define vscanf trio_vscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:223:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef fscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:224:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define fscanf trio_fscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:227:8:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef vfscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:228:9:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define vfscanf trio_vfscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:231:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef sscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:232:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define sscanf trio_sscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:235:8:  [4] (buffer) vsscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef vsscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.h:236:9:  [4] (buffer) vsscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define vsscanf trio_vsscanf
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triostr.c:382:10:  [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).
	return (strcat(target, source) != NULL);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triostr.c:463:8:  [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).
	(void)strcpy(target, source);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/JournaldAppender.c:118:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(journaldAppender->stream, formatStr, message->PrefixString, message->TextString);
data/freerdp2-2.2.0+dfsg1/channels/drdynvc/client/drdynvc_main.c:456:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(channel->lock));
data/freerdp2-2.2.0+dfsg1/channels/printer/client/cups/printer_cups.c:171:43:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	cups_printjob->printjob_object = _strdup(tmpnam(NULL));
data/freerdp2-2.2.0+dfsg1/channels/rdp2tcp/client/rdp2tcp_main.c:87:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (!CreateProcess(NULL,
data/freerdp2-2.2.0+dfsg1/channels/rdp2tcp/client/rdp2tcp_main.c:87:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (!CreateProcess(NULL,
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/winmm/rdpsnd_winmm.c:112:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&winmm->cs);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/winmm/rdpsnd_winmm.c:169:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&winmm->cs);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/winmm/rdpsnd_winmm.c:281:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&winmm->cs);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/winmm/rdpsnd_winmm.c:349:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&winmm->cs);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.c:306:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->priv->lock);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.c:557:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->priv->lock);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.c:631:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->priv->lock);
data/freerdp2-2.2.0+dfsg1/channels/serial/client/serial_main.c:501:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&data->serial->TerminatingIrpThreadsLock);
data/freerdp2-2.2.0+dfsg1/channels/serial/client/serial_main.c:534:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&serial->TerminatingIrpThreadsLock);
data/freerdp2-2.2.0+dfsg1/channels/serial/client/serial_main.c:940:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection(&serial->TerminatingIrpThreadsLock);
data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.c:234:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&callback->lock);
data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.c:280:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&callback->lock);
data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.c:322:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	sshagent->listener_callback->agent_uds_path = getenv("SSH_AUTH_SOCK");
data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.c:333:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&priv->framesLock);
data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.c:641:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&priv->framesLock);
data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.c:817:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&priv->framesLock);
data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.c:870:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&priv->framesLock);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlfreerdp.c:80:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context_w->critical);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlfreerdp.c:333:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
				EnterCriticalSection(&context->critical);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlfreerdp.c:566:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&wfl->critical);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_gfx.c:128:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_gfx.c:372:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:1213:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&channels->channelsLock);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:1268:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&channels->channelsLock);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1370:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&rdg->writeSection);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1376:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&rdg->writeSection);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1476:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdg->writeSection);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1718:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection(&rdg->writeSection);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:87:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(client->PipeLock));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:109:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(client->PipeLock));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:763:11:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		hSSPI = LoadLibrary(nla->SspiModule);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/rdp.c:1754:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:398:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:642:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:721:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:750:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:785:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:816:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:846:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&rdp->critical);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c:241:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int random;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c:244: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.
	winpr_RAND((BYTE*)&random, sizeof(random));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c:244:36:  [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.
	winpr_RAND((BYTE*)&random, sizeof(random));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c:245:23:  [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.
	randomPort = 3389 + (random % 200);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:815:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(transport->WriteLock));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.c:2913:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&(update->mux));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.c:2999:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&update->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:97:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&tls->lock);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:151:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&tls->lock);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:75:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:183:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:875:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:956:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1021:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1064:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1132:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1204:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1260:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1331:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1355:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1379:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1407:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1437:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&context->mux);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/gfx.c:1497:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&gfx->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:246:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:259:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:272:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:285:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:297:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:310:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:323:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:335:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:348:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_update.c:360:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ps->update->mux);
data/freerdp2-2.2.0+dfsg1/server/shadow/Mac/mac_shadow.c:385:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&(surface->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/Mac/mac_shadow.c:436:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	  EnterCriticalSection(&(surface->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/Mac/mac_shadow.c:503:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&(surface->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_shadow.c:235:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(surface->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:757:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:777:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:785:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:814:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:823:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:850:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:960:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv("DISPLAY"))
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:1147:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv("DISPLAY"))
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:240:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(client->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1329:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(client->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1335:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&surface->lock);
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1464:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(client->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:151:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:166:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:177:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:188:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:238:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:263:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:310:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_mcevent.c:339:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(event->lock));
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-os.c:225:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	path = getenv("XDG_RUNTIME_DIR");
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/library.h:67:9:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
#define LoadLibrary LoadLibraryW
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/library.h:68:9:  [3] (misc) LoadLibraryEx:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
#define LoadLibraryEx LoadLibraryExW
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/library.h:70:9:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
#define LoadLibrary LoadLibraryA
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/library.h:71:9:  [3] (misc) LoadLibraryEx:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
#define LoadLibraryEx LoadLibraryExA
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/synch.h:142:17:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	WINPR_API VOID InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/synch.h:151:17:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	WINPR_API VOID EnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h:167:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
#define CreateProcess CreateProcessW
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h:168:9:  [3] (shell) CreateProcessAsUser:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Especially watch out for embedded spaces.
#define CreateProcessAsUser CreateProcessAsUserW
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h:169:9:  [3] (shell) CreateProcessWithLogon:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Especially watch out for embedded spaces.
#define CreateProcessWithLogon CreateProcessWithLogonW
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h:172:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
#define CreateProcess CreateProcessA
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h:173:9:  [3] (shell) CreateProcessAsUser:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Especially watch out for embedded spaces.
#define CreateProcessAsUser CreateProcessAsUserA
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/thread.h:174:9:  [3] (shell) CreateProcessWithLogon:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Especially watch out for embedded spaces.
#define CreateProcessWithLogon CreateProcessWithLogonA
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/clipboard.c:144:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(clipboard->lock));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:988:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&_CommDevicesLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1095:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&_CommDevicesLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1319:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&pComm->ReadLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1339:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&pComm->WriteLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1342:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_io.c:94:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pComm->ReadLock); /* KISSer by the function's beginning */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_io.c:354:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_io.c:386:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pComm->WriteLock); /* KISSer by the function's beginning */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1042:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1052:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1217:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1403:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1412:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1419:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_serial_sys.c:1457:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&pComm->EventsLock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:148:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv(lpName);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:323:3:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		realpath(path, buffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathMakePath.c:27:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:456:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&(pContext->lock));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/critical.c:48:6:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
VOID InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/critical.c:145:6:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
VOID EnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchCritical.c:54:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&critical);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchCritical.c:67:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&critical);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchCritical.c:156:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&critical);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchCritical.c:168:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&critical);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/test/TestSynchCritical.c:275:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&critical);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:98:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:190:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:216:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:241:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:275:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:306:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:340:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:375:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ArrayList.c:420:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&arrayList->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BufferPool.c:104:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BufferPool.c:134:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BufferPool.c:177:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BufferPool.c:313:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BufferPool.c:389:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/CountdownEvent.c:92:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&countdown->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/CountdownEvent.c:115:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&countdown->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:217:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:288:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:344:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:375:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:406:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:450:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:502:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:521:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/HashTable.c:542:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&table->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:52:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:80:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:114:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:177:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:224:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:264:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&(listDictionary->lock));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:298:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:341:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:371:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ListDictionary.c:410:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&listDictionary->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:76:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:144:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:168:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:247:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ObjectPool.c:46:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ObjectPool.c:73:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/ObjectPool.c:106:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/PubSub.c:51:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pubSub->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:46:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:62:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:96:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:123:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:149:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:199:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:227:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&queue->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Reference.c:105:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&referenceTable->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Reference.c:130:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&referenceTable->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c:44:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&stack->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c:76:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&stack->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c:102:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&stack->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c:126:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&stack->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c:157:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&stack->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Stack.c:177:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&stack->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/StreamPool.c:153:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/StreamPool.c:205:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/StreamPool.c:246:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/StreamPool.c:301:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/StreamPool.c:354:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&pool->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.c:228:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&appender->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.c:259:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&appender->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.c:290:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&appender->lock);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.c:321:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&appender->lock);
data/freerdp2-2.2.0+dfsg1/channels/audin/client/mac/audin_mac.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errString[1024];
data/freerdp2-2.2.0+dfsg1/channels/audin/client/mac/audin_mac.c:230:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errString[1024];
data/freerdp2-2.2.0+dfsg1/channels/audin/client/mac/audin_mac.c:308:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errString[1024];
data/freerdp2-2.2.0+dfsg1/channels/audin/client/mac/audin_mac.c:371:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errString[1024];
data/freerdp2-2.2.0+dfsg1/channels/audin/client/oss/audin_oss.c:147:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev_name[PATH_MAX] = "/dev/dsp";
data/freerdp2-2.2.0+dfsg1/channels/audin/client/oss/audin_oss.c:148:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mixer_name[PATH_MAX] = "/dev/mixer";
data/freerdp2-2.2.0+dfsg1/channels/audin/client/oss/audin_oss.c:171:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((pcm_handle = open(dev_name, O_RDONLY)) < 0)
data/freerdp2-2.2.0+dfsg1/channels/audin/client/oss/audin_oss.c:179:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((mixer_handle = open(mixer_name, O_RDWR)) < 0)
data/freerdp2-2.2.0+dfsg1/channels/audin/client/winmm/audin_winmm.c:347:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, format->data, format->cbSize);
data/freerdp2-2.2.0+dfsg1/channels/audin/server/audin.c:373:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&ChannelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:212:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(pszSearchPath, pszInstallPrefix, cchInstallPrefix);
data/freerdp2-2.2.0+dfsg1/channels/cliprdr/client/cliprdr_main.c:1167:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(cliprdr->channelEntryPoints), pEntryPoints,
data/freerdp2-2.2.0+dfsg1/channels/cliprdr/cliprdr_common.c:266:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
				    MultiByteToWideChar(CP_UTF8, 0, format->formatName, -1, NULL, 0) * 2;
data/freerdp2-2.2.0+dfsg1/channels/cliprdr/cliprdr_common.c:297:22:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
				formatNameSize = MultiByteToWideChar(CP_UTF8, 0, format->formatName, -1,
data/freerdp2-2.2.0+dfsg1/channels/cliprdr/cliprdr_common.c:472:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(formats[index].formatName, szFormatName, 32);
data/freerdp2-2.2.0+dfsg1/channels/cliprdr/server/cliprdr_main.c:586:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(tempDirectory.szTempDir, cliprdr->temporaryDirectory, length);
data/freerdp2-2.2.0+dfsg1/channels/cliprdr/server/cliprdr_main.c:1224:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(cliprdr->ChannelEvent), buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/disp/server/disp_main.c:415:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&priv->channelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/drdynvc/client/drdynvc_main.c:1793:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(drdynvc->channelEntryPoints), pEntryPoints,
data/freerdp2-2.2.0+dfsg1/channels/drdynvc/server/drdynvc_main.c:65:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&ChannelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c:109:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(fullpath, base_path, base_path_length);
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c:111:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory((char*)fullpath + base_path_length, path, PathLength);
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c:137:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(path_slash, path, base_path_length);
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_main.c:1016:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devlist[512], buf[512];
data/freerdp2-2.2.0+dfsg1/channels/echo/server/echo_main.c:143:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&ChannelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:171:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:234:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:293:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:350:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:416:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:473:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:530:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:599:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:652:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:747:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:796:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/client/encomsp_main.c:1327:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(encomsp->channelEntryPoints), pEntryPoints,
data/freerdp2-2.2.0+dfsg1/channels/encomsp/server/encomsp_main.c:94:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pdu, header, sizeof(ENCOMSP_ORDER_HEADER));
data/freerdp2-2.2.0+dfsg1/channels/encomsp/server/encomsp_main.c:208:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&ChannelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/parallel/client/parallel_main.c:108:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	parallel->file = open(parallel->path, O_RDWR);
data/freerdp2-2.2.0+dfsg1/channels/printer/client/cups/printer_cups.c:95:8:  [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).
		fp = fopen((const char*)cups_printjob->printjob_object, "a+b");
data/freerdp2-2.2.0+dfsg1/channels/printer/client/cups/printer_cups.c:126:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/freerdp2-2.2.0+dfsg1/channels/printer/client/cups/printer_cups.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/freerdp2-2.2.0+dfsg1/channels/printer/client/printer_main.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port[64];
data/freerdp2-2.2.0+dfsg1/channels/printer/client/printer_main.c:664:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char PortDosName[8];
data/freerdp2-2.2.0+dfsg1/channels/rail/client/rail_main.c:874:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(rail->channelEntryPoints), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_FREERDP_EX));
data/freerdp2-2.2.0+dfsg1/channels/rail/server/rail_main.c:1405:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&priv->channelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/rdp2tcp/client/rdp2tcp_main.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[16 * 1024];
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:599:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:601:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uname[MAX_PATH] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:665:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/mounts", "r");
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:797:8:  [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).
	mfd = open("/proc/mounts", O_RDONLY, 0);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:1797:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(rdpdr->channelEntryPoints), pEntryPoints, sizeof(CHANNEL_ENTRY_POINTS_FREERDP_EX));
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.h:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char computerName[256];
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:753:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char PreferredDosName[9];
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1162:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&ChannelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1394:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, path, -1, (LPWSTR)Stream_Pointer(s), pathLength);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1543:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		MultiByteToWideChar(CP_ACP, 0, path, -1, (LPWSTR)Stream_Pointer(s), pathLength);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1594:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		MultiByteToWideChar(CP_ACP, 0, path, -1, (LPWSTR)Stream_Pointer(s), pathLength);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1955:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(irp->PathName, "\\*.*");
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.h:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char PathName[256];
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.h:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ExtraBuffer[256];
data/freerdp2-2.2.0+dfsg1/channels/rdpei/client/rdpei_main.c:156:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&(rdpei->contacts[rdpei->frame.contactCount]), contact,
data/freerdp2-2.2.0+dfsg1/channels/rdpei/client/rdpei_main.c:170:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&(rdpei->contacts[rdpei->frame.contactCount]), contact,
data/freerdp2-2.2.0+dfsg1/channels/rdpei/client/rdpei_main.c:670:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(contactPoint->data), contact, sizeof(RDPINPUT_CONTACT_DATA));
data/freerdp2-2.2.0+dfsg1/channels/rdpei/server/rdpei_main.c:125:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&priv->eventHandle, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/rdpgfx/server/rdpgfx_main.c:1442:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&priv->channelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/ios/TPCircularBuffer.h:208:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, src, len);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/ios/rdpsnd_ios.c:73:4:  [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(target_buffer->mData, buffer, bytes_to_copy);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/opensles/opensl_io.c:355:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, buffer, size * sizeof(short));
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/oss/rdpsnd_oss.c:155:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(oss->format), format, sizeof(AUDIO_FORMAT));
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/oss/rdpsnd_oss.c:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mixer_name[PATH_MAX] = "/dev/mixer";
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/oss/rdpsnd_oss.c:202:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((oss->mixer_handle = open(mixer_name, O_RDWR)) < 0)
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/oss/rdpsnd_oss.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev_name[PATH_MAX] = "/dev/dsp";
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/oss/rdpsnd_oss.c:231:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((oss->pcm_handle = open(dev_name, O_WRONLY)) < 0)
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/pulse/rdpsnd_pulse.c:290:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ss[PA_SAMPLE_SPEC_SNPRINT_MAX];
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/rdpsnd_main.c:612:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(Stream_Buffer(s), rdpsnd->waveData, 4);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/rdpsnd_main.c:1135:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[8192];
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/rdpsnd_main.c:1356:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[8192];
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/rdpsnd_main.c:1406:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(rdpsnd->channelEntryPoints), pEntryPoints,
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/client/winmm/rdpsnd_winmm.c:278:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(lpWaveHdr->lpData, data, size);
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.c:571:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->priv->out_buffer +
data/freerdp2-2.2.0+dfsg1/channels/rdpsnd/server/rdpsnd_main.c:699:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&priv->channelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/remdesk/client/remdesk_main.c:1051:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(remdesk->channelEntryPoints), pEntryPoints,
data/freerdp2-2.2.0+dfsg1/channels/remdesk/server/remdesk_main.c:603:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&ChannelEvent, buffer, sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c:942:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(ret.rgReaderStates[x].rgbAtr), &(call->rgReaderStates[x].rgbAtr),
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c:991:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(ret.rgReaderStates[x].rgbAtr), &(call->rgReaderStates[x].rgbAtr),
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c:1248:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(ret.rgReaderStates[index].rgbAtr), &(call->rgReaderStates[index].rgbAtr),
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c:1313:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(ret.rgReaderStates[index].rgbAtr), &(call->rgReaderStates[index].rgbAtr),
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c:2141:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(states[i].rgbAtr), &(call->rgReaderStates[i].rgbAtr), 36);
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_operations.c:2188:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(ret.rgReaderStates[i].rgbAtr), &(state->rgbAtr),
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:360:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(mszA, string.sz, length);
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:437:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[128];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:445:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[128];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:611:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:637:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[8192];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:718:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:729:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[8192];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:790:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:862:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:887:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:912:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:935:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:978:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:992:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1011:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1043:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1092:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1106:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1133:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1165:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[8192];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1268:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1295:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1689:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&hContext, &(context->pbContext), context->cbContext);
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1700:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(context->pbContext), &hContext, context->cbContext);
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1719:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&hCard, &(handle->pbHandle), handle->cbHandle);
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_pack.c:1730:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(handle->pbHandle), &hCard, handle->cbHandle);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/alsa/tsmf_alsa.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char device[32];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c:209:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, s, size + 2);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c:214:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, s, size + 2);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c:218:4:  [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(mdecoder->codec_context->extradata, media_type->ExtraData,
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c:485:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dst, decoded_frame->data[0], frame_size);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/gstreamer/tsmf_X11.c:88:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char shm_id[128];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/gstreamer/tsmf_gstreamer.c:222:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(data, raw_data, size);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/gstreamer/tsmf_gstreamer.c:533:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pipeline[1024];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/oss/tsmf_oss.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev_name[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/oss/tsmf_oss.c:84:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((oss->pcm_handle = open(oss->dev_name, O_WRONLY)) < 0)
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/pulse/tsmf_pulse.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char device[32];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_codec.c:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char guidString[37];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_ifman.c:317:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&fValue, &iValue, 4);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_main.c:167:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(ifman.presentation_id, callback->presentation_id, GUID_SIZE);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_main.c:209:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(callback->presentation_id, Stream_Pointer(input), GUID_SIZE);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:362:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(presentation->presentation_id, guid, GUID_SIZE);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char guid_str[GUID_SIZE * 2 + 1];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:474:4:  [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(event.visibleRects, presentation->rects,
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:483:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:489:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fp = fopen(buf, "wb");
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:1132:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(presentation->rects, rects, sizeof(RDP_RECT) * num_rects);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/tsmf_media.c:1506:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(sample->data, data, data_size);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[8192] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.c:767:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char deviceLocation[25] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.c:827: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[2], len);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.c:1496:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(pdev->path, "%" PRIu16 "-%" PRIu16 "", bus_number, pdev->port_number);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevice.h:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[17];
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevman.c:490:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[8192] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char instanceId[17] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:246:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char HardwareIds[2][DEVICE_HARDWARE_ID_SIZE] = { { 0 } };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char CompatibilityIds[3][DEVICE_COMPATIBILITY_ID_SIZE] = { { 0 } };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char strContainerId[DEVICE_CONTAINER_STR_SIZE] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char strInstanceId[DEVICE_INSTANCE_STR_SIZE] = { 0 };
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:671:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char channelName[sizeof(URBDRC_CHANNEL_NAME)] = { URBDRC_CHANNEL_NAME };
data/freerdp2-2.2.0+dfsg1/channels/video/client/video_main.c:668:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(presentation->surfaceData, frame->surfaceData, frame->w * frame->h * 4);
data/freerdp2-2.2.0+dfsg1/client/Wayland/wlfreerdp.c:685:4:  [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(&pdst[dstOffset], &psrc[srcOffset], width * 4);
data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c:178:7:  [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).
	fp = fopen(fname, "w");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c:924:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c:1109:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char x11_map[112] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c:1185:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char login_name[MAX_PATH] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c:1900:4:  [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(xfc->supportedAtoms, data, nitems * sizeof(Atom));
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:709:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(clipboard->incr_data + clipboard->incr_data_length, data, bytes_left);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:881:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(&formatId, data, 4);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:1451:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(clipboard->data_raw, data, size);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char command[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:222:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char command[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/freerdp2-2.2.0+dfsg1/client/X11/xf_event.c:483:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char command[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:380:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char command[2048] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char combination[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:400:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(combination, "Shift+");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:403:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(combination, "Ctrl+");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:406:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(combination, "Alt+");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_keyboard.c:409:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(combination, "Super+");
data/freerdp2-2.2.0+dfsg1/client/X11/xf_rail.c:423:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(appWindow->windowRects, windowState->windowRects,
data/freerdp2-2.2.0+dfsg1/client/X11/xf_rail.c:452:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(appWindow->visibilityRects, windowState->visibilityRects,
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:231:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(image->data + image->offsets[0], event->frameData,
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:238:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(image->data + image->offsets[0] + i * image->pitches[0],
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:260:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(image->data + image->offsets[1], data1,
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:262:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(image->data + image->offsets[2], data2,
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:269:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(image->data + image->offsets[1] + i * image->pitches[1],
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:271:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(image->data + image->offsets[2] + i * image->pitches[2],
data/freerdp2-2.2.0+dfsg1/client/X11/xf_tsmf.c:288:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(image->data, event->frameData, size);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_window.c:450: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.
	static char shm_id[64];
data/freerdp2-2.2.0+dfsg1/client/common/client.c:76:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(instance->pClientEntryPoints, pEntryPoints, pEntryPoints->Size);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[80];
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:413:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, args, sizeof(args));
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1066:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(*host, hostname, length);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1263:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, args, sizeof(args));
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1306:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, args, sizeof(args));
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1401:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, args, sizeof(args));
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1554:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, args, sizeof(args));
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:2797:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				const char name[5] = "name:";
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:2798:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				const char fingerprints[12] = "fingerprint:";
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:3076: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(settings->ServerAutoReconnectCookie, base64, (size_t)length);
data/freerdp2-2.2.0+dfsg1/client/common/compatibility.c:368:7:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						CopyMemory(args->argv[j + 1], a, length);
data/freerdp2-2.2.0+dfsg1/client/common/compatibility.c:439:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, old_args, sizeof(old_args));
data/freerdp2-2.2.0+dfsg1/client/common/compatibility.c:504:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, old_args, sizeof(old_args));
data/freerdp2-2.2.0+dfsg1/client/common/file.c:705:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(copy, buffer, size);
data/freerdp2-2.2.0+dfsg1/client/common/file.c:794:7:  [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).
	fp = fopen(name, "r");
data/freerdp2-2.2.0+dfsg1/client/common/file.c:882:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(file->LoadBalanceInfo, settings->LoadBalanceInfo, settings->LoadBalanceInfoLength);
data/freerdp2-2.2.0+dfsg1/client/common/file.c:947:7:  [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).
	fp = fopen(name, "w+b");
data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/cliprdr.h:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szTempDir[520];
data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/remdesk.h:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ChannelName[32];
data/freerdp2-2.2.0+dfsg1/include/freerdp/channels/remdesk.h:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ChannelName[32];
data/freerdp2-2.2.0+dfsg1/include/freerdp/client/cliprdr.h:199:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dirname[520];
data/freerdp2-2.2.0+dfsg1/include/freerdp/freerdp.h:418:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		wListDictionary* open;
data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/keyboard.h:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char locale[512];
data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/keyboard.h:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char primaryLanguage[512];
data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/keyboard.h:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char primaryLanguageSymbol[512];
data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/keyboard.h:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subLanguage[512];
data/freerdp2-2.2.0+dfsg1/include/freerdp/locale/keyboard.h:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subLanguageSymbol[512];
data/freerdp2-2.2.0+dfsg1/include/freerdp/peer.h:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[50];
data/freerdp2-2.2.0+dfsg1/include/freerdp/server/rdpdr.h:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char FileName[512];
data/freerdp2-2.2.0+dfsg1/include/freerdp/settings.h:373:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256]; /* plugin name or path */
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/bitmap.c:367:4:  [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[x].bitmapDataStream, data[x].bitmapDataStream, data[x].bitmapLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/bitmap.c:421:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->bitmapDataStream, order->bitmapDataStream, order->bitmapLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/bitmap.c:455:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->bitmapDataStream, order->bitmapDataStream, order->bitmapLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/bitmap.c:489:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->bitmapData.data, order->bitmapData.data, order->bitmapData.length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/brush.c:119:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(data, cacheBrush->data, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/cache.c:130:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(dst->bmp.bitmapData, order->bmp.bitmapData, order->bmp.bitmapDataLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.c:639:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(copy, fragment, size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.c:758:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data->aj, src->aj, size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.c:772:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->unicodeCharacters, glyph->unicodeCharacters, sizeof(WCHAR) * glyph->cGlyphs);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.c:820:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data->aj, src->aj, size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/glyph.c:834:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->unicodeCharacters, glyph->unicodeCharacters, sizeof(WCHAR) * glyph->cGlyphs);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/palette.c:49:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(colorTable, cacheColorTable->colorTable, sizeof(UINT32) * 256);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:114:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pointer->andMaskData, andMaskData, lengthAndMask);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:125:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pointer->xorMaskData, xorMaskData, lengthXorMask);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:344:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->andMaskData, src->andMaskData, src->lengthAndMask);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:354:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->xorMaskData, src->xorMaskData, src->lengthXorMask);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:390:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->andMaskData, src->andMaskData, src->lengthAndMask);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:400:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->xorMaskData, src->xorMaskData, src->lengthXorMask);
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:436:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->colorPtrAttr.andMaskData, src->colorPtrAttr.andMaskData,
data/freerdp2-2.2.0+dfsg1/libfreerdp/cache/pointer.c:447:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->colorPtrAttr.xorMaskData, src->colorPtrAttr.xorMaskData,
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/audio.c:219:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dstFormat->data, srcFormat->data, dstFormat->cbSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/bitmap.c:465:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fom_mask[8192]; /* good for up to 64K bitmap */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/bitmap.c:771:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fom_mask[8192]; /* good for up to 64K bitmap */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/color.c:637:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&dstLine[xDstOffset], &srcLine[xSrcOffset], copyDstWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/color.c:648:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&dstLine[xDstOffset], &srcLine[xSrcOffset], copyDstWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/color.c:685: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(&dstLine[xDstOffset], &srcLine[xSrcOffset], copyDstWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/color.c:739:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pDstLine, pFirstDstLineXOffset, nWidth * bpp);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264.c:274:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(h264->lumaData, coded, codedSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_mf.c:255:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(pbBuffer, pSrcData, SrcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_mf.c:410:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pYUVData[0], &buffer[offset], iStride[0] * sys->frameHeight);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_mf.c:412:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pYUVData[1], &buffer[offset], iStride[1] * (sys->frameHeight / 2));
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/h264_mf.c:414:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pYUVData[2], &buffer[offset], iStride[2] * (sys->frameHeight / 2));
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/ncrush.c:2537:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(HistoryPtr, pSrcData, SrcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc.c:172:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, in, 4);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc.c:211:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->priv->PlaneBuffers[i], rle, originalSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.c:266:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(yplane, yplane - rw, rw);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.c:267:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(coplane, coplane - rw, rw);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.c:268:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(cgplane, cgplane - rw, rw);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.c:385:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(out, in, 4);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_encode.c:411:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(context->priv->PlaneBuffers[i], context->priv->PlaneBuffers[4],
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_sse2.c:313:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(yplane, yplane - rw, rw);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_sse2.c:314:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(coplane, coplane - rw, rw);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/nsc_sse2.c:315:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(cgplane, cgplane - rw, rw);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:950:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pOutput, pInput, nBytesToWrite);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1187:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(outPlane, inPlane, width);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1328:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(dstp, context->rlePlanes[0], dstSizes[0]); /* Alpha */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1333:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(dstp, context->planes[0], planeSize); /* Alpha */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1342:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dstp, context->rlePlanes[1], dstSizes[1]); /* Red */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1347:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dstp, context->planes[1], planeSize); /* Red */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1355:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dstp, context->rlePlanes[2], dstSizes[2]); /* Green */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1360:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dstp, context->planes[2], planeSize); /* Green */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1368:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dstp, context->rlePlanes[3], dstSizes[3]); /* Blue */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/planar.c:1373:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dstp, context->planes[3], planeSize); /* Blue */
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/progressive.c:820:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, current, 4096 * 2);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/progressive.c:822:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(current, buffer, 4096 * 2);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/progressive.c:868:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(sign, buffer, 4096 * 2);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/region.c:228:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dst->data, src->data, src->data->size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx.c:1476:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->quants, &rfx_default_quantization_values,
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_encode.c:222:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(r_buf, r_last, 64 * sizeof(INT16));
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_encode.c:223:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(g_buf, g_last, 64 * sizeof(INT16));
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/rfx_encode.c:224:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(b_buf, b_last, 64 * sizeof(INT16));
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c:280:7:  [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).
	fp = fopen(filename, "r");
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c:1023:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[8192];
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecRemoteFX.c:874:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/tmp/windows.data", "w");
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/test/TestFreeRDPCodecZGfx.c:197:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(BigBuffer, TEST_FOX_DATA, sizeof(TEST_FOX_DATA) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c:715:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(Literals, &xcrush->HistoryBuffer[CurrentOffset], MatchOffsetDiff);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c:730:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(Literals, &xcrush->HistoryBuffer[CurrentOffset], HistoryOffsetDiff);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c:740:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, src, num);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c:751:4:  [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[a], &src[a], diff);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c:755:4:  [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[end], &src[end], rest);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/xcrush.c:1053:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&OriginalData[2], CompressedData, CompressedDataSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:159:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(zgfx->HistoryBuffer[zgfx->HistoryIndex]), src, count);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:167:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(zgfx->HistoryBuffer[zgfx->HistoryIndex]), src, front);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:168:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(zgfx->HistoryBuffer, &src[front], count - front);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:192:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dptr, &(zgfx->HistoryBuffer[index]), bytes);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:197:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dptr, &(zgfx->HistoryBuffer[index]), front);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:198:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&dptr[front], zgfx->HistoryBuffer, bytes - front);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:214:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(dptr, origDst, bytes);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:254:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(zgfx->OutputBuffer, pbSegment, cbSegment);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:349:7:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						CopyMemory(&(zgfx->OutputBuffer[zgfx->OutputCount]), zgfx->pbInputCurrent,
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:395:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(*ppDstData, zgfx->OutputBuffer, zgfx->OutputCount);
data/freerdp2-2.2.0+dfsg1/libfreerdp/codec/zgfx.c:439:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pConcatenated, zgfx->OutputBuffer, zgfx->OutputCount);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:75:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pszPath, pszInstallPrefix, cchInstallPrefix);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:116:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pszPath, pszInstallPrefix, cchInstallPrefix);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:211:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pszFilePath, pszAddinInstallPath, cchAddinInstallPath);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:138:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(key, buffer, keyLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:379:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(file->RASpecificParams, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:412:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(file->RASessionId, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:503:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char set1[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*_";
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:504:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char set2[12] = "!@#$&^*()-+=";
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:505:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char set3[10] = "0123456789";
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:506:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char set4[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:507:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char set5[26] = "abcdefghijklmnopqrstuvwxyz";
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:583:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pbIn[4], PassStubW, cbPassStubW);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:840:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(file->Username, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:871:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(file->LHTicket, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:902:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(file->RCTicket, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:960:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(file->PassStub, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:991:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(r, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:1036:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(r, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:1147:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(file->ConnectionString2, p, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:1178:7:  [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).
	fp = fopen(name, "r");
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:792:7:  [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).
	fp = fopen(keyfile, "rb");
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:838:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_key, key, sizeof(rdpRsaKey));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:847:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_key->Modulus, key->Modulus, key->ModulusLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:857:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_key->PrivateExponent, key->PrivateExponent, key->PrivateExponentLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:886:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_certificate, certificate, sizeof(rdpCertificate));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:895:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_certificate->cert_info.Modulus, certificate->cert_info.Modulus,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:907:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_certificate->x509_cert_chain, certificate->x509_cert_chain,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:939:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(_certificate->x509_cert_chain->array[index].data,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.h:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[8];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/connection.c:288:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(cookie, domain, domain_length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/connection.c:293:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&cookie[domain_length + 1], user, user_length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:104:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!handles->open)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:107:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!handles->open)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:113:35:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!ListDictionary_Add(handles->open, pOpenHandle, pUserData))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:126:51:  [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).
	pUserData = ListDictionary_GetItemValue(handles->open, pOpenHandle);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:133:33:  [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).
	ListDictionary_Remove(handles->open, pOpenHandle);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:135:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (ListDictionary_Count(handles->open) < 1)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:137:32:  [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).
		ListDictionary_Free(handles->open);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ntlm.c:450:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ntlm->inputBuffer[0].pvBuffer, data, size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:188:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fields[12];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chunkSize[11];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chunkSize[11];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1254:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chunkSize[11];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chunkSize[11];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:1643:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bracedUuid[40];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:216:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(p_cont_elem->abstract_syntax.if_uuid), &TSGU_UUID, sizeof(p_uuid_t));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:223:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(p_cont_elem->transfer_syntaxes[0].if_uuid), &NDR_UUID, sizeof(p_uuid_t));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:229:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(p_cont_elem->abstract_syntax.if_uuid), &TSGU_UUID, sizeof(p_uuid_t));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:236:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(p_cont_elem->transfer_syntaxes[0].if_uuid), &BTFN_UUID, sizeof(p_uuid_t));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:251:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, bind_pdu, 24);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:252:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[24], &bind_pdu->p_context_elem, 4);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:253:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[28], &bind_pdu->p_context_elem.p_cont_elem[0], 24);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:254:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[52], bind_pdu->p_context_elem.p_cont_elem[0].transfer_syntaxes, 20);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:255:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[72], &bind_pdu->p_context_elem.p_cont_elem[1], 24);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:256:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[96], bind_pdu->p_context_elem.p_cont_elem[1].transfer_syntaxes, 20);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:259:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset], &bind_pdu->auth_verifier.auth_type, 8);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:260:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset + 8], bind_pdu->auth_verifier.auth_value,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:403:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, auth_3_pdu, 20);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:406:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset], &auth_3_pdu->auth_verifier.auth_type, 8);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:407:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset + 8], auth_3_pdu->auth_verifier.auth_value,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:114:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[status], chunks[index].data, chunks[index].size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:977:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, &request_pdu, 24);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:980:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset], request_pdu.stub_data, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:983:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset], &request_pdu.auth_verifier.auth_type, 8);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_client.c:1002:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[offset], Buffers[1].pvBuffer, Buffers[1].cbBuffer);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_fault.c:378: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.
	static char buffer[1024];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:119:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(ChannelCookie, &buffer[8], 16); /* ChannelCookie (16 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:133:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[12], ChannelCookie, 16); /* ChannelCookie (16 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:170:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[4], Cookie, 16);      /* Cookie (16 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:328:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&buffer[8], ClientAddress, 4); /* ClientAddress (4 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:338:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&buffer[8], ClientAddress, 16); /* ClientAddress (16 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:357:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[4], AssociationGroupId, 16);        /* AssociationGroupId (16 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:430:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20); /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:477:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20); /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:537:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20); /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:572:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20);               /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:657:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20); /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:757:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20);             /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:783:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20); /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rts.c:816:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, ((BYTE*)&header), 20); /* RTS Header (20 bytes) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/tsg.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.
	static char sbuffer[8193] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/tsg.c:1780:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(&tsg->ChannelContext, &ChannelContext, sizeof(CONTEXT_HANDLE));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/tsg.c:1782:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(&tsg->NewChannelContext, &ChannelContext, sizeof(CONTEXT_HANDLE));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gcc.c:1514:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(signature, initial_signature, sizeof(initial_signature));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c:41:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(bitmap, graphics->Bitmap_Prototype, sizeof(rdpBitmap));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c:89:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(graphics->Bitmap_Prototype, bitmap, sizeof(rdpBitmap));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c:102:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pointer, graphics->Pointer_Prototype, sizeof(rdpPointer));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c:123:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(graphics->Pointer_Prototype, pointer, sizeof(rdpPointer));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c:161:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(glyph->aj, aj, cb);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/graphics.c:175:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(graphics->Glyph_Prototype, glyph, sizeof(rdpGlyph));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:109:4:  [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(ret, domain, cbLen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:164:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(AutoReconnectRandom, serverCookie->arcRandomBits, 16);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:168:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(ClientRandom, settings->ClientRandom, settings->ClientRandomLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:218:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(info->ArcRandomBits, p, 16);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:510:4:  [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(ret, domain, cbLenNonNull);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:1041:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(domain, Stream_Pointer(s), cbDomain);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:1079:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(user, Stream_Pointer(s), cbUserName);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:193:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hash[41];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:196:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[MAX_PATH], filenameNew[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:235:7:  [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).
	fp = fopen(filepathNew, "wb");
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:260:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char calFilename[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hash[41];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:280:7:  [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).
	fp = fopen(calPath, "rb");
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:656:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(license->Exponent, Exponent, 4);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:661:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(license->Modulus, Modulus, ModulusLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:1553:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, Stream_Buffer(challengeRespData), Stream_Length(challengeRespData));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:1554:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&buffer[Stream_Length(challengeRespData)], license->HardwareId, HWID_LENGTH);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/listener.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/mcs.c:221:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(mcs->channels[index].Name, settings->ChannelDefArray[index].name, 8);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/mcs.h:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char Name[8];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:82:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(wParam, bounds, sizeof(rdpBounds));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:151:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, playSound, sizeof(PLAY_SOUND_UPDATE));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:189:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, areas, sizeof(RECTANGLE_16) * count);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:209:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lParam, area, sizeof(RECTANGLE_16));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:265:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, surfaceFrameMarker, sizeof(SURFACE_FRAME_MARKER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:294:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, dstBlt, sizeof(DSTBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:311:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, patBlt, sizeof(PATBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:329:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, scrBlt, sizeof(SCRBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:346:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, opaqueRect, sizeof(OPAQUE_RECT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:364:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawNineGrid, sizeof(DRAW_NINE_GRID_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:381:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, multiDstBlt, sizeof(MULTI_DSTBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:398:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, multiPatBlt, sizeof(MULTI_PATBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:416:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, multiScrBlt, sizeof(MULTI_SCRBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:434:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, multiOpaqueRect, sizeof(MULTI_OPAQUE_RECT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:452:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, multiDrawNineGrid, sizeof(MULTI_DRAW_NINE_GRID_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:470:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, lineTo, sizeof(LINE_TO_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:487:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, polyline, sizeof(POLYLINE_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:496:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam->points, polyline->points, sizeof(DELTA_POINT) * wParam->numDeltaEntries);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:513:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, memBlt, sizeof(MEMBLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:530:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, mem3Blt, sizeof(MEM3BLT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:548:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, saveBitmap, sizeof(SAVE_BITMAP_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:565:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, glyphIndex, sizeof(GLYPH_INDEX_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:583:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, fastIndex, sizeof(FAST_INDEX_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:600:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, fastGlyph, sizeof(FAST_GLYPH_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:612:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(wParam->glyphData.aj, fastGlyph->glyphData.aj, fastGlyph->glyphData.cb);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:635:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, polygonSC, sizeof(POLYGON_SC_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:644:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam->points, polygonSC, sizeof(DELTA_POINT) * wParam->numPoints);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:661:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, polygonCB, sizeof(POLYGON_CB_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:670:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam->points, polygonCB, sizeof(DELTA_POINT) * wParam->numPoints);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:688:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, ellipseSC, sizeof(ELLIPSE_SC_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:705:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, ellipseCB, sizeof(ELLIPSE_CB_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:846:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, createOffscreenBitmap, sizeof(CREATE_OFFSCREEN_BITMAP_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:857:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam->deleteList.indices, createOffscreenBitmap->deleteList.indices,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:877:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, switchSurface, sizeof(SWITCH_SURFACE_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:896:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, createNineGridBitmap, sizeof(CREATE_NINE_GRID_BITMAP_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:914:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, frameMarker, sizeof(FRAME_MARKER_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:932:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, streamBitmapFirst, sizeof(STREAM_BITMAP_FIRST_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:951:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, streamBitmapNext, sizeof(STREAM_BITMAP_NEXT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:970:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawGdiPlusFirst, sizeof(DRAW_GDIPLUS_FIRST_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:989:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawGdiPlusNext, sizeof(DRAW_GDIPLUS_NEXT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1008:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawGdiPlusEnd, sizeof(DRAW_GDIPLUS_END_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1028:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawGdiPlusCacheFirst, sizeof(DRAW_GDIPLUS_CACHE_FIRST_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1049:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawGdiPlusCacheNext, sizeof(DRAW_GDIPLUS_CACHE_NEXT_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1070:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, drawGdiPlusCacheEnd, sizeof(DRAW_GDIPLUS_CACHE_END_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1092:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1101:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, windowState, sizeof(WINDOW_STATE_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1121:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1130:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, windowState, sizeof(WINDOW_STATE_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1150:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1161:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, windowIcon, sizeof(WINDOW_ICON_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1171:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lParam->iconInfo->bitsColor, windowIcon->iconInfo->bitsColor,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1182:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lParam->iconInfo->bitsMask, windowIcon->iconInfo->bitsMask,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1193:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lParam->iconInfo->colorTable, windowIcon->iconInfo->colorTable,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1228:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1237:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, windowCachedIcon, sizeof(WINDOW_CACHED_ICON_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1255:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1274:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1283:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, notifyIconState, sizeof(NOTIFY_ICON_STATE_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1303:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1312:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, notifyIconState, sizeof(NOTIFY_ICON_STATE_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1330:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1349:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1358:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lParam, monitoredDesktop, sizeof(MONITORED_DESKTOP_ORDER));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1364:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lParam->windowIds, monitoredDesktop->windowIds, lParam->numWindowIds);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/message.c:1385:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(wParam, orderInfo, sizeof(WINDOW_ORDER_INFO));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nego.c:1316:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(nego->RoutingToken, RoutingToken, nego->RoutingTokenLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:372:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(nla->PublicKey.pvBuffer, tls->PublicKey, tls->PublicKeyLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:757:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(nla->PublicKey.pvBuffer, tls->PublicKey, tls->PublicKeyLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1158:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(Buffers[0].pvBuffer, nla->PublicKey.pvBuffer, Buffers[0].cbBuffer);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1170:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(Buffers[1].pvBuffer, nla->PublicKey.pvBuffer, Buffers[1].cbBuffer);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1330:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, nla->pubKeyAuth.pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1338:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, nla->pubKeyAuth.pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1431:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, nla->pubKeyAuth.pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1439:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, nla->pubKeyAuth.pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1563:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(nla->identity->Domain, Stream_Pointer(s), nla->identity->DomainLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1583:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(nla->identity->User, Stream_Pointer(s), nla->identity->UserLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1603:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(nla->identity->Password, Stream_Pointer(s), nla->identity->PasswordLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1764:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(Buffers[0].pvBuffer, nla->tsCredentials.pvBuffer, Buffers[0].cbBuffer);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1776:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(Buffers[1].pvBuffer, nla->tsCredentials.pvBuffer, Buffers[1].cbBuffer);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1830:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, nla->authInfo.pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:1838:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, nla->authInfo.pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c:460: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.
	static char buffer[64] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c:480: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.
	static char buffer[64] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c:500: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.
	static char buffer[64] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c:1701:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(glyph_index->data, Stream_Pointer(s), glyph_index->cbData);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c:1792:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(fast_index->data, Stream_Pointer(s), fast_index->cbData);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/orders.c:1827:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(fastGlyph->data, Stream_Pointer(s), fastGlyph->cbData);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:364:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(settings->ProxyHostname, hostname, hostnamelen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:408:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port_str[10], recv_buf[256], *eol;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:603:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(ptr, proxyUsername, usernameLen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:607:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(ptr, proxyPassword, userpassLen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:641:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + 5, hostname, hostnlen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/rdp.c:1255: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.
	static char buffer[1024] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/redirection.c:163:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(settings->LoadBalanceInfo, redirection->LoadBalanceInfo,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/redirection.c:236:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(settings->RedirectionPassword, redirection->Password,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/redirection.c:250:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(settings->RedirectionTsvUrl, redirection->TsvUrl,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:188:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(output, session_key_blob, 16);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:379:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(output, md5_digest, 8);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:458:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(output, md5_digest, 8);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:589:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pre_master_secret, client_random, 24);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:590:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pre_master_secret + 24, server_random, 24);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:598:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rdp->sign_key, session_key_blob, 16);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:625:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rdp->sign_key, salt, 3);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:626:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rdp->decrypt_key, salt, 3);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:627:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rdp->encrypt_key, salt, 3);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:632:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rdp->sign_key, salt, 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:633:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rdp->decrypt_key, salt, 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:634:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rdp->encrypt_key, salt, 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:643:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rdp->decrypt_update_key, rdp->decrypt_key, 16);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:644:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rdp->encrypt_update_key, rdp->encrypt_key, 16);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:706:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key, salt, 3);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/security.c:708:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key, salt, 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:101:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, Buffer, Length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:1288:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(Buffer, buffer + messageCtx->offset, *pBytesRead);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:1328:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(buffer, Buffer, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:1430:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(*ppBuffer, &fds[0], sizeof(void*));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:1446:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(*ppBuffer, &(hEvent), sizeof(HANDLE));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:1489:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(*ppBuffer, &bval, sizeof(BOOL));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:597:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char product[sizeof(FREERDP_PRODUCT_STRING)];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:688:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->LoadBalanceInfo, settings->LoadBalanceInfo,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:700:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->ServerRandom, settings->ServerRandom, _settings->ServerRandomLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:711:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->ClientRandom, settings->ClientRandom, _settings->ClientRandomLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:742:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->ChannelDefArray, settings->ChannelDefArray,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:759:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->MonitorDefArray, settings->MonitorDefArray,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:770:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->MonitorIds, settings->MonitorIds, 16 * sizeof(UINT32));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:784:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->ReceivedCapabilities, settings->ReceivedCapabilities, 32);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:785:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->OrderSupport, settings->OrderSupport, 32);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:793:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->BitmapCacheV2CellInfo, settings->BitmapCacheV2CellInfo,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:805:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->GlyphCache, settings->GlyphCache, sizeof(GLYPH_CACHE_DEFINITION) * 10);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:806:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->FragCache, settings->FragCache, sizeof(GLYPH_CACHE_DEFINITION));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:820:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->ClientAutoReconnectCookie, settings->ClientAutoReconnectCookie,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:822:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->ServerAutoReconnectCookie, settings->ServerAutoReconnectCookie,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:829:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_settings->ClientTimeZone, settings->ClientTimeZone, sizeof(TIME_ZONE_INFORMATION));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:841:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->RedirectionPassword, settings->RedirectionPassword,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/settings.c:855:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(_settings->RedirectionTsvUrl, settings->RedirectionTsvUrl,
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tcp.c:664:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ipAddress[INET6_ADDRSTRLEN + 1] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tcp.c:765:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port_str[16];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char address[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.c:134:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(bitmapData->bitmapDataStream, Stream_Pointer(s), bitmapData->bitmapLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.c:1003:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&update->previousBounds, &update->currentBounds, sizeof(rdpBounds));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/update.c:1008:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&update->currentBounds, bounds, sizeof(rdpBounds));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/window.c:548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[3000] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/window.c:942:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1000] = { 0 };
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c:130:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(modulus_reverse, modulus, key_length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c:132:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(exponent_reverse, exponent, exponent_size);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c:134:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(input_reverse, input, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c:381:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 buffer[80];
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c:382:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "Unknown general name type (%d)", general_name_type);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:37:7:  [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).
	fc = fopen(currentFileV2, "w+");
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:42:7:  [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).
	fl = fopen(legacyFileV2, "w+");
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:58:7:  [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).
	fl = fopen(legacyFile, "w+");
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sname[8192];
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dname[8192];
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/Test_x509_cert_info.c:84:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* certificate_file = fopen(certificate_path, "r");
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:634:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ChannelBindingToken, TLS_SERVER_END_POINT, PrefixLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:635:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ChannelBindingToken + PrefixLength, CertificateHash, CertificateHashLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/region.c:222:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/region.c:233:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/region.c:298:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/region.c:368:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/shape.c:161: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(dstp, srcp, nWidth * formatSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiLine.c:687:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_sun.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_xkbfile.c:435:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char xkb_keyname[5] = { 42, 42, 42, 42, 0 }; /* end-of-string at index 5 */
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_xkbfile.c:440:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(xkb_keyname, xkb->names->keys[i].name, 4);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char language[4]; /* Two or three letter language code */
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char country[10]; /* Two or three letter country code (Sometimes with Cyrl_ prefix) */
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:705:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char language[4];
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:706:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char country[10];
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:750:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char language[4];
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:751:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char country[10];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV.c:59:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pY, Ym, nWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV.c:190:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pX, Ya, nWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV.c:312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pY, pSrcY, roi->width);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV.c:348:4:  [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(pY, pSrcU, roi->width);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV.c:358:4:  [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(pY, pSrcV, roi->width);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_neon.c:401:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pY, Ym, nWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_neon.c:590:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pX, Ya, nWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_opencl.c:213:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char platformName[1000];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_opencl.c:214:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char deviceName[1000];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_opencl.c:280:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[2048];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_ssse3.c:1080:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pY, Ym, nWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_ssse3.c:1268:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pX, Ya, nWidth);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_copy.c:89:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void*)pDst, (const void*)pSrc, (size_t)len);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_copy.c:128:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, src, rowbytes);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesAdd.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testStr[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesAlphaComp.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testStr[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesAndOr.c:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testStr[256];
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c:1608:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pYCbCr[0], TEST_Y_COMPONENT, srcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c:1609:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pYCbCr[1], TEST_CB_COMPONENT, srcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c:1610:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pYCbCr[2], TEST_CR_COMPONENT, srcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c:1628:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pSrcDst[0], pYCbCr[0], srcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c:1629:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pSrcDst[1], pYCbCr[1], srcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/TestPrimitivesYCbCr.c:1630:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pSrcDst[2], pYCbCr[2], srcSize);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/measure.h:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char _path[PATH_MAX];                                     \
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/measure.h:87:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char _str1[32], _str2[32];                   \
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:81:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%f", t);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:83:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%d", (int)(t + 0.5));
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:85:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%3d", i);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:87:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%3d,%03d", i / 1000, i % 1000);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:89:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%3d,%03d,000", i / 1000000, (i % 1000000) / 1000);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:91:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%3d,%03d,000,000", i / 1000000000, (i % 1000000000) / 1000000);
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/test/prim_test.c:93:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output, "%f", t);
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/passphrase.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char term_name[L_ctermid];
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/passphrase.c:61:63:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (from_stdin || strcmp(term_name, "") == 0 || (term_file = open(term_name, O_RDWR)) == -1)
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/pcap.c:180:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pcap->fp = fopen(name, write ? "w+b" : "rb");
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/ringbuffer.c:126:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(newData, rb->buffer + rb->readPtr, ringbuffer_used(rb));
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/ringbuffer.c:136:4:  [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, rb->buffer + rb->readPtr, rb->size - rb->readPtr);
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/ringbuffer.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(dst, rb->buffer, rb->writePtr);
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/ringbuffer.c:184:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rb->buffer + rb->writePtr, ptr, toWrite);
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/ringbuffer.c:190:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rb->buffer, ptr, remaining);
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/test/TestRingBuffer.c:175:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rb_ptr, tmpBuf, 50);
data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c:157:7:  [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).
	fp = fopen(filename, "r");
data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c:700:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, descriptorData, size);
data/freerdp2-2.2.0+dfsg1/server/Mac/mf_mountain_lion.c:71: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(localBuf + offset_beg, baseAddress + offset_beg, rect.width * 4);
data/freerdp2-2.2.0+dfsg1/server/Sample/sfreerdp.c:247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[50];
data/freerdp2-2.2.0+dfsg1/server/Sample/sfreerdp.c:257:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen("test_icon.ppm", "r")) == NULL)
data/freerdp2-2.2.0+dfsg1/server/Sample/sfreerdp.c:933:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_interface.h:68:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR deviceName[32];
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:142:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR disp_change[64];
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:147:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_SUCCESSFUL"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:151:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_BADDUALVIEW"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:155:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_BADFLAGS"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:159:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_BADMODE"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:163:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_BADPARAM"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:167:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_FAILED"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:171:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_NOTUPDATED"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:175:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_RESTART"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:179:4:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			_tcscpy(disp_change, _T("DISP_CHANGE_UNKNOWN"));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.h:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prod_name[esc_qvi_prod_name_max];
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_client.c:169:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(settings->LoadBalanceInfo, lb_info, settings->LoadBalanceInfoLength);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_server.c:80:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(*target, routing_token + prefix_len, len);
data/freerdp2-2.2.0+dfsg1/server/shadow/Win/win_shadow.c:272:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&invalidRect, extents, sizeof(RECTANGLE_16));
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:139:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:430:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(msg, &templateMsg, sizeof(templateMsg));
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:723:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[256];
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:396:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(dst, src, numRects * sizeof(RECTANGLE_16));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1255:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(&fragBitmapData[j++], &bitmapData[i++], sizeof(BITMAP_DATA));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1820:7:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						CopyMemory(&pointerPositionMsg, &message, sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1826:7:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						CopyMemory(&pointerAlphaMsg, &message, sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_client.c:1832:7:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						CopyMemory(&audioVolumeMsg, &message, sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, shadow_args, sizeof(shadow_args));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:197:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(largs, shadow_args, sizeof(shadow_args));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_subsystem.c:62:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(subsystem->ep), &ep, sizeof(RDP_SHADOW_ENTRY_POINTS));
data/freerdp2-2.2.0+dfsg1/uwac/include/uwac/uwac.h:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mime[64];
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-display.c:660:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(formats, (const void*)display->shm_formats, *filled * sizeof(enum wl_shm_format));
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-input.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, src, size);
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-input.c:1115:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(seat->pointer_data, data, length);
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-os.c:184:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmpname);
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-os.c:234:7:  [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(path, O_TMPFILE | O_RDWR | O_EXCL, 0600);
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-window.c:760:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(nextDrawingBuffer->data, pendingBuffer->data, window->stride * window->height);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/asn1.h:397:43:  [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).
	WINPR_API void ASN1open_free(ASN1open_t* open);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/crt.h:107:9:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define CopyMemory(Destination, Source, Length) memcpy((Destination), (Source), (Length))
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/crt.h:107:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define CopyMemory(Destination, Source, Length) memcpy((Destination), (Source), (Length))
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h:1102:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char User[256 + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h:1103:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Domain[256 + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/sspi.h:1109:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Password[256 + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/stream.h:160:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(_b, (_s->pointer), (_n));
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/stream.h:187:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(_b, (_s->pointer), (_n));
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/stream.h:250:4:  [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(_s->pointer, (_b), (_n));
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/stream.h:279:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(_dst->pointer, _src->pointer, _n);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:184:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	WINPR_API int MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr,
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winsock.h:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szDescription[WSADESCRIPTION_LEN + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winsock.h:154:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szSystemStatus[WSASYS_STATUS_LEN + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winsock.h:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szDescription[WSADESCRIPTION_LEN + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/winsock.h:157:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szSystemStatus[WSASYS_STATUS_LEN + 1];
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/wtsapi.h:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[CHANNEL_NAME_LEN + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/clipboard.c:454:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pDstData, pSrcData, SrcSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/clipboard.c:491:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(clipboard->data, data, size);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:234:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, dir, len_dir * sizeof(char));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:236:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer + len_dir + 1, file, len_file * sizeof(char));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:252:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, dir, len_dir * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:254:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer + len_dir + 1, file, len_file * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:525:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(descriptor->cFileName, file->remote_name, remote_len * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:746:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->fd = open(file->local_name, O_RDONLY);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:193:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pDstData, data, size);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:238:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pDstData, data, DstSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:306:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pDst, data, SrcSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:334:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char num[20];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:339:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(bom, data, 2);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:360:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pSrcData, data, SrcSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:384:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&pDstData[23], num, 10);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:387:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(pDstData, "<HTML><BODY>");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:389:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(pDstData, "<!--StartFragment-->");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:392:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&pDstData[69], num, 10);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:396:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&pDstData[93], num, 10);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:397:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(pDstData, "<!--EndFragment-->");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:400:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(pDstData, "</BODY></HTML>");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:404:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&pDstData[43], num, 10);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:458:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pDstData, &str[beg], DstSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:468:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(lpDCB, lpLocalDcb, lpDCB->DCBlength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1138:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR lpTargetPath[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1291: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).
	pComm->fd = open(devicePath, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1300:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pComm->fd_read = open(devicePath, O_RDONLY | O_NOCTTY | O_NONBLOCK);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1320:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pComm->fd_write = open(devicePath, O_WRONLY | O_NOCTTY | O_NONBLOCK);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_sercx_sys.c:38:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&SerCxHandflow, pHandflow, sizeof(SERIAL_HANDFLOW));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestCommDevice.c:28:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR lpTargetPath[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestSetCommState.c:219:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dcb2, &dcb, sizeof(DCB));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUICmdLinePromptForCredentials.c:15:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR UserName[CREDUI_MAX_USERNAME_LENGTH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUICmdLinePromptForCredentials.c:16:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Password[CREDUI_MAX_PASSWORD_LENGTH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIParseUserName.c:14:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR User[CREDUI_MAX_USERNAME_LENGTH + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIParseUserName.c:15:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Domain[CREDUI_MAX_DOMAIN_TARGET_LENGTH + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIPromptForCredentials.c:18:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR UserName[CREDUI_MAX_USERNAME_LENGTH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/credui/test/TestCredUIPromptForCredentials.c:19:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Password[CREDUI_MAX_PASSWORD_LENGTH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/alignment.c:158:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(newMemblock, memblock, copySize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestFormatSpecifiers.c:9:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c:135:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cchWideChar = MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)lpMultiByteStr, -1, NULL, 0);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c:157:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	length = MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)lpMultiByteStr, cbMultiByte + 1, lpWideCharStr,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/unicode.c:154:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
int MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, int cbMultiByte,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/unicode.c:403:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		cchWideChar = MultiByteToWideChar(CodePage, dwFlags, lpMultiByteStr, cbMultiByte, NULL, 0);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/unicode.c:423:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	status = MultiByteToWideChar(CodePage, dwFlags, lpMultiByteStr, cbMultiByte, *lpWideCharStr,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/crypto.c:200:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(pMemBlock->pData, pCipherText, pMemBlock->cbData);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/crypto.c:247:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(pMemBlock->pData, pPlainText, pMemBlock->cbData);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoCipher.c:33:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ibuf, plaintext, ilen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoCipher.c:71:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ibuf, obuf, xlen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoProtectMemory.c:27:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(pCipherText, pPlainText, cbPlainText);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(lpBuffer, cwd, length + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:161:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lpBuffer, env, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:264:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(p, *envp, length * sizeof(CHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:444:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(p, mergeStrings[run], mergeLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:454:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(p, envp, length * sizeof(CHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:488:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(p, mergeStrings[run], mergeLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:553:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lpBuffer, env, vLength + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentGetSetEB.c:11:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char test[1024];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentGetSetEB.c:108:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(lpszEnvironmentBlockNew, lpszEnvironmentBlock, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/file.c:769:8:  [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).
		fp = fopen(pFile->lpFileName, "ab");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/file.c:803:8:  [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).
		fp = fopen(pFile->lpFileName, mode);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/file.c:881:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:887:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pFileSearch->lpPath, lpFileName, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:900:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pFileSearch->lpPattern, &lpFileName[index + 1], length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:979:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lpFindFileDataW->cFileName, unicodeFileName, length * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:990:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lpFindFileDataW->cAlternateFileName, unicodeFileName, length * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:1078:4:  [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(fullpath, pFileSearch->lpPath, pathlen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:1083:4:  [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(fullpath + pathlen, pFileSearch->pDirent->d_name, namelen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileCreateFile.c:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmp[sizeof(buffer)];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileCreateFile.c:17:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sname[8192];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c:18:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR FilePath[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c:21:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	length = MultiByteToWideChar(CP_UTF8, 0, str, strlen(str), NULL, 0);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c:30:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_UTF8, 0, str, length, (LPWSTR)BasePath, length * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c:43:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(FilePath, BasePath, length * sizeof(TCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c:20:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR FilePath[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c:23:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	length = MultiByteToWideChar(CP_UTF8, 0, str, strlen(str), NULL, 0);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c:32:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_UTF8, 0, str, length, (LPWSTR)BasePath, length * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c:46:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(FilePath, BasePath, length * sizeof(TCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:271:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:275:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:290:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(lpFilename, buffer, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:295:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lpFilename, buffer, nSize - 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:307:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:308:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:328:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(lpFilename, buffer, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/library.c:333:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lpFilename, buffer, nSize - 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/library/test/TestLibraryGetModuleFileName.c:11:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ModuleFileName[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:435:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(path, basePath, basePathLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:14:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Path[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:72:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("C:\\tmp"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslash.c:86:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("C:\\tmp"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:16:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Path[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:75:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("C:\\tmp"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddBackslashEx.c:89:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("C:\\tmp"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:16:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Path[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:114:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("C:\\456789"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAddExtension.c:126:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("C:\\456789"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchAppend.c:17:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Path[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:23:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Path[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathCchStripPrefix.c:116:2:  [2] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
	_tcscpy(Path, _T("\\\\?\\5:"));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathIsUNCEx.c:16:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR Path[PATHCCH_MAX_CCH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathMakePath.c:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[64];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:196:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sndbuf[PIPE_BUFFER_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/test/TestPipeCreateNamedPipe.c:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rcvbuf[PIPE_BUFFER_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolWork.c:24:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(c, a, 1024);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pool/test/TestPoolWork.c:25:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(c, b, 1024);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry.c:304:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(pData, pValue->data.string, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:138:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(name, p[0], length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:297:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(subkey->name, p[0], length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:417:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		reg->fp = fopen(reg->filename, "r");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:421:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		reg->fp = fopen(reg->filename, "r+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:424:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			reg->fp = fopen(reg->filename, "w+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/rpc.c:818:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory((void*)NilUuid, (void*)&UUID_NIL, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/shell/shell.c:131:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		MultiByteToWideChar(CP_ACP, 0, lpProfileDirA, cchSizeA, lpProfileDir, *lpcchSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1060:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1062:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_IGNORE");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1068:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1070:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_CHANGED");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1076:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1078:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_UNKNOWN");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1084:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1086:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_UNAVAILABLE");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1092:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1094:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_EMPTY");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1100:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1102:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_PRESENT");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1108:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1110:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_ATRMATCH");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1116:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1118:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_EXCLUSIVE");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1124:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1126:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_INUSE");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1132:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1134:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_MUTE");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1140:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(szReaderState, " | ");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1142:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_UNPOWERED");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard.c:1146:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(szReaderState, "SCARD_STATE_UNAWARE");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:1461:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(states[j].rgbAtr), &(rgReaderStates[i].rgbAtr), PCSC_MAX_ATR_SIZE);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:1484:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(rgReaderStates[i].rgbAtr), &(states[j].rgbAtr), PCSC_MAX_ATR_SIZE);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:1539:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(states[index].rgbAtr), &(rgReaderStates[index].rgbAtr), 36);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:1551:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(rgReaderStates[index].rgbAtr), &(states[index].rgbAtr), 36);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2078:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pcsc_pbExtraBytes, pbExtraBytes, cbExtraBytes);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2098:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pcsc_pbExtraBytes, pbExtraBytes, cbExtraBytes);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2115:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pbExtraBytes, pcsc_pbExtraBytes, cbExtraBytes); /* copy extra bytes */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2363:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(pbAttr, (BYTE*)friendlyNameW, (length * 2));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2387:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(pbAttr, (BYTE*)friendlyNameA, length + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2701:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mem, data->data, data->len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2705:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(Data, data->data, data->len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2752:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mem, data->data, data->len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2756:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(Data, data->data, data->len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2787:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data->data, Data, data->len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2821:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data->data, Data, data->len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardStatus.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[100];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/CredSSP/credssp.c:124:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&(credentials->identity), identity, sizeof(SEC_WINNT_AUTH_IDENTITY));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c:542:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(output_buffer->pvBuffer, output_tok.value, output_tok.length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c:672:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(data_buffer->pvBuffer, output.value, output.length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c:719:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(data_buffer_to_unwrap->pvBuffer, output.value, output.length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:107:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->ServicePrincipalName.Buffer, ServicePrincipalName,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:680:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(blob, ntlm->ServerChallenge, 8); /* Server challenge. */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:684:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[16], ntlm->Timestamp, 8);       /* Time. */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:685:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[24], ntlm->ClientChallenge, 8); /* Client challenge. */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:688:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[36], target->pvBuffer, target->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:702:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(blob, ntlm->NegotiateMessage.pvBuffer, ntlm->NegotiateMessage.cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:704:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(blob, ntlm->ChallengeMessage.pvBuffer, ntlm->ChallengeMessage.cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:706:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(blob, ntlm->AuthenticateMessage.pvBuffer, ntlm->AuthenticateMessage.cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:784:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(randkey->pvBuffer, context->EncryptedRandomSessionKey, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:797:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(mic->pvBuffer, message->MessageIntegrityCheck, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:836:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->NtlmHash, AuthNtlmHash->NtlmHash, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:838:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->NtlmV2Hash, AuthNtlmHash->NtlmHash, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:872:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->NegotiateMessage.pvBuffer, AuthNtlmMessage->buffer,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:882:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->ChallengeMessage.pvBuffer, AuthNtlmMessage->buffer,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:892:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->AuthenticateMessage.pvBuffer, AuthNtlmMessage->buffer,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:907:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->ChallengeTimestamp, AuthNtlmTimestamp->Timestamp, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:909:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->Timestamp, AuthNtlmTimestamp->Timestamp, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:921:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->ClientChallenge, AuthNtlmClientChallenge->ClientChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:932:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->ServerChallenge, AuthNtlmServerChallenge->ServerChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:1003:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(data, data_buffer->pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:1030:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(data_buffer->pvBuffer, data, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:1047:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&signature[4], (void*)checksum, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:1098:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(data, data_buffer->pvBuffer, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:1105:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(data_buffer->pvBuffer, data, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm.c:1137:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&expected_signature[4], (void*)checksum, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c:267:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(ntlm_av_pair_get_value_pointer(pAvPair), Value, AvLen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:193:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(timestamp, &(time64.QuadPart), 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:204:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->Timestamp, context->ChallengeTimestamp, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:397:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(value, context->ServerChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:398:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&value[8], context->ClientChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:409:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&response[16], context->ClientChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:443:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[8], context->Timestamp, 8);        /* Timestamp (8 bytes) */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:444:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[16], context->ClientChallenge, 8); /* ClientChallenge (8 bytes) */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:446:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[28], TargetInfo->pvBuffer, TargetInfo->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:458:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(blob, context->ServerChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:459:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[8], ntlm_v2_temp.pvBuffer, ntlm_v2_temp.cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:470:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(blob, context->NtProofString, WINPR_MD5_DIGEST_LENGTH);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:471:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&blob[16], ntlm_v2_temp.pvBuffer, ntlm_v2_temp.cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:534:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->KeyExchangeKey, context->SessionBaseKey, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:554:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->ExportedSessionKey, context->RandomSessionKey, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:589:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->RandomSessionKey, context->KeyExchangeKey, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:612:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(value, exported_session_key, WINPR_MD5_DIGEST_LENGTH);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:613:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&value[WINPR_MD5_DIGEST_LENGTH], sign_magic->pvBuffer, sign_magic->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:672:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(p, exported_session_key, WINPR_MD5_DIGEST_LENGTH);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:673:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&p[WINPR_MD5_DIGEST_LENGTH], seal_magic->pvBuffer, seal_magic->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:39: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.
static const char NTLM_SIGNATURE[8] = { 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0' };
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:114:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(header->Signature, NTLM_SIGNATURE, sizeof(NTLM_SIGNATURE));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:273:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->NegotiateMessage.pvBuffer, buffer->pvBuffer, buffer->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:353:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->NegotiateMessage.pvBuffer, buffer->pvBuffer, buffer->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:409:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->ServerChallenge, message->ServerChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:457:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(context->ChallengeTimestamp, ptr, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:469:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->ChallengeMessage.pvBuffer, Stream_Buffer(s) + StartOffset, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:577:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(message->ServerChallenge, context->ServerChallenge, 8); /* ServerChallenge */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:632:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->ChallengeMessage.pvBuffer, Stream_Buffer(s), length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:753:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->ClientChallenge, context->NTLMv2Response.Challenge.ClientChallenge, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:771:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(context->EncryptedRandomSessionKey, message->EncryptedRandomSessionKey.Buffer,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:780:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->AuthenticateMessage.pvBuffer, Stream_Buffer(s), length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:830:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(credentials->identity.User, message->UserName.Buffer, message->UserName.Len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:841:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(credentials->identity.Domain, message->DomainName.Buffer,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:996:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(context->AuthenticateMessage.pvBuffer, Stream_Buffer(s), length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/NTLM/ntlm_message.c:1084:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel.c:142:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&credentials->cred, cred, sizeof(SCHANNEL_CRED));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel.c:214:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&context->cred, &credentials->cred, sizeof(SCHANNEL_CRED));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.c:388:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pBuffer->pvBuffer, context->ReadBuffer, status);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.c:447:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pBuffer->pvBuffer, context->ReadBuffer, status);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.c:493:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pStreamHeaderBuffer->pvBuffer, &context->ReadBuffer[offset], length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.c:497:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pStreamBodyBuffer->pvBuffer, &context->ReadBuffer[offset], length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Schannel/schannel_openssl.c:502:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pStreamTrailerBuffer->pvBuffer, &context->ReadBuffer[offset], length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_gss.c:489:93:  [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).
                                            UINT32* ctx_flags, int* locally_initiated, int* open)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_gss.c:499:91:  [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).
	                                  lifetime_rec, mech_type, ctx_flags, locally_initiated, open);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_gss.h:387:75:  [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* locally_initiated, int* open);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_gss.h:392:54:  [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).
	    UINT32* ctx_flags, int* locally_initiated, int* open);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c:403:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(identity->Password, password, passwordLength * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c:437:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(identity->User, srcIdentity->User, identity->UserLength * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c:450:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(identity->Domain, srcIdentity->Domain, identity->DomainLength * sizeof(WCHAR));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/sspi_winpr.c:466:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(identity->Password, srcIdentity->Password,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:416:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(AuthNtlmHash.NtlmHash, TEST_NTLM_V2_HASH, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:421:6:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					CopyMemory(AuthNtlmHash.NtlmHash, TEST_NTLM_HASH, 16);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:536:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(AuthNtlmTimestamp.Timestamp, TEST_NTLM_TIMESTAMP, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:545:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(AuthNtlmClientChallenge.ClientChallenge, TEST_NTLM_CLIENT_CHALLENGE, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:546:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(AuthNtlmServerChallenge.ServerChallenge, TEST_NTLM_SERVER_CHALLENGE, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:568:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pSecBuffer->pvBuffer, TEST_NTLM_NEGOTIATE, pSecBuffer->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:594:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(AuthNtlmTimestamp.Timestamp, TEST_NTLM_TIMESTAMP, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:603:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(AuthNtlmClientChallenge.ClientChallenge, TEST_NTLM_CLIENT_CHALLENGE, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:604:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(AuthNtlmServerChallenge.ServerChallenge, TEST_NTLM_SERVER_CHALLENGE, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:627:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pSecBuffer->pvBuffer, TEST_NTLM_CHALLENGE, pSecBuffer->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestNTLM.c:667:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(pSecBuffer->pvBuffer, TEST_NTLM_AUTHENTICATE, pSecBuffer->cbBuffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestSchannel.c:233:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(pMessageBuffer, buffer, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestSchannel.c:511:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(lpTokenIn, &lpTokenIn[NumberOfBytesRead - pSecBuffer->cbBuffer],
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestSchannel.c:565:7:  [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).
	fp = fopen(fullpath, "w+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestSchannel.c:581:7:  [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).
	fp = fopen(fullpath, "w+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspicli/sspicli.c:204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char login[MAX_PATH];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspicli/sspicli.c:219:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(lpNameBuffer, login, length + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[256];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:142:7:  [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(pathname, O_RDONLY);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:181:7:  [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(pathname, O_RDONLY);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:269:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(result, p, len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:471:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[64];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:584:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = TEMP_FAILURE_RETRY(open(filepath, O_RDONLY));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[256];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c:441:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(lpBuffer, hostname, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c:450:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[256];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c:491:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(lpBuffer, hostname, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c:664:11:  [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("/proc/self/auxv", O_RDONLY);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c:146:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(pOutput, p, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c:166:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pOutput, p, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c:229:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(pOutput, pBeg, length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/test/TestThreadCreateProcess.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/test/TestThreadCreateProcess.c:111:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(lpEnvironment, (void*)TESTENV_T, sizeof(TESTENV_T));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:233:7:  [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).
	fp = fopen("/var/db/zoneinfo", "r");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:235:7:  [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).
	fp = fopen("/etc/timezone", "r");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:377:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		status = MultiByteToWideChar(CP_UTF8, 0, dtz->StandardName, -1, tz->StandardName,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:386:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		status = MultiByteToWideChar(CP_UTF8, 0, dtz->DaylightName, -1, tz->DaylightName,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c:535:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(str, list, len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c:84:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[commitSize], block, blockSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c:93:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[commitSize], block, blockSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c:254:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(block, &data[status], writeSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c:271:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(block, &data[status], writeSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c:370:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&data[status], block, readSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BipBuffer.c:387:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&data[status], block, readSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/BitStream.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pbuffer[64 * 8 + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:97:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&(queue->array[old_capacity]), queue->array, queue->tail * sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:102:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&(queue->array[queue->tail]), message, sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:148:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(message, &(queue->array[queue->head]), sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/MessageQueue.c:172:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(message, &(queue->array[queue->head]), sizeof(wMessage));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/PubSub.c:94:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(&pubSub->events[pubSub->count], events, count * sizeof(wEventType));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/collections/Queue.c:173:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(&(queue->array[old_capacity]), queue->array, queue->tail * sizeof(void*));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/debug.c:557:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dmsg, msg, min(rc, size - 1));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/image.c:156:7:  [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).
	fp = fopen(filename, "w+b");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/image.c:417:7:  [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).
	fp = fopen(filename, "rb");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/image.c:455:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(sig, buffer, 8);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:107:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(ini->buffer, iniString, fileSize);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:120:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ini->fp = fopen(filename, "rb");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:122:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ini->fp = fopen(filename, "w+b");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:554:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(p, section->name, nameLength + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:605:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(p, pKey->name, nameLength + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:683:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char strVal[128];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:370:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "rb");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:400:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "wb");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:2699:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void lodepng_chunk_type(char type[5], const unsigned char* chunk)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.h:512:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.h:625:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void lodepng_chunk_type(char type[5], const unsigned char* chunk);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:58:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, Password, PasswordLength, PasswordW, PasswordLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:108:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, User, UserLength, UserW, UserLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:109:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, Domain, DomainLength, DomainW, DomainLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:110:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, Password, PasswordLength, PasswordW, PasswordLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:137:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(buffer, User, UserLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:142:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(&buffer[UserLength], Domain, DomainLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:173:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, User, UserLength, UserW, UserLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ntlm.c:174:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_ACP, 0, Domain, DomainLength, DomainW, DomainLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:64:8:  [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).
		fp = fopen(filename, "r");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:67:8:  [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).
		fp = fopen(filename, "r+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:70:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fp = fopen(filename, "w+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:211:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(entry->User, p[0], entry->UserLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:224:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(entry->Domain, p[1], entry->DomainLength);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:374:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
						MultiByteToWideChar(CP_ACP, 0, entry->Domain, EntryDomainLength / 2,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:405:6:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
					MultiByteToWideChar(CP_ACP, 0, entry->User, EntryUserLength / 2,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/stream.c:51:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(new_buf, s->buffer, s->capacity);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestBitStream.c:10:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:17:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fsrc = fopen(src, "rb");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char src_png[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:262:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char src_bmp[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:263:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dst_png[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dst_bmp[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dst_png2[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/test/TestImage.c:266:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dst_bmp2[PATH_MAX];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:819:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char namespace[MAX_USER_NAME];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:822:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user_data[MAX_USER_DATA];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:934:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char internalDecimalPointString[MAX_LOCALE_SEPARATOR_LENGTH + 1] = ".";
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:938:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char internalThousandSeparator[MAX_LOCALE_SEPARATOR_LENGTH + 1] = ",";
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:939:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char internalGrouping[MAX_LOCALE_GROUPS] = { (char)NO_GROUPING };
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:949:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char internalCollationArray[MAX_CHARACTER_CLASS][MAX_CHARACTER_CLASS];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:2473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MAX_CHARS_IN(trio_uintmax_t) * (1 + MAX_LOCALE_SEPARATOR_LENGTH) + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:2809:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MB_LEN_MAX + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:5374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char first[2];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:5375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char second[2];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:5889:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MB_LEN_MAX + 1];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:6019:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char doubleString[512];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:6219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[sizeof(internalNullString)];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/BinaryAppender.c:80:35:  [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).
	binaryAppender->FileDescriptor = fopen(binaryAppender->FullFileName, "a+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.c:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.c:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/CallbackAppender.c:133:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	callbackAppender->callbacks = memcpy(callbackAppender->callbacks, value, sizeof(wLogCallbacks));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/ConsoleAppender.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/ConsoleAppender.c:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char MessageString[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/DataMessage.c:36:7:  [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).
	fp = fopen(filename, "w+b");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/FileAppender.c:107:33:  [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).
	fileAppender->FileDescriptor = fopen(fileAppender->FullFileName, "a+");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/FileAppender.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/JournaldAppender.c:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/Layout.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[256];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/PacketMessage.c:190:18:  [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* pcap_fp = fopen(name, write ? "w+b" : "rb");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/UdpAppender.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addressString[256];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/UdpAppender.c:64:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addressString, udpAppender->host, addrLen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/UdpAppender.c:80:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&udpAppender->targetAddr, result->ai_addr, result->ai_addrlen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/UdpAppender.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[WLOG_MAX_PREFIX_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/wlog/wlog.c:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char formattedLogMessage[WLOG_MAX_STRING_SIZE];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:244:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&in.sin_addr, pAddr, sizeof(struct in_addr));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:254:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&in.sin6_addr, pAddr, sizeof(struct in_addr6));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:277:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pAddrBuf, &((struct sockaddr_in*)&addr)->sin_addr, sizeof(struct in_addr));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:281:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pAddrBuf, &((struct sockaddr_in6*)&addr)->sin6_addr, sizeof(struct in6_addr));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:801:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char address[128];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:802:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char broadcast[128];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:803:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char netmask[128];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/winsock/winsock.c:804:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wnd/wnd.c:57:2:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	CopyMemory(_lpwcx, lpwcx, sizeof(WNDCLASSEXA));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraStartRemoteSessionEx.c:12:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char logonIdStr[10];
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:221:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pChannel->VirtualName, pVirtualName, virtualNameLen);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:320:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(lpBuffer, &(pChannel->chunk[pChannel->readOffset]), numBytesToRead);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:419:4:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			CopyMemory(lpBuffer, pChannel->chunk, numBytesToRead);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:532:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				CopyMemory(lpBuffer, pChannel->header, numBytesRead);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:743:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(*ppBuffer, &(pChannel->hFile), *pBytesReturned);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:756:3:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		CopyMemory(*ppBuffer, &(pChannel->hEvent), *pBytesReturned);
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:477:7:  [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).
	fp = fopen(fullpath, "w+");
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:635:7:  [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).
	fp = fopen(fullpath, "w+");
data/freerdp2-2.2.0+dfsg1/channels/audin/client/oss/audin_oss.c:258:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stmp = read(pcm_handle, buffer, buffer_size);
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:253:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pAddin->cName, p[0], (p[1] - p[0]) - 1);
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:266:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pAddin->cName, p[0], (p[1] - p[0]) - 1);
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:267:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pAddin->cSubsystem, p[2], (p[3] - p[2]) - 1);
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:282:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pAddin->cName, p[0], (p[1] - p[0]) - 1);
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:283:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pAddin->cSubsystem, p[2], (p[3] - p[2]) - 1);
data/freerdp2-2.2.0+dfsg1/channels/client/addin.c:284:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pAddin->cType, p[3], (p[4] - p[3]) - 1);
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c:429:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	UINT32 read;
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c:436:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (ReadFile(file->file_handle, buffer, *Length, &read, NULL))
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_file.c:438:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		*Length = read;
data/freerdp2-2.2.0+dfsg1/channels/drive/client/drive_main.c:911:12:  [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).
		length = strlen(name);
data/freerdp2-2.2.0+dfsg1/channels/parallel/client/parallel_main.c:170:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	status = read(parallel->file, buffer, Length);
data/freerdp2-2.2.0+dfsg1/channels/parallel/client/parallel_main.c:452:12:  [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).
		length = strlen(name);
data/freerdp2-2.2.0+dfsg1/channels/printer/client/printer_main.c:185:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rc = ReadFile(file, fdata, lowSize, &read, NULL);
data/freerdp2-2.2.0+dfsg1/channels/printer/client/printer_main.c:187:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (lowSize != read)
data/freerdp2-2.2.0+dfsg1/channels/rdp2tcp/client/rdp2tcp_main.c:315:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(channelDef.name, RDP2TCP_CHAN_NAME, sizeof(channelDef.name));
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:604:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uname, getlogin(), sizeof(uname));
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:910:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(rdpdr->computerName, settings->ClientHostname, sizeof(rdpdr->computerName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:912:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(rdpdr->computerName, settings->ComputerName, sizeof(rdpdr->computerName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/client/rdpdr_main.c:1119:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy((char*)Stream_Pointer(s), device->name, 8);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1375:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pathLength = (strlen(path) + 1) * sizeof(WCHAR);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1524:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pathLength = path ? (strlen(path) + 1) * sizeof(WCHAR) : 0;
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1572:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pathLength = path ? (strlen(path) + 1) * sizeof(WCHAR) : 0;
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1711:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->PathName, path, sizeof(irp->PathName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1822:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->PathName, path, sizeof(irp->PathName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:1990:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->PathName, path, sizeof(irp->PathName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:2063:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->PathName, path, sizeof(irp->PathName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:2392:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->PathName, path, sizeof(irp->PathName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:2545:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->PathName, oldPath, sizeof(irp->PathName) - 1);
data/freerdp2-2.2.0+dfsg1/channels/rdpdr/server/rdpdr_main.c:2546:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(irp->ExtraBuffer, newPath, sizeof(irp->ExtraBuffer) - 1);
data/freerdp2-2.2.0+dfsg1/channels/serial/client/serial_main.c:869:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(name);
data/freerdp2-2.2.0+dfsg1/channels/smartcard/client/smartcard_main.c:748:12:  [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).
		length = strlen(smartcard->device.name);
data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.c:119:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, udspath, sizeof(addr.sun_path) - 1);
data/freerdp2-2.2.0+dfsg1/channels/sshagent/client/sshagent_main.c:148:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int bytes_read = read(callback->agent_fd, buffer, sizeof(buffer));
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/alsa/tsmf_alsa.c:72:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(alsa->device, "default", sizeof(alsa->device));
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/alsa/tsmf_alsa.c:76:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(alsa->device, device, sizeof(alsa->device) - 1);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/oss/tsmf_oss.c:77:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(oss->dev_name, "/dev/dsp", sizeof(oss->dev_name));
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/oss/tsmf_oss.c:81:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(oss->dev_name, device, sizeof(oss->dev_name) - 1);
data/freerdp2-2.2.0+dfsg1/channels/tsmf/client/pulse/tsmf_pulse.c:129:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pulse->device, device, sizeof(pulse->device) - 1);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/libusb/libusb_udevman.c:478:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t slen = strlen(src);
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:95:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) > 8)
data/freerdp2-2.2.0+dfsg1/channels/urbdrc/client/urbdrc_main.c:96:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p = (path + strlen(path)) - 8;
data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c:19:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = strlen(arg);
data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c:65:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
					strncpy(&tmp[cs], "<replaceable>", len);
data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c:68:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
					strncpy(&tmp[cs], "&lt;", len);
data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c:89:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
					strncpy(&tmp[cs], "</replaceable>", len);
data/freerdp2-2.2.0+dfsg1/client/X11/generate_argument_docbook.c:92:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
					strncpy(&tmp[cs], "&gt;", len);
data/freerdp2-2.2.0+dfsg1/client/X11/xf_client.c:1190:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(login_name, getlogin(), sizeof(login_name));
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:186:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return (0 == strncmp(server->formatName, client->formatName, strlen(server->formatName)));
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:300:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t name_length = format->formatName ? strlen(format->formatName) : 0;
data/freerdp2-2.2.0+dfsg1/client/X11/xf_cliprdr.c:574:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size = strlen((char*)data) + 1;
data/freerdp2-2.2.0+dfsg1/client/common/client.c:453:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		answer = fgetc(stdin);
data/freerdp2-2.2.0+dfsg1/client/common/client.c:470:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				fgetc(stdin);
data/freerdp2-2.2.0+dfsg1/client/common/client.c:475:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				fgetc(stdin);
data/freerdp2-2.2.0+dfsg1/client/common/client.c:480:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				fgetc(stdin);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:108:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(invalid) != strlen(replacement))
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:108:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(invalid) != strlen(replacement))
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:198:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		x = strlen(*dst);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:199:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	y = strlen(value);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:206:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(tmp, ",");
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:268:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(text);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:483:12:  [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).
		length = strlen(argv[index]);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:593:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (count > 1 && strlen(params[1]))
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1019:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(*domain, username, length);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1233:12:  [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).
		length = strlen(argv[index]);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1481:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const size_t strLen = strlen(str);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1482:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const size_t extLen = strlen(ext);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1642:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(settings->ServerHostname, arg->Value, length);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:1664:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(settings->ServerHostname, p + 1, length - 1);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:2070:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(settings->GatewayHostname, arg->Value, s);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:2177:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(settings->ProxyHostname, arg->Value, length);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:2275:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			settings->LoadBalanceInfoLength = (UINT32)strlen((char*)settings->LoadBalanceInfo);
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:3071:57:  [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).
			crypto_base64_decode((const char*)(arg->Value), (int)strlen(arg->Value), &base64,
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:3371:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		FillMemory(arg->Value, strlen(arg->Value), '*');
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:3378:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		FillMemory(arg->Value, strlen(arg->Value), '*');
data/freerdp2-2.2.0+dfsg1/client/common/cmdline.c:3467:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (settings->DrivesToRedirect && (strlen(settings->DrivesToRedirect) != 0))
data/freerdp2-2.2.0+dfsg1/client/common/compatibility.c:270:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (_stricmp(&(argv[index])[strlen(argv[index]) - 4], ".rdp") == 0)
data/freerdp2-2.2.0+dfsg1/client/common/compatibility.c:653:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			FillMemory(arg->Value, strlen(arg->Value), '*');
data/freerdp2-2.2.0+dfsg1/client/common/file.c:596:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	end = str + strlen(str) - 1;
data/freerdp2-2.2.0+dfsg1/client/common/file.c:1384:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		settings->LoadBalanceInfoLength = (UINT32)strlen((char*)settings->LoadBalanceInfo);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:59:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchLibraryPath = strlen(pszLibraryPath) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:60:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchInstallPrefix = strlen(pszInstallPrefix) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:100: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).
	cchAddinPath = strlen(pszAddinPath) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:101:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchInstallPrefix = strlen(pszInstallPrefix) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:152:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchFileName = strlen(pszFileName);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:158:12:  [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).
		cchExt = strlen(pszExt);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:181: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).
	cchAddinFile = strlen(pszAddinFile);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:186:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t relPathLen = strlen(pszPath) + cchAddinFile + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/addin.c:204:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cchAddinInstallPath = strlen(pszAddinInstallPath);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:235:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(str);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:459:12:  [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).
		length = strlen(p);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:486:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nameLength = strlen(name) + strlen("NAME=");
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nameLength = strlen(name) + strlen("NAME=");
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:487:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	passLength = strlen(pass) + strlen("PASS=");
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:487:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	passLength = strlen(pass) + strlen("PASS=");
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/assistance.c:720:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(str);
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings.c:104:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(option) + strlen(value) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings.c:104:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(option) + strlen(value) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings.c:148:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(option) + strlen(value) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/common/settings.c:148:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(option) + strlen(value) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/certificate.c:718:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bio = BIO_new_mem_buf((void*)keycontent, strlen(keycontent));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:284:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hostnameLength = strlen(hostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:328:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hostnameLength = strlen(hostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:376:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hostnameLength = strlen(hostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:812:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pChannelOpenData->name, pChannelDef->name, CHANNEL_NAME_LEN);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:818:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(channel->name, pChannelDef->name, 7);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:899:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pChannelOpenData->name, pChannelDef->name, CHANNEL_NAME_LEN);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/client.c:905:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(channel->name, pChannelDef->name, 7);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/connection.c:273:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			user_length = strlen(settings->Username);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/connection.c:281:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		domain_length = strlen(domain);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/freerdp.c:1113:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(context->errorDescription, description, 499);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ncacn_http.c:119:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		crypto_base64_decode(token64, strlen(token64), &ntlmTokenData, &ntlmTokenLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ncacn_http.c:146:7:  [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(settings->GatewayPassword) || !strlen(settings->GatewayUsername))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ncacn_http.c:146:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    !strlen(settings->GatewayPassword) || !strlen(settings->GatewayUsername))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/ncacn_http.c:272:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		crypto_base64_decode(token64, strlen(token64), &ntlmTokenData, &ntlmTokenLength);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:195:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buffer, "|");
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:582:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(token64);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:870:7:  [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(settings->GatewayPassword) || !strlen(settings->GatewayUsername))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rdg.c:870:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    !strlen(settings->GatewayPassword) || !strlen(settings->GatewayUsername))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:129:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (!strlen(settings->GatewayPassword)) || (!strlen(settings->GatewayUsername)))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/gateway/rpc_bind.c:129:48:  [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(settings->GatewayPassword)) || (!strlen(settings->GatewayUsername)))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:138:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(result, "|");
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:1328:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	domainLen = strlen(info->domain);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/info.c:1332:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	usernameLen = strlen(info->username);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:177:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!winpr_Digest_Update(sha1, (const BYTE*)hostname, strlen(hostname)))
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:625:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		targetLen = strlen(hostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:1469:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	license->ClientUserName->length = strlen(username) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/license.c:1471:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	license->ClientMachineName->length = strlen(license->rdp->settings->ClientHostname) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/listener.c:173:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nego.c:876:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cookie_length = strlen(nego->cookie);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:223:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) == 0)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:255:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			entry = SamLookupUserA(sam, settings->Username, strlen(settings->Username), NULL, 0);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:332:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(settings->PasswordHash) == 32)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:373:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = sizeof(TERMSRV_SPN_PREFIX) + strlen(settings->ServerHostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/nla.c:912:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				                                 nla->SamFile, strlen(nla->SamFile) + 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:162: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).
	host_len = strlen(settings->ServerHostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:172:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const size_t currentlen = strlen(current);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:353: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).
		hostnamelen = strlen(hostname);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:413:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Stream_Write(s, hostname, strlen(hostname));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:415:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Stream_Write(s, port_str, strlen(port_str));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/proxy.c:417:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	Stream_Write(s, hostname, strlen(hostname));
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:352:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(ChannelName) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/server.c:1069:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(pVirtualName);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/tcp.c:746:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c:201:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	commandLineLen = strlen(exe) + strlen("--local-only --port=XXXXX") + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/test/TestConnect.c:201:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	commandLineLen = strlen(exe) + strlen("--local-only --port=XXXXX") + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:182:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if ((strlen(transport->settings->Domain) != 0) &&
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:563:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read < (SSIZE_T)bytes)
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:565:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const SSIZE_T tr = (SSIZE_T)bytes - read;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:567:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int status = BIO_read(transport->frontBio, data + read, r);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:589:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				return read;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:603:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		VALGRIND_MAKE_MEM_DEFINED(data + read, bytes - read);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:603:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		VALGRIND_MAKE_MEM_DEFINED(data + read, bytes - read);
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/transport.c:609:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read;
data/freerdp2-2.2.0+dfsg1/libfreerdp/core/window.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).
	if (!string || strlen(string) < 1)
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:151:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	DWORD read;
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:153:55:  [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).
	PathCchConvertStyleA(certificate_store->legacy_file, strlen(certificate_store->legacy_file),
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:187:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ReadFile(fp, data, size, &read, NULL) || (read != size))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:187:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ReadFile(fp, data, size, &read, NULL) || (read != size))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:201:12:  [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).
		length = strlen(pline);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:280:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	DWORD read;
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:282:48:  [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).
	PathCchConvertStyleA(certificate_store->file, strlen(certificate_store->file), PATH_STYLE_UNIX);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:315:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ReadFile(fp, data, size, &read, NULL) || (read != size))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:315:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ReadFile(fp, data, size, &read, NULL) || (read != size))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:329:12:  [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).
		length = strlen(pline);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:356:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						crypto_base64_decode(subject, strlen(subject), (BYTE**)psubject, &outLen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:359:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						crypto_base64_decode(issuer, strlen(issuer), (BYTE**)pissuer, &outLen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:406:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	DWORD read, written;
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:409:48:  [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).
	PathCchConvertStyleA(certificate_store->file, strlen(certificate_store->file), PATH_STYLE_UNIX);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:440:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ReadFile(fp, data, size, &read, NULL) || (read != size))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:440:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!ReadFile(fp, data, size, &read, NULL) || (read != size))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:473:12:  [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).
		length = strlen(pline);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:570:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length = strlen(line);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:620:48:  [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).
	PathCchConvertStyleA(certificate_store->file, strlen(certificate_store->file), PATH_STYLE_UNIX);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:700: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).
		certdata->subject = crypto_base64_encode((const BYTE*)subject, strlen(subject));
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:705:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		certdata->issuer = crypto_base64_encode((const BYTE*)issuer, strlen(issuer));
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/certificate.c:714:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(hostname); i++)
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/crypto.c:793:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(*lengths)[i] = strlen(result[i]);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestBase64.c:70:47:  [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).
		crypto_base64_decode(encodeTests[i].output, strlen(encodeTests[i].output), &decoded,
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:49:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (fwrite(hosts[i], strlen(hosts[i]), 1, fl) != 1 ||
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:50:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    fwrite(hosts[i], strlen(hosts[i]), 1, fc) != 1)
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/TestKnownHosts.c:65:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (fwrite(legacy[i], strlen(legacy[i]), 1, fl) != 1)
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/Test_x509_cert_info.c:46:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(result, file, dirsepLen);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/test/Test_x509_cert_info.c:47:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(result + dirsepLen, filename, filenameLen + 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:220:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(str);
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:940:54:  [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).
		bio = BIO_new_mem_buf(settings->PrivateKeyContent, strlen(settings->PrivateKeyContent));
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:982:55:  [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).
		bio = BIO_new_mem_buf(settings->CertificateContent, strlen(settings->CertificateContent));
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:1108:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(hostname) == pattern_length)
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:1115:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    ((strlen(hostname)) >= pattern_length))
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:1117:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const char* check_hostname = &hostname[strlen(hostname) - pattern_length + 1];
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:1202:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			BOOL equal;
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:1210: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).
			fp = h + strlen(h) + 1;
data/freerdp2-2.2.0+dfsg1/libfreerdp/crypto/tls.c:1220:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal)
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiRop3.c:107:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(postfix);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiRop3.c:158:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			al = strlen(a);
data/freerdp2-2.2.0+dfsg1/libfreerdp/gdi/test/TestGdiRop3.c:161:10:  [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).
				bl = strlen(b);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_layout.c:957:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp->locale, id->locale, ARRAYSIZE(cp->locale) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_layout.c:959:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp->primaryLanguage, id->PrimaryLanguage, ARRAYSIZE(cp->primaryLanguage) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_layout.c:961:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp->primaryLanguageSymbol, id->PrimaryLanguageSymbol,
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_layout.c:964:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp->subLanguage, id->Sublanguage, ARRAYSIZE(cp->subLanguage) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_layout.c:966:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cp->subLanguageSymbol, id->SublanguageSymbol, ARRAYSIZE(cp->subLanguageSymbol) - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/keyboard_x11.c:192:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(keymap, beg, length);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:680:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(language, env_lang, underscore);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/locale.c:689:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(country, &env_lang[underscore + 1], dot - underscore - 1);
data/freerdp2-2.2.0+dfsg1/libfreerdp/locale/xkb_layout_ids.c:848:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				for (j = 0; variants[j].variant != NULL && strlen(variants[j].variant) > 0; j++)
data/freerdp2-2.2.0+dfsg1/libfreerdp/primitives/prim_YUV_opencl.c:267:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	programLen = strlen(openclProgram);
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/passphrase.c:82:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(write_file, prompt, strlen(prompt)) == (ssize_t)-1)
data/freerdp2-2.2.0+dfsg1/libfreerdp/utils/passphrase.c:86:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nbytes = read(terminal_fildes, &read_char, sizeof read_char)) == (sizeof read_char))
data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c:114:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(text);
data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c:134:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(text);
data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c:204:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(str);
data/freerdp2-2.2.0+dfsg1/rdtk/librdtk/rdtk_font.c:600:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(fontBaseFile);
data/freerdp2-2.2.0+dfsg1/server/Mac/mf_event.c:75:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		length = read(event_queue->pipe_fd[0], &length, 4);
data/freerdp2-2.2.0+dfsg1/server/Mac/mf_event.c:86:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(event_queue->pipe_fd[0], &length, 4);
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:52:28:  [1] (buffer) _tcslen:
  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).
			deviceKeyPrefixLength = _tcslen(DEVICE_KEY_PREFIX);
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:56:23:  [1] (buffer) _tcslen:
  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).
				deviceKeyLength = _tcslen(deviceInfo.DeviceKey) - deviceKeyPrefixLength;
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:66:59:  [1] (buffer) _tcslen:
  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).
			_tcsncpy_s(wfi->deviceName, 32, deviceInfo.DeviceName, _tcslen(deviceInfo.DeviceName));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_mirage.c:238:60:  [1] (buffer) _tcslen:
  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).
	_tcsncpy_s(deviceMode->dmDeviceName, 32, wfi->deviceName, _tcslen(wfi->deviceName));
data/freerdp2-2.2.0+dfsg1/server/Windows/wf_wasapi.c:138:16:  [1] (buffer) wcslen:
  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).
			devStrLen = wcslen(pwszID);
data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_config.c:64:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(config->host, tmp, addrLen);
data/freerdp2-2.2.0+dfsg1/server/proxy/modules/capture/cap_protocol.c:42:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	username_length = strlen(settings->Username);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_client.c:144:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(channel.name, channel_name, CHANNEL_NAME_LEN);
data/freerdp2-2.2.0+dfsg1/server/proxy/pf_config.c:166:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(config->Passthrough[i]) > CHANNEL_NAME_LEN)
data/freerdp2-2.2.0+dfsg1/server/shadow/X11/x11_shadow.c:120:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memset(response[index].resp, 0, strlen(response[index].resp));
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_capture.c:85:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	BOOL equal;
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_capture.c:139:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (!equal)
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:124:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				length = (strlen(arg->Name) + strlen(arg->Format) + 2);
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:124: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).
				length = (strlen(arg->Name) + strlen(arg->Format) + 2);
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:143: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).
			length = strlen(arg->Name) + 32;
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:241: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).
			size_t len = strlen(arg->Value) + sizeof(bind_address);
data/freerdp2-2.2.0+dfsg1/server/shadow/shadow_server.c:525:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(end) > 0)
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-clipboard.c:261:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(pipefd[0], &data[pos], alloc - pos);
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-input.c:155:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(input->repeat_timer_fd, &exp, sizeof exp) != sizeof exp)
data/freerdp2-2.2.0+dfsg1/uwac/libuwac/uwac-os.c:246:12:  [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).
		length = strlen(path) + sizeof(template);
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/string.h:73:17:  [1] (buffer) wcslen:
  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).
#define _wcslen wcslen
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:41:9:  [1] (buffer) _tcslen:
  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).
#define _tcslen _wcslen
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:55:9:  [1] (buffer) _tcslen:
  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).
#define _tcslen strlen
data/freerdp2-2.2.0+dfsg1/winpr/include/winpr/tchar.h:55: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).
#define _tcslen strlen
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:135:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((end < str) || ((size_t)(end - str) < strlen("%20")))
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:173:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			cur += strlen("%20");
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:227:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len_dir = strlen(dir);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:228: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).
	len_file = strlen(file);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/posix.c:810:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	amount = read(file->fd, buffer, size);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/clipboard/synthetic.c:405:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*pSize = (UINT32)strlen(pDstData) + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1122:6:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (_tcslen(storedTargetPath) + 2 > ucchMax)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1129:15:  [1] (buffer) _tcslen:
  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).
	lpTargetPath[_tcslen(storedTargetPath) + 1] = '\0'; /* 2nd final '\0' */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1130:9:  [1] (buffer) _tcslen:
  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 _tcslen(lpTargetPath) + 2;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm.c:1467:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/comm_io.c:312:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		nbRead = read(pComm->fd_read, lpBuffer, nNumberOfBytesToRead);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestCommDevice.c:52:17:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (tcslen <= _tcslen(lpTargetPath)) /* at least 2 more TCHAR are expected */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/comm/test/TestCommDevice.c:68:20:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (lpTargetPath[_tcslen(lpTargetPath) + 1] != 0)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c:61:26:  [1] (buffer) wcslen:
  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).
	strDestination = malloc(wcslen((wchar_t*)strSource));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c:225:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(lpsz);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c:295:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(lpsz);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c:416:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (int)strlen(lpString);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/string.c:574:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(stream);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c:134:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cbMultiByte = strlen((char*)lpMultiByteStr);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c:343:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((i = strlen(dst)) != 16)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c:376:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((i = strlen(dst)) != 16)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crt/test/TestUnicodeConversion.c:453:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	string_hexdump((const BYTE*)src2, strlen(src2) + 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/crypto/test/TestCryptoProtectMemory.c:17:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cbPlainText = strlen(pPlainText) + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/dsparse/dsparse.c:78:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ServiceClassLength = (DWORD)strlen(ServiceClass);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/dsparse/dsparse.c:79:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ServiceNameLength = (DWORD)strlen(ServiceName);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:61:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(cwd);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:156:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(env);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:243:12:  [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).
		length = strlen(*envp);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:346:12:  [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).
		length = strlen(cp);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:384:12:  [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).
		length = strlen(envp);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:410:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			mergeLength = strlen(mergeStrings[run]);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:468: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).
		mergeLength = strlen(mergeStrings[run]);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:512: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).
	lpNameLength = strlen(lpName);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:519: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).
		fLength = strlen(penvb);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:548:12:  [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).
	vLength = strlen(env);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:569:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = (int)(strlen(lpName) + strlen(lpValue) + 2); /* +2 because of = and \0 */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:569: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).
		length = (int)(strlen(lpName) + strlen(lpValue) + 2); /* +2 because of = and \0 */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:579: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).
		length = (int)strlen(lpName) + 2;   /* +2 because of = and \0 */
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:616:12:  [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).
		length = strlen(p);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/environment.c:631:12:  [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).
		length = strlen(p);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentGetEnvironmentStrings.c:29:12:  [1] (buffer) _tcslen:
  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).
		length = _tcslen(p);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/environment/test/TestEnvironmentMergeEnvironmentStrings.c:22:12:  [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).
		length = strlen(p);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:805:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const size_t namelen = strlen(name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:889:12:  [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).
		length = strlen(lpFileName) - index;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:1067:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(lpFindFileData->cFileName, pFileSearch->pDirent->d_name, MAX_PATH);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/generic.c:1069:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pathlen = strlen(pFileSearch->lpPath);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/pattern.c:232:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchPattern = strlen(lpPattern);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/pattern.c:233:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchFileName = strlen(lpFileName);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/pattern.c:258: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).
		cchTail = strlen(lpTail);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileCreateFile.c:34:34:  [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).
	hr = PathCchConvertStyleA(name, strlen(name), PATH_STYLE_UNIX);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c:21:48:  [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).
	length = MultiByteToWideChar(CP_UTF8, 0, str, strlen(str), NULL, 0);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindFirstFile.c:41:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(BasePath);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c:23:48:  [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).
	length = MultiByteToWideChar(CP_UTF8, 0, str, strlen(str), NULL, 0);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/file/test/TestFileFindNextFile.c:43:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(BasePath);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/io/io.c:89:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			status = read(pipe->clientfd, lpBuffer, nNumberOfBytes);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/nt/nt.c:127:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		USHORT length = (USHORT)strlen(SourceString);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathAllocCombine.c:47:20:  [1] (buffer) wcslen:
  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).
	pszPathInLength = wcslen(pszPathIn);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/include/PathAllocCombine.c:48:18:  [1] (buffer) wcslen:
  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).
	pszMoreLength = wcslen(pszMore);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:142:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(home) + strlen("/.local/share") + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:142:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(home) + strlen("/.local/share") + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:198:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(home) + strlen("/.config") + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:198:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(home) + strlen("/.config") + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:252:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(home) + strlen("/.cache") + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:252:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(home) + strlen("/.cache") + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:423:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		basePathLength = (int)strlen(basePath);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:426:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		subPathLength = (int)strlen(subPath);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/shell.c:503:7:  [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).
	p = (strlen(dup) > 3) && (dup[1] == ':') && (dup[2] == delim)) ? &dup[3] : dup;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathMakePath.c:26:12:  [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).
	baseLen = strlen(base);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/path/test/TestPathMakePath.c:63:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while (strlen(path) > baseLen)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/pipe.c:141:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		io_status = read(pipe->fd, lpBuffer, nNumberOfBytesToRead);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/pipe/pipe.c:286:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			io_status = read(pipe->clientfd, lpBuffer, nNumberOfBytesToRead);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:229:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	reg->line_length = strlen(reg->line);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/registry/registry_reg.c:255: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).
			length = strlen(name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/rpc/rpc.c:742:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen((char*)StringUuid) != 36)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/shell/shell.c:84:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cchDirSize = strlen(pw->pw_dir) + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2331:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(namePCSC);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2460:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				*pcbAttrLen = strlen(vendorName);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/smartcard_pcsc.c:2636:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(LookupName) + 34;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardListReaders.c:38:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pReader = pReader + strlen((CHAR*)pReader) + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardStatus.c:97:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	printf("Reader name: %s (%ld)\n", name, strlen(name));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardStatus.c:106:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	printf("Reader name: %s (%ld/len %u)\n", name, strlen(name), len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/smartcard/test/TestSmartCardStatus.c:119:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	printf("Reader name: %s (%ld/%u)\n", aname, strlen(aname), len);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c:216:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name_buffer.length = strlen(gss_name) + 1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c:381:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lrealm_len = strlen(lrealm);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/Kerberos/kerberos.c:382:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lusername_len = strlen(lusername);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestAcquireCredentialsHandle.c:29:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	identity.UserLength = strlen(test_User);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestAcquireCredentialsHandle.c:30:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	identity.DomainLength = strlen(test_Domain);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestAcquireCredentialsHandle.c:31:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	identity.PasswordLength = strlen(test_Password);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestInitializeSecurityContext.c:46:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	identity.UserLength = strlen(test_User);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestInitializeSecurityContext.c:47:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	identity.DomainLength = strlen(test_Domain);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspi/test/TestInitializeSecurityContext.c:48:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	identity.PasswordLength = strlen(test_Password);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspicli/sspicli.c:210:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(login, getlogin(), sizeof(login));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sspicli/sspicli.c:215: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).
			length = strlen(login);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/critical.c:173:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/event.c:253:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/event.c:326:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			length = read(event->pipe_fd[0], &length, 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/semaphore.c:72:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(sem->pipe_fd[0], &length, 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/sleep.c:45:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(dwMilliseconds * 1000);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/sleep.c:62:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(dwMicroseconds);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/timer.c:83:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(timer->fd, (void*)&expirations, sizeof(UINT64));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/synch/timer.c:523:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (read(timer->fd, buffer, sizeof(buffer)) > 0)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:152:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int ret = read(fd, buffer, sizeof buffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:193:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int ret = read(fd, buffer + count, buffsize - count);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:227: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).
	int fieldlen = strlen(field);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:281:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int itemlen = strlen(item);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:602:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int ret = TEMP_FAILURE_RETRY(read(fd, (char*)&entry, sizeof entry));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/cpufeatures/cpu-features.c:977:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char* value_end = value + strlen(value);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/sysinfo/sysinfo.c:678:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		num = read(fd, (char*)&auxvec, sizeof(auxvec));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c:116:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cmdLineLength = strlen(lpCmdLine);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c:145:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				length = strlen(p);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/argv.c:184:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cmdLineLength = strlen(lpCmdLine);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/process.c:285:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (lpCurrentDirectory && strlen(lpCurrentDirectory) > 0)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/thread.c:272:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(thread->pipe_fd[0], &length, 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/thread/thread.c:729:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/timezone/timezone.c:137:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tzid, buf + pos + 1, alloc);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c:116:12:  [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).
		length = strlen(argv[i]);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c:223:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(options[j].Name) == keyword_length)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c:231:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						if (strlen(options[j].Alias) == keyword_length)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c:496: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).
			size_t len = strlen(name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/cmdline.c:528:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(list);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/debug.c:497:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				write(fd, lines[i], strlen(lines[i]));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:71:12:  [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).
		length = strlen(ini->nextLine);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:97: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).
	fileSize = strlen(iniString);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:204:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ini->lineLength = strlen(ini->line);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:538:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nameLength = strlen(section->name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:553:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nameLength = strlen(section->name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:589:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nameLength = strlen(pKey->name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:604:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nameLength = strlen(pKey->name);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:719:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size += (strlen(section->name) + 3);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:724: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).
			size += (strlen(key->name) + strlen(key->value) + 2);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:724:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size += (strlen(key->name) + strlen(key->value) + 2);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:742:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		offset += (strlen(section->name) + 3);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:748:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			offset += (strlen(key->name) + strlen(key->value) + 2);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:748: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).
			offset += (strlen(key->name) + strlen(key->value) + 2);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/ini.c:769:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(buffer);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:314:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t insize = strlen(in), i = 0;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:2709:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(type) != 4)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:5450:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t i, textsize = strlen(textstring);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:5481:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t i, textsize = strlen(textstring);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:6307:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(info.text_keys[i]) > 79)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:6312:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(info.text_keys[i]) < 1)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:6348:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(info.itext_keys[i]) > 79)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/lodepng/lodepng.c:6353:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(info.itext_keys[i]) < 1)
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:293:12:  [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).
		length = strlen(sam->line);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:352:12:  [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).
		length = strlen(sam->line);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:368: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).
						EntryDomainLength = (UINT32)strlen(entry->Domain) * 2;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/sam.c:399:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					EntryUserLength = (UINT32)strlen(entry->User) * 2;
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:245:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int read(int handle, char* buffer, unsigned int length);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:249:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:6660:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	self->current = fgetc(file);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/trio.c:6705:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size = read(fd, &input, sizeof(char));
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triostr.c:416:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(target, source, max - length - 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/utils/trio/triostr.c:496:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(target, source, max - 1);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraSendMessage.c:18: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).
	bSuccess = WTSSendMessageA(hServer, WTS_CURRENT_SESSION, TITLE, strlen(TITLE) + 1, MESSAGE,
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/test/TestWtsApiExtraSendMessage.c:19:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	                           strlen(MESSAGE) + 1, MB_CANCELTRYCONTINUE, 3, &result, TRUE);
data/freerdp2-2.2.0+dfsg1/winpr/libwinpr/wtsapi/wtsapi_win32.c:180:34:  [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).
	virtualNameLen = pVirtualName ? strlen(pVirtualName) : 0;
data/freerdp2-2.2.0+dfsg1/winpr/tools/hash-cli/hash.c:157:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	UserLength = strlen(User);
data/freerdp2-2.2.0+dfsg1/winpr/tools/hash-cli/hash.c:158:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PasswordLength = strlen(Password);
data/freerdp2-2.2.0+dfsg1/winpr/tools/hash-cli/hash.c:159:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	DomainLength = (Domain) ? strlen(Domain) : 0;
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:143:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				size_t length = strlen(arg->Name) + strlen(arg->Format) + 2;
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:143:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				size_t length = strlen(arg->Name) + strlen(arg->Format) + 2;
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:199:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	entry = p + strlen(txt) + 1;
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:203: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).
		*length = strlen(entry);
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:452:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(context->output_file);
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:619:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(context->output_file);
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:988:12:  [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).
		length = strlen(entry);
data/freerdp2-2.2.0+dfsg1/winpr/tools/makecert/makecert.c:995:12:  [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).
		length = strlen(entry);

ANALYSIS SUMMARY:

Hits = 1838
Lines analyzed = 451651 in approximately 10.64 seconds (42435 lines/second)
Physical Source Lines of Code (SLOC) = 334598
Hits@level = [0] 1734 [1] 405 [2] 1054 [3] 208 [4] 167 [5]   4
Hits@level+ = [0+] 3572 [1+] 1838 [2+] 1433 [3+] 379 [4+] 171 [5+]   4
Hits/KSLOC@level+ = [0+] 10.6755 [1+] 5.49316 [2+] 4.28275 [3+] 1.1327 [4+] 0.511061 [5+] 0.0119546
Dot directories skipped = 2 (--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.