From 3dc6f7df278545a185bc61ca880fc943b92865e1 Mon Sep 17 00:00:00 2001 From: jeanlf Date: Tue, 12 Jul 2022 18:00:35 +0200 Subject: [PATCH] [PATCH] fixed #2213 Gbp-Pq: Name CVE-2022-2454.patch --- src/laser/lsr_dec.c | 2 ++ 1 file changed, 2 insertions(+) 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<