From: Dragos Oancea Date: Thu, 23 Mar 2023 13:09:53 +0000 (+0200) Subject: [mod_amr] coverity CID 1395603 (Unsigned compared against 0) X-Git-Tag: v1.10.10^2~87^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2006%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_amr] coverity CID 1395603 (Unsigned compared against 0) --- diff --git a/src/mod/codecs/mod_amr/bitshift.c b/src/mod/codecs/mod_amr/bitshift.c index fd3fc55606..05a00ff1b5 100644 --- a/src/mod/codecs/mod_amr/bitshift.c +++ b/src/mod/codecs/mod_amr/bitshift.c @@ -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;