diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-08 13:41:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-11 13:39:21 +0100 |
commit | 5e8b9e746fd58229e8a7ab1ced41918863f576ce (patch) | |
tree | 90013841e40ecabb92806bc2d1ac17c28eee7c09 | |
parent | df2ce130a65cce7cc7b94d21b5d9b0d6014d1bcf (diff) | |
download | ffmpeg-5e8b9e746fd58229e8a7ab1ced41918863f576ce.tar.gz |
avutil/softfloat: Assert that the exponent did not overflow the legal range in av_normalize1_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavutil/softfloat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h index 7488753d64..4b895f014b 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -79,6 +79,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){ a.mant>>=1; } av_assert2(a.mant < 0x40000000 && a.mant > -0x40000000); + av_assert2(a.exp <= MAX_EXP); return a; #elif 1 int t= a.mant + 0x40000000 < 0; |