Reimar Döffinger <[email protected]> added the comment: On Thu, Dec 09, 2010 at 03:02:15PM +0000, Michael Kostylev wrote: > Since r25920 avpicture_alloc() has been switched to av_image_alloc() > where av_malloc() is used inaccurately. Underlying malloc(0) as > permitted by the spec may return NULL and that case isn't covered.
Could you please explain in which case a malloc(0) can validly happen? Either way I'd be in favour of making av_malloc always return NULL for 0 size. ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2412> ________________________________________________
