From d7e656256dbdde83d2e84d18f6e1cc8d11085dab Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Tue, 7 Mar 2023 06:41:07 -0500 Subject: [PATCH] CVE-2022-2454 commit faa75edde3dfeba1e2cf6ffa48e45a50f1042096 Author: jeanlf Date: Tue Jul 12 18:00:35 2022 +0200 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 ab00f36..4bebf5c 100644 --- a/src/laser/lsr_dec.c +++ b/src/laser/lsr_dec.c @@ -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<