From 5e8b9e746fd58229e8a7ab1ced41918863f576ce Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Nov 2015 13:41:58 +0100 Subject: [PATCH] avutil/softfloat: Assert that the exponent did not overflow the legal range in av_normalize1_sf() Signed-off-by: Michael Niedermayer --- libavutil/softfloat.h | 1 + 1 file changed, 1 insertion(+) 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;