From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/freerdp/files/, net-misc/freerdp/
Date: Mon, 8 Jun 2020 17:25:09 +0000 (UTC) [thread overview]
Message-ID: <1591637054.f264b4a53a97749d5d7a07df8a3e65490694cf76.floppym@gentoo> (raw)
commit: f264b4a53a97749d5d7a07df8a3e65490694cf76
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 8 17:24:14 2020 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Jun 8 17:24:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f264b4a5
net-misc/freerdp: backport big-endian fix
Closes: https://bugs.gentoo.org/727446
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
.../files/2.1.1-write_pixel_16-endian.patch | 23 ++++++++++++++++++++++
...reerdp-2.1.1.ebuild => freerdp-2.1.1-r1.ebuild} | 4 ++++
2 files changed, 27 insertions(+)
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 00000000000..f5d4d7638ad
--- /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
similarity index 97%
rename from net-misc/freerdp/freerdp-2.1.1.ebuild
rename to net-misc/freerdp/freerdp-2.1.1-r1.ebuild
index d52fe4d1a0a..b9405ff047e 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)
next reply other threads:[~2020-06-08 17:25 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 17:25 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-12 19:17 [gentoo-commits] repo/gentoo:master commit in: net-misc/freerdp/files/, net-misc/freerdp/ Mike Gilbert
2025-02-18 19:46 Mike Gilbert
2024-05-22 17:33 Mike Gilbert
2023-12-07 21:00 Mike Gilbert
2023-06-07 10:34 Sam James
2022-05-02 21:25 Mike Gilbert
2021-10-24 14:29 Mike Gilbert
2021-10-23 16:09 Mike Gilbert
2021-08-11 15:04 Mike Gilbert
2021-07-31 19:57 Mike Gilbert
2020-08-30 21:42 Mike Gilbert
2020-07-18 13:19 Mike Gilbert
2020-05-14 22:15 Thomas Deutschmann
2020-05-09 4:15 Mike Gilbert
2020-04-10 14:49 Mike Gilbert
2019-12-12 20:15 Mike Gilbert
2019-10-07 17:18 Mike Gilbert
2018-12-04 17:31 Mike Gilbert
2018-12-02 17:15 Mike Gilbert
2018-05-16 21:19 Mike Gilbert
2017-12-14 20:04 Mike Gilbert
2017-08-26 19:05 Mike Gilbert
2017-07-28 21:03 Mike Gilbert
2017-03-20 20:58 Mike Gilbert
2015-11-08 17:44 Mike Gilbert
2015-09-16 20:57 Alexis Ballier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1591637054.f264b4a53a97749d5d7a07df8a3e65490694cf76.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox