You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avutil/softfloat: Assert that the exponent did not overflow the legal range in av_normalize1_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -79,6 +79,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
|
|||||||
a.mant>>=1;
|
a.mant>>=1;
|
||||||
}
|
}
|
||||||
av_assert2(a.mant < 0x40000000 && a.mant > -0x40000000);
|
av_assert2(a.mant < 0x40000000 && a.mant > -0x40000000);
|
||||||
|
av_assert2(a.exp <= MAX_EXP);
|
||||||
return a;
|
return a;
|
||||||
#elif 1
|
#elif 1
|
||||||
int t= a.mant + 0x40000000 < 0;
|
int t= a.mant + 0x40000000 < 0;
|
||||||
|
Reference in New Issue
Block a user