lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #19167] tcp timeout handler can cause crash being invo


From: goldsimon
Subject: [lwip-devel] [bug #19167] tcp timeout handler can cause crash being invoked by sys_sem_wait()
Date: Thu, 01 Mar 2007 13:21:24 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

Follow-up Comment #14, bug #19167 (project lwip):

Hi Dimitry, 

regarding comment #8:

Please correct me if I'm wrong, but I tested your TIMESTAMP_DIFF() /
TIMESTAMP_ADD() suggestion, and I don't think it's a solution:

let's say time_now is 20 (=ms after time counting started) and we have a
timeout which is 4294967286 ms (e.g. nearly 50 days; I know it's unlikely,
but it's to show the wraparound).

If we now check like you proposed:
if(TIMESTAMP_DIFF(expires, now) > 0)
  wait()
else
  execute_timeout_handler_now()

we would execute the timeout handler, since (signed)(4294967286 - 20) = -10

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19167>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]