Re: [BUG] before() integer overflow

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicolas Bareil <nico@...>
Cc: <netdev@...>, <netdev-owner@...>
Date: Tuesday, August 5, 2008 - 1:51 pm

netdev-owner@vger.kernel.org wrote on 08/05/2008 10:19:18 AM:


        In the sequence space, 0xffffffff is before 0 (by 1), so
before() should return true. In your example, you don't have enough
f's for it to be -1 as a signed number, so I'm assuming you mean
8 of them there. If you mean 6 f's, then the result is not -1, but the
positive number 0xffffff, which returns false.

                                                                +-DLS


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] before() integer overflow, Nicolas Bareil, (Tue Aug 5, 1:19 pm)
Re: [BUG] before() integer overflow, David Stevens, (Tue Aug 5, 1:51 pm)
Re: [BUG] before() integer overflow, Nicolas Bareil, (Tue Aug 5, 2:24 pm)
Re: [BUG] before() integer overflow, Ben Hutchings, (Tue Aug 5, 1:40 pm)