Colin Ian King 0e73fc9a56 net: sctp: fix array overrun read on sctp_timer_tbl
The comparison on the timeout can lead to an array overrun
read on sctp_timer_tbl because of an off-by-one error. Fix
this by using < instead of <= and also compare to the array
size rather than SCTP_EVENT_TIMEOUT_MAX.

Fixes CoverityScan CID#1397639 ("Out-of-bounds read")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-20 11:26:01 -05:00
..
2016-09-22 03:13:26 -04:00
2016-04-15 17:29:36 -04:00
2016-06-03 19:37:21 -04:00
2016-07-16 22:02:09 -07:00
2016-11-02 15:03:13 -04:00
2013-12-06 12:37:56 -05:00
2016-12-25 17:21:22 +01:00
2013-12-06 12:37:56 -05:00
2016-09-19 01:34:01 -04:00