mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
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
This commit is contained in:
parent
b7f44df59a
commit
bb53abeb8c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue