commit | d8930f132b54a3abf0d12d506e9e9204ce23abb8 | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Mar 13 10:56:00 2018 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Mar 18 11:15:45 2018 +0100 |
tree | 2751b1692771196fdf039bb579522018e2ad7294 | |
parent | 502319ce91249e578323190ee7332c8b43ca9202 [diff] |
fixup: sctp: verify size of a new chunk in _sctp_make_chunk() Ben writes: > > + int chunklen; > > + > > + chunklen = sizeof(*chunk_hdr) + paylen; > > I think this length still needs to be rounded up (with WORD_ROUND here, > instead of SCTP_PAD4 upstream). So here's a fix for this problem. Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>