summaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-08 13:41:58 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-11 13:39:21 +0100
commit5e8b9e746fd58229e8a7ab1ced41918863f576ce (patch)
tree90013841e40ecabb92806bc2d1ac17c28eee7c09 /libavutil/softfloat.h
parentdf2ce130a65cce7cc7b94d21b5d9b0d6014d1bcf (diff)
downloadffmpeg-streaming-5e8b9e746fd58229e8a7ab1ced41918863f576ce.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libavutil/softfloat.h')
-rw-r--r--libavutil/softfloat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 7488753..4b895f0 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;
OpenPOWER on IntegriCloud