From: Lennart Poettering Date: Tue, 1 Nov 2011 13:20:31 +0000 (+0100) Subject: plymouth: fix ply proto endianess issues X-Git-Tag: v38~219 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb53abeb8c3407ea250be69bc43510b03c0df3da;p=systemd plymouth: fix ply proto endianess issues Plymouth enforces LE even for the local Ply proto, hence we should do the conversion properly for BE arch compat. Tracked down by Harald Hoyer. https://bugzilla.redhat.com/show_bug.cgi?id=744415 --- diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c index 43d008fc..13481b29 100644 --- a/src/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent.c @@ -206,6 +206,7 @@ static int ask_password_plymouth( continue; memcpy(&size, buffer+1, sizeof(size)); + size = le32toh(size); if (size+5 > sizeof(buffer)) { r = -EIO; goto finish;