FreeRDP/client/Wayland
Ondrej Holy 9a7180cf90 wlfreerdp: Fix array overrun
This fixes the following defects reported by covscan tool:
 - client/Wayland/wlf_input.c:251: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:308: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:360: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:251: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:308: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:360: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:246: uninit_use_in_call: Using uninitialized value "y" when calling "wlf_scale_coordinates".
 - client/Wayland/wlf_input.c:246: uninit_use_in_call: Using uninitialized value "x" when calling "wlf_scale_coordinates".

The maximal number of touches can be higher then 10, see:
https://wayland.freedesktop.org/libinput/doc/latest/touchpads.html

Let's increse the MAX_CONTACTS count and add checks to prevent usage of
uninitialized values.

(cherry picked from commit 6ab79961ef)
2020-06-16 09:08:22 +02:00
..
CMakeLists.txt Added image scaling api for software drawing. 2019-05-07 08:56:29 +02:00
wlf_channels.c Made CHANNEL_TSMF optional and deprecated. 2020-02-26 13:56:43 +01:00
wlf_channels.h Made CHANNEL_TSMF optional and deprecated. 2020-02-26 13:56:43 +01:00
wlf_cliprdr.c Fixed clipboard 'called with invalid type' warning 2020-05-05 07:46:10 +02:00
wlf_cliprdr.h Implemented wayland clipboard. 2019-01-23 15:56:11 +01:00
wlf_disp.c uwac, wlfreerdp: corrected API for UwacOutput and added monitor listing 2020-04-28 14:03:19 +02:00
wlf_disp.h uwac, wlfreerdp: corrected API for UwacOutput and added monitor listing 2020-04-28 14:03:19 +02:00
wlf_input.c wlfreerdp: Fix array overrun 2020-06-16 09:08:22 +02:00
wlf_input.h Adds touch support to wlfreerdp 2020-03-27 14:16:18 +01:00
wlf_pointer.c Reformatted to new style 2019-11-07 10:53:54 +01:00
wlf_pointer.h Added mouse cursor callback stubs. 2019-01-29 09:34:30 +01:00
wlfreerdp.1.in Fix warning in man pages 2017-08-03 08:41:50 +02:00
wlfreerdp.c Fixed primary monitor index for wayland fullscreen 2020-05-08 11:06:02 +02:00
wlfreerdp.h Reformatted to new style 2019-11-07 10:53:54 +01:00