mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-25 03:10:39 +00:00
[mod_amr] coverity CID 1395603 (Unsigned compared against 0)
This commit is contained in:
parent
e479f1b648
commit
3c1824a685
@ -47,7 +47,7 @@ extern int switch_amr_array_lshift(uint8_t lshift, uint8_t *buf, int a_len)
|
||||
if (!buf || !a_len)
|
||||
return (-1);
|
||||
|
||||
if ((lshift < 0) || (lshift > 8))
|
||||
if (lshift > 8)
|
||||
return (-1);
|
||||
|
||||
first_byte = 0xFF >> lshift;
|
||||
|
Loading…
x
Reference in New Issue
Block a user