]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix core FINDING 2, FINDING 3, and FINDING 4 from Coverity's CONSTANT_EXPRESSION_RESU...
authorMark Michelson <mmichelson@digium.com>
Fri, 4 May 2012 15:48:44 +0000 (15:48 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 4 May 2012 15:48:44 +0000 (15:48 +0000)
commitc6d9524482f173e241cea28e52d29c2e94fd892a
tree8c12f5206ef6a02874f604eaf34a003177095a2b
parent4bddfcf33518df3df02cc4793d404fed296edfb2
Fix core FINDING 2, FINDING 3, and FINDING 4 from Coverity's CONSTANT_EXPRESSION_RESULT report.

These three all are in RTP code that attempts to print the number of sequence number cycles
in an RTCP RR report. The code was masking out the upper 16 bits and then shifting the number
right by 16 bits. This led to an all zero result in all cases. The fix is to do the shift without
the bit masking.

(issue ASTERISK-19649)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@365298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_rtp_asterisk.c