[FFmpeg-devel] [PATCH 0/2] Needlessly (?) Anal C Spec Adherence Fixe

wm4 nfxjfg at googlemail.com
Thu Jul 6 20:42:06 EEST 2017


On Thu,  6 Jul 2017 18:34:19 +0100
Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:

> As per the C standard:
> 
>     Where an argument declared as size_t n specifies the length of the
>     array for a function, n can have the value zero on a call to that
>     function. Unless explicitly stated otherwise in the description of
>     a particular function in this subclause, pointer arguments on such
>     a call shall still have valid values, as described in 7.1.4.
> 
> Derek Buitenhuis (2):
>   concatdec: Do not pass NULL to memcmp
>   mpegtsenc: Don't pass NULL to memcpy
> 
>  libavformat/concatdec.c | 2 +-
>  libavformat/mpegtsenc.c | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 

Both LGTM.


More information about the ffmpeg-devel mailing list