[Live-devel] Possible arithmetic overflow?
Jeremy Noring
jnoring at logitech.com
Wed Mar 10 14:32:37 PST 2010
On Wed, Mar 10, 2010 at 3:11 PM, Doug Porter <dsp at exacq.com> wrote:
> Jeremy Noring <jnoring at logitech.com> writes:
> >
> > 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?
>
> The round-trip delay would have to be larger than the period of
> overflow (2^16 s) for this to be a problem.<http://lists.live555.com/mailman/listinfo/live-devel>
Thanks Doug--that clarifies things.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100310/6edc95ab/attachment.html>
More information about the live-devel
mailing list