[SCTP]: Respect the real chunk length when walking parameters.
authorVladislav Yasevich <vladislav.yasevich@hp.com>
Fri, 19 May 2006 18:52:20 +0000 (11:52 -0700)
committerSridhar Samudrala <sri@us.ibm.com>
Fri, 19 May 2006 18:52:20 +0000 (11:52 -0700)
commitdd2d1c6f2958d027e4591ca5d2a04dfe36ca6512
tree5eaf4aa2ddce2cdbff1bdf04df6e7392c0cde94b
parent61c9fed41638249f8b6ca5345064eb1beb50179f
[SCTP]: Respect the real chunk length when walking parameters.

When performing bound checks during the parameter processing, we
want to use the real chunk and paramter lengths for bounds instead
of the rounded ones.  This prevents us from potentially walking of
the end if the chunk length was miscalculated.  We still use rounded
lengths when advancing the pointer. This was found during a
conformance test that changed the chunk length without modifying
parameters.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
include/net/sctp/sctp.h