]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/rtp_engine: Format NTP timestamps as unsigned longs
authorMatthew Jordan <mjordan@digium.com>
Wed, 21 Jan 2015 12:56:49 +0000 (12:56 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 21 Jan 2015 12:56:49 +0000 (12:56 +0000)
commit98c3983c893149420786070356c51e406504a617
tree5511cf1d8c3524db3019a67bf1628acbdb30d836
parenta7ba8a58a86235eaf88850df03b6865413525b4e
main/rtp_engine: Format NTP timestamps as unsigned longs

When the RTCP reports are created, the NTP timestamps are stored as strings,
as JSON does not have an integer type long enough to store the value. However,
on 32-bit systems, a signed long may overflow for some portion of the
timestamp.

This patch corrects the overflow by formatting the timestamps as unsigned
longs.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/rtp_engine.c