You've already forked hexagonrpc
mirror of
https://github.com/linux-msm/hexagonrpc.git
synced 2026-02-25 13:13:52 -08:00
Despite the modularity of the FastRPC implementation, there are no unit tests. This makes it unpredictable when the implementation encounters an unlikely scenario, such as when reading uninitialized memory that is non-zero, or when allocating zero bytes of memory. Add a unit test for the I/O buffer encoder and decoder so there can be more confidence in its expected operation. This does not test edge cases in the malloc() function, such as allocating zero bytes or failures.