[FFmpeg-cvslog] avutil/softfloat: Assert that the exponent did not overflow the legal range in av_normalize1_sf ()

Michael Niedermayer git at videolan.org
Fri Dec 11 15:00:20 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov  8 13:41:58 2015 +0100| [5e8b9e746fd58229e8a7ab1ced41918863f576ce] | committer: Michael Niedermayer

avutil/softfloat: Assert that the exponent did not overflow the legal range in av_normalize1_sf()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e8b9e746fd58229e8a7ab1ced41918863f576ce
---

 libavutil/softfloat.h |    1 +
 1 file changed, 1 insertion(+)

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;



More information about the ffmpeg-cvslog mailing list