History

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

Michael Niedermayer committed 11 years ago

Commit 5e8b9e71 parent df2ce131 file · +1 −0Browse files

Showing the changes to libavutil/softfloat.h (1 of 1 file). Show all

Unified · Split

libavutil/softfloat.h+1−0
@@ -79,6 +79,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){ · 78 unmodified lines
7979 a.mant>>=1;
8080 }
8181 av_assert2(a.mant < 0x40000000 && a.mant > -0x40000000);
82+ av_assert2(a.exp <= MAX_EXP);
8283 return a;
8384 #elif 1
8485 int t= a.mant + 0x40000000 < 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t