net: ipc_router: Add bounds check on tx path

Add bounds check on values read from shared memory in the tx path.
In cases where the VM is misbehaving, the ipcrtr fifo xport should
exit and print a warning when bogus values may cause out of bounds to
be read.

Change-Id: I2d219b36a4d7ddb137f232f47f4fe2e662add98d
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
(cherry picked from commit eaa4f88a069c2b4a010865047bb2049d7c9a4788)
1 file changed