diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-06-08 13:24:14 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-06-08 13:24:14 -0400 |
commit | f264b4a53a97749d5d7a07df8a3e65490694cf76 (patch) | |
tree | f2b2d71515cce73a0bf40bbd9d4ee554e6e56622 /net-misc/freerdp | |
parent | dev-python/ipython: Update HOMEPAGE (diff) | |
download | gentoo-f264b4a53a97749d5d7a07df8a3e65490694cf76.tar.gz gentoo-f264b4a53a97749d5d7a07df8a3e65490694cf76.tar.bz2 gentoo-f264b4a53a97749d5d7a07df8a3e65490694cf76.zip |
net-misc/freerdp: backport big-endian fix
Closes: https://bugs.gentoo.org/727446
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc/freerdp')
-rw-r--r-- | net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch | 23 | ||||
-rw-r--r-- | net-misc/freerdp/freerdp-2.1.1-r1.ebuild (renamed from net-misc/freerdp/freerdp-2.1.1.ebuild) | 4 |
2 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch b/net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch new file mode 100644 index 000000000000..f5d4d7638ad7 --- /dev/null +++ b/net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch @@ -0,0 +1,23 @@ +From 733026dada313cf345c3e3664cfe5790519e9fae Mon Sep 17 00:00:00 2001 +From: akallabeth <akallabeth@posteo.net> +Date: Mon, 8 Jun 2020 07:09:07 +0200 +Subject: [PATCH] Fixed #6267: adjust write_pixel_16 endian handling + +--- + libfreerdp/codec/interleaved.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libfreerdp/codec/interleaved.c b/libfreerdp/codec/interleaved.c +index e9f92c7009..b76fe1ca3c 100644 +--- a/libfreerdp/codec/interleaved.c ++++ b/libfreerdp/codec/interleaved.c +@@ -232,7 +232,8 @@ static INLINE void write_pixel_24(BYTE* _buf, UINT32 _pix) + + static INLINE void write_pixel_16(BYTE* _buf, UINT16 _pix) + { +- *(UINT16*)_buf = _pix; ++ _buf[0] = _pix & 0xFF; ++ _buf[1] = (_pix >> 8) & 0xFF; + } + + #undef DESTWRITEPIXEL diff --git a/net-misc/freerdp/freerdp-2.1.1.ebuild b/net-misc/freerdp/freerdp-2.1.1-r1.ebuild index d52fe4d1a0a8..b9405ff047eb 100644 --- a/net-misc/freerdp/freerdp-2.1.1.ebuild +++ b/net-misc/freerdp/freerdp-2.1.1-r1.ebuild @@ -88,6 +88,10 @@ BDEPEND=" ) ) " +PATCHES=( + "${FILESDIR}/2.1.1-write_pixel_16-endian.patch" +) + src_configure() { local mycmakeargs=( -DBUILD_TESTING=$(usex test ON OFF) |