[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] bug in oRTP

From: haitao zhao
Subject: [Linphone-developers] bug in oRTP
Date: Mon, 20 Jun 2011 12:12:36 +0800

hi ,

there's a bug in oRTP sessionset.c.

the code is read as:
int count_power_items_fast(int v)
    int c = 0;
    while(v) {
        c += (v & 1);
        v >>= 1;
    return c;

when v is negative, this function wont stop because, (-1 >> 1)  -> -1  in arithmetic shift.
the fix is probably too simple to warranty a patch:  change int v to uint32_t v .


reply via email to

[Prev in Thread] Current Thread [Next in Thread]