[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #46278] The wraparound case for getting difference bet
From: |
Axel Lin |
Subject: |
[lwip-devel] [bug #46278] The wraparound case for getting difference between 2 u32_t value needs fix |
Date: |
Fri, 23 Oct 2015 08:20:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?46278>
Summary: The wraparound case for getting difference between 2
u32_t value needs fix
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: axellin
Submitted on: Fri 23 Oct 2015 08:20:46 AM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: git head
_______________________________________________________
Details:
Hi,
The commit cf1be4ae2d2b80b87df9b1e199e60e301ce6d1c5
"fixed bug #34541: LWIP_U32_DIFF is unnecessarily complex: removed that
define"
looks wrong to me in the wrap around case.
For example, if now is wrap around to 0 and timeouts_last_time is 4294967293.
The correct diff is: 3
but with current code, the diff is: 4294967293.
I think that commit needs to be reverted.
comments?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?46278>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #46278] The wraparound case for getting difference between 2 u32_t value needs fix,
Axel Lin <=