提交 3e8b08b2 authored 作者: Michael Jerris's avatar Michael Jerris

assert some bounds values that should never be out of bounds (or the arrays…

assert some bounds values that should never be out of bounds (or the arrays would be out of bounds anyways)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6779 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e9794d52
......@@ -99,10 +99,7 @@ static inline void pack_check_over(switch_bitpack_t *pack)
pack->bits_cur = pack->over;
if (pack->mode == SWITCH_BITPACK_MODE_RFC3551) {
while (pack->over > 8) {
pack->over -= 8;
}
if (pack->over > 8) return;
switch_assert(pack->over <= 8);
this_byte &= SWITCH_BITPACKED_MASKS[pack->over];
this_byte <<= pack->under;
*pack->cur |= this_byte;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论