Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sctp: fix overrun in sctp_diag_dump_one()
The function sctp_diag_dump_one() currently performs a memcpy() of 64 bytes from a 16 byte field into another 16 byte field. Fix by using correct size, use sizeof to obtain correct size instead of using a hard-coded constant. Fixes: 8f840e4 ("sctp: add the sctp_diag.c file") Signed-off-by: Lance Richardson <[email protected]> Reviewed-by: Xin Long <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information