Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hexagonrpcd/iobuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ static size_t consume_size(struct fastrpc_decoder_context *ctx,
ctx->size_off = (ctx->size_off + segment) % 4;
ctx->align = (ctx->align + segment) & 0x7;

if (ctx->size_off == 0)
ctx->size = le32toh(ctx->size);

return segment;
}

Expand Down Expand Up @@ -212,7 +215,7 @@ void outbufs_encode(size_t n_outbufs, const struct fastrpc_io_buffer *outbufs,
size_t i;

for (i = 0; i < n_outbufs; i++) {
*(uint32_t *) ptr = outbufs[i].s;
*(uint32_t *) ptr = htole32(outbufs[i].s);
ptr = &ptr[4];
align = (align + 4) & 0x7;

Expand Down