Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c399c62c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AMRWB: Add bounds check for mode in pvDecoder_AmrWb()" into rvc-dev

parents 7d46c0b6 a27e70cd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -337,7 +337,10 @@ int32 pvDecoder_AmrWb(
    st = (Decoder_State *) spd_state;

    /* mode verification */

    if (mode < 0 || mode >= NUM_OF_MODES)
    {
        return (-1);
    }
    nb_bits = AMR_WB_COMPRESSED[mode];

    *frame_length = AMR_WB_PCM_FRAME;