diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2012-05-17 03:51:11 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2012-05-17 03:51:11 +0000 |
commit | 1822736dddc222b7474a069d5b50ca80a3b2fad2 (patch) | |
tree | c364415b06bc53e1b2b82a25602c675f041851c3 | |
parent | c1f5b740380508a307ef9b9c348484aa99c7f07e (diff) |
Fix #1499: Crash in libsrtp when handling certain RTCP packets, more info:
- Applied patch from: http://srtp.cvs.sourceforge.net/viewvc/srtp/srtp/crypto/replay/rdb.c?r1=1.4&r2=1.5.
- Original libsrtp ticket #3280295:
http://sourceforge.net/tracker/?func=detail&aid=3280295&group_id=38894&atid=423799.
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@4126 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | third_party/srtp/crypto/replay/rdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/srtp/crypto/replay/rdb.c b/third_party/srtp/crypto/replay/rdb.c index 9f2ea878..c826912a 100644 --- a/third_party/srtp/crypto/replay/rdb.c +++ b/third_party/srtp/crypto/replay/rdb.c @@ -115,7 +115,7 @@ rdb_add_index(rdb_t *rdb, uint32_t index) { /* shift the window forward by delta bits*/ v128_left_shift(&rdb->bitmask, delta); - v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-delta); + v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-1); rdb->window_start += delta; } |