From 834354b246d3fe650f86a52ec5240bb4446a3ac0 Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Mon, 6 Mar 2023 20:09:19 -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<