[PATCH] fixed #2213
authorjeanlf <jeanlf@gpac.io>
Tue, 12 Jul 2022 16:00:35 +0000 (18:00 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2022-2454.patch

src/laser/lsr_dec.c

index fa9ccd8085d03ad3d1c6adbb1b312ad6f1326b3a..ab4dfd41caef6110e4264dfa753c5f50fb8d2fae 100644 (file)
@@ -804,6 +804,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);