commit | 362786f14a753d8a5256ef97d7c10ed576d6572b | [log] [tgz] |
---|---|---|
author | Prasad J Pandit <pjp@fedoraproject.org> | Wed Mar 02 17:29:58 2016 +0530 |
committer | Jason Wang <jasowang@redhat.com> | Tue Mar 08 15:34:18 2016 +0800 |
tree | df46cf293e0e12fdd91068e3aa60b228a8ab061d | |
parent | f1b2bc601af5037f0af6d55575e619b912e348b5 [diff] |
net: check packet payload length While computing IP checksum, 'net_checksum_calculate' reads payload length from the packet. It could exceed the given 'data' buffer size. Add a check to avoid it. Reported-by: Liu Ling <liuling-it@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Jason Wang <jasowang@redhat.com>