softfloat: assert when the argument of av_sqrt_sf is negative
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 8 Nov 2015 14:15:24 +0000 (15:15 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 8 Nov 2015 20:05:21 +0000 (21:05 +0100)
commitf3866a14c3c2949fad16267e9f2977ba9d7b5504
treebd14cdc62ff51eab4b5fda684e2564e5210cb553
parent6a11c7f1605d6f751fd9adb86f24f6c37bed5ddf
softfloat: assert when the argument of av_sqrt_sf is negative

The correct result can't be expressed in SoftFloat.
Currently it returns a random value from an out of bounds read.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavutil/softfloat.h