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

Skip to content
Commit da85b739 authored by Andrei Pelinescu-Onciul's avatar Andrei Pelinescu-Onciul Committed by Vlad Yasevich
Browse files

sctp: fix integer overflow when setting the autoclose timer



When setting the autoclose timeout in jiffies there is a possible
integer overflow if the value in seconds is very large
(e.g. for 2^22 s with HZ=1024). The problem appears even on
64-bit due to the integer promotion rules. The fix is just a cast
 to unsigned long.

Signed-off-by: default avatarAndrei Pelinescu-Onciul <andrei@iptel.org>
Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent f6778aab
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