mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user