diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-02-21 13:34:21 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-02 10:36:46 +0100 |
commit | 33199bef6edf92f7825d1f94ad7b36c50e30e80b (patch) | |
tree | 3e7259617eb3664e683e7e8381b700d0cb9f82d9 | |
parent | 104c221f4a30be0245fcf6a4f0237d8ed8f4ed23 (diff) | |
download | hardware_replicant_libsamsung-ipc-patches-todo/endianess.tar.gz hardware_replicant_libsamsung-ipc-patches-todo/endianess.tar.bz2 hardware_replicant_libsamsung-ipc-patches-todo/endianess.zip |
[WIP] libsamsung-ipc.so: handle endianesspatches-todo/endianess
TODO:
- Identify all the fields > 1 byte and handle endianess
- Identify all the code that access the data directly
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | samsung-ipc/ipc_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/ipc_utils.c b/samsung-ipc/ipc_utils.c index 3518475..7dba1a9 100644 --- a/samsung-ipc/ipc_utils.c +++ b/samsung-ipc/ipc_utils.c @@ -298,7 +298,7 @@ int ipc_fmt_header_setup(struct ipc_fmt_header *header, return -1; memset(header, 0, sizeof(struct ipc_fmt_header)); - header->length = message->size + sizeof(struct ipc_fmt_header); + header->length = letoh16(message->size + sizeof(struct ipc_fmt_header)); header->mseq = message->mseq; header->aseq = message->aseq; header->group = IPC_GROUP(message->command); |