Re: [FFmpeg-devel] [PATCH 4/5] avcodec/fitsdec: Use lrint()

2019-12-05 Thread Michael Niedermayer
On Thu, Dec 05, 2019 at 02:51:32PM -0300, James Almer wrote: > On 12/5/2019 2:46 PM, Michael Niedermayer wrote: > > On Mon, Sep 30, 2019 at 10:30:59PM -0300, James Almer wrote: > >> On 9/30/2019 1:30 PM, Michael Niedermayer wrote: > >>> Fixes: -nan is outside the range of representable values of ty

Re: [FFmpeg-devel] [PATCH 4/5] avcodec/fitsdec: Use lrint()

2019-12-05 Thread James Almer
On 12/5/2019 2:46 PM, Michael Niedermayer wrote: > On Mon, Sep 30, 2019 at 10:30:59PM -0300, James Almer wrote: >> On 9/30/2019 1:30 PM, Michael Niedermayer wrote: >>> Fixes: -nan is outside the range of representable values of type 'unsigned >>> short' >> >> From lrint documentation: >> >> "If x

Re: [FFmpeg-devel] [PATCH 4/5] avcodec/fitsdec: Use lrint()

2019-12-05 Thread Michael Niedermayer
On Mon, Sep 30, 2019 at 10:30:59PM -0300, James Almer wrote: > On 9/30/2019 1:30 PM, Michael Niedermayer wrote: > > Fixes: -nan is outside the range of representable values of type 'unsigned > > short' > > From lrint documentation: > > "If x is a NaN or an infinity, or the rounded value is too l

Re: [FFmpeg-devel] [PATCH 4/5] avcodec/fitsdec: Use lrint()

2019-10-01 Thread Michael Niedermayer
On Mon, Sep 30, 2019 at 10:30:59PM -0300, James Almer wrote: > On 9/30/2019 1:30 PM, Michael Niedermayer wrote: > > Fixes: -nan is outside the range of representable values of type 'unsigned > > short' > > From lrint documentation: > > "If x is a NaN or an infinity, or the rounded value is too l

Re: [FFmpeg-devel] [PATCH 4/5] avcodec/fitsdec: Use lrint()

2019-09-30 Thread James Almer
On 9/30/2019 1:30 PM, Michael Niedermayer wrote: > Fixes: -nan is outside the range of representable values of type 'unsigned > short' From lrint documentation: "If x is a NaN or an infinity, or the rounded value is too large to be stored in a long (long long in the case of the ll* functions), t

[FFmpeg-devel] [PATCH 4/5] avcodec/fitsdec: Use lrint()

2019-09-30 Thread Michael Niedermayer
Fixes: -nan is outside the range of representable values of type 'unsigned short' Fixes: 17769/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FITS_fuzzer-5678314672357376 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michae