projects
/
gpac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4dc9a0
)
[PATCH] fixed #1973
author
jeanlf
<jeanlf@gpac.io>
Tue, 14 Dec 2021 10:34:46 +0000
(11:34 +0100)
committer
Moritz Mühlenhoff
<jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000
(22:46 +0100)
Gbp-Pq: Name CVE-2021-45297.patch
src/utils/math.c
patch
|
blob
|
history
diff --git
a/src/utils/math.c
b/src/utils/math.c
index 6ac222aacdabe779619214408cd75753dc281d97..7ee997e620426b956b29bcf3d15081bc7ae367c2 100644
(file)
--- a/
src/utils/math.c
+++ b/
src/utils/math.c
@@
-35,7
+35,8
@@
GF_EXPORT
u32 gf_get_bit_size(u32 MaxVal)
{
u32 k=0;
- while ((s32) MaxVal > ((1<<k)-1) ) k+=1;
+ while (MaxVal > (((u32)1<<k)-1) )
+ k+=1;
return k;
}