Ticket #1499: pjsip-libsrtp-fix_crash_on_rtcp_decode.patch

File pjsip-libsrtp-fix_crash_on_rtcp_decode.patch, 431 bytes (added by bennylp, 8 years ago)
  • third_party/srtp/crypto/replay/rdb.c

     
    115115 
    116116    /* shift the window forward by delta bits*/ 
    117117    v128_left_shift(&rdb->bitmask, delta); 
    118     v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-delta); 
     118    v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-1); 
    119119    rdb->window_start += delta; 
    120120 
    121121  }