projects
/
gpac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
597ac5a
)
[PATCH] fixed #2213
author
jeanlf
<jeanlf@gpac.io>
Tue, 12 Jul 2022 16:00:35 +0000
(18:00 +0200)
committer
Aron Xu
<aron@debian.org>
Tue, 23 May 2023 11:53:25 +0000
(12:53 +0100)
Gbp-Pq: Name CVE-2022-2454.patch
src/laser/lsr_dec.c
patch
|
blob
|
history
diff --git
a/src/laser/lsr_dec.c
b/src/laser/lsr_dec.c
index fa9ccd8085d03ad3d1c6adbb1b312ad6f1326b3a..ab4dfd41caef6110e4264dfa753c5f50fb8d2fae 100644
(file)
--- 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<<nb_bits);