Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8930f13 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 502319ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment