CVE-2022-2454
authorDebian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Tue, 7 Mar 2023 01:09:19 +0000 (20:09 -0500)
committerReinhard Tartler <siretart@tauware.de>
Tue, 7 Mar 2023 01:09:19 +0000 (20:09 -0500)
commit faa75edde3dfeba1e2cf6ffa48e45a50f1042096
Author: jeanlf <jeanlf@gpac.io>
Date:   Tue Jul 12 18:00:35 2022 +0200

    fixed #2213

Gbp-Pq: Name CVE-2022-2454.patch

src/laser/lsr_dec.c

index ab00f36a53ebcb613a5dc766180391a17e106d27..4bebf5c83ea4f74bdf2789194beceaf46dab9ab8 100644 (file)
@@ -838,6 +838,8 @@ static void lsr_read_id(GF_LASeRCodec *lsr, GF_Node *n)
 
 static Fixed lsr_translate_coords(GF_LASeRCodec *lsr, u32 val, u32 nb_bits)
 {
+       if (!nb_bits) return 0;
+       
 #ifdef GPAC_FIXED_POINT
        if (val >> (nb_bits-1) ) {
                s32 neg = (s32) val - (1<<nb_bits);