From: jeanlf Date: Tue, 12 Jul 2022 16:00:35 +0000 (+0200) Subject: [PATCH] fixed #2213 X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1+deb11u3^2~43 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3dc6f7df278545a185bc61ca880fc943b92865e1;p=gpac.git [PATCH] fixed #2213 Gbp-Pq: Name CVE-2022-2454.patch --- diff --git a/src/laser/lsr_dec.c b/src/laser/lsr_dec.c index fa9ccd8..ab4dfd4 100644 --- a/src/laser/lsr_dec.c +++ b/src/laser/lsr_dec.c @@ -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<