[Live-devel] Possible arithmetic overflow?

Jeremy Noring jnoring at logitech.com
Wed Mar 10 13:16:03 PST 2010


Sorry, I accidentally sent it before I got to post anything.

In RTPSink.cpp,

  unsigned lastReceivedTimeNTP
    = (unsigned)((lastReceivedTimeNTP_high<<16) + fractionalPart + 0.5);

A 32-bit value is shifted, then cast to 64-bit value (this is because of the
parenthesis); I'm not sure if lastReceivedTimeNTP_high gets large enough for
this to be an issue, or if this is intended?


On Wed, Mar 10, 2010 at 2:10 PM, Jeremy Noring <jnoring at logitech.com> wrote:

> In
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100310/cee33d99/attachment.html>


More information about the live-devel mailing list