Fix crash

This commit fixes the memcpy size calculation so it won't crash
if the destination stride is bigger than the source stride

Related: #1844993
This commit is contained in:
Ray Strode 2020-08-27 13:59:25 -04:00
parent 6cbcbd37d0
commit e71ada450b
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ index 88c07be..261292a 100644
+ {
+ memcpy (((uint8_t *) frame->data) + y * dst_stride,
+ ((uint8_t *) src_data) + y * src_stride,
+ dst_stride);
+ stream->spa_format.size.width * 4);
+ }
if (map)

View File

@ -2,7 +2,7 @@
Name: gnome-remote-desktop
Version: 0.1.8
Release: 2%{?dist}
Release: 3%{?dist}
Summary: GNOME Remote Desktop screen share service
License: GPLv2+