[riot-notifications] [RIOT-OS/RIOT] gnrc_ipv6_nib/arsm: ensure proper int width in backoff calculation (#10369)
notifications at github.com
Tue Jan 29 15:03:40 CET 2019
miri64 commented on this pull request.
> @@ -519,7 +519,7 @@ static inline uint32_t _exp_backoff_retrans_timer(uint8_t ns_sent,
/* backoff according to https://tools.ietf.org/html/rfc7048 with
* BACKOFF_MULTIPLE == 2 */
- tmp = ((1 << ns_sent) * retrans_timer * tmp) / US_PER_MS;
+ tmp = ((((uint32_t) 1) << ns_sent) * retrans_timer * tmp) / US_PER_MS;
@cgundogan can you please confirm on an 8-bit platform. I don't have one at hand at the moment.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications