diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-08-22 11:27:37 +0800 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:20:58 -0400 |
commit | dadb50cc1ada2906594df83d991f0bc388039bb6 (patch) | |
tree | 25df647a588e1401377339f98f3dad12f17ab7bd /net/802/fddi.c | |
parent | a2f36eec5647548fa94fb68e2843b00fb9c0d46b (diff) |
sctp: fix check the chunk length of received HEARTBEAT-ACK chunk
The receiver of the HEARTBEAT should respond with a HEARTBEAT ACK
that contains the Heartbeat Information field copied from the
received HEARTBEAT chunk. So the received HEARTBEAT-ACK chunk
must have a length of:
sizeof(sctp_chunkhdr_t) + sizeof(sctp_sender_hb_info_t)
A badly formatted HB-ACK chunk, it is possible that we may access
invalid memory. We should really make sure that the chunk format
is what we expect, before attempting to touch the data.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net/802/fddi.c')
0 files changed, 0 insertions, 0 deletions