Re: [PATCH net] sctp: fix overrun in sctp_diag_dump_one()

2016-08-23 Thread David Miller
From: Lance Richardson Date: Tue, 23 Aug 2016 11:40:52 -0400 > 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. >

Re: [PATCH net] sctp: fix overrun in sctp_diag_dump_one()

2016-08-23 Thread Marcelo Ricardo Leitner
On Tue, Aug 23, 2016 at 11:40:52AM -0400, Lance Richardson wrote: > 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.

Re: [PATCH net] sctp: fix overrun in sctp_diag_dump_one()

2016-08-23 Thread Xin Long
On Tue, Aug 23, 2016 at 11:40 PM, Lance Richardson wrote: > 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. > > Fi

[PATCH net] sctp: fix overrun in sctp_diag_dump_one()

2016-08-23 Thread Lance Richardson
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: 8f840e47f190 ("sctp: add the sctp_diag.c file") Signed-off-by: La