You've already forked hexagonrpc
mirror of
https://github.com/linux-msm/hexagonrpc.git
synced 2026-02-25 13:13:52 -08:00
fastrpc: listener: free correct amount of input buffers
The amount of input buffers might be different from the amount of output buffers. Free the correct amount of input buffers so there is no out-of-bounds memory access.
This commit is contained in:
@@ -256,7 +256,7 @@ int run_fastrpc_listener(int fd)
|
||||
break;
|
||||
|
||||
if (decoded != NULL)
|
||||
iobuf_free(REMOTE_SCALARS_OUTBUFS(sc), decoded);
|
||||
iobuf_free(REMOTE_SCALARS_INBUFS(sc), decoded);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user