Re: [FFmpeg-devel] [PATCH 3/3] ffmdec: change type of len to ptrdiff_t

2016-01-11 Thread Andreas Cadhalpun
On 07.01.2016 04:12, Michael Niedermayer wrote: > On Sat, Jan 02, 2016 at 04:52:25PM +0100, Andreas Cadhalpun wrote: >> It is used to store the difference between pointers, so ptrdiff_t is the >> correct type. >> >> This prevents potential overflows. >> >> Signed-off-by: Andreas Cadhalpun

Re: [FFmpeg-devel] [PATCH 3/3] ffmdec: change type of len to ptrdiff_t

2016-01-06 Thread Michael Niedermayer
On Sat, Jan 02, 2016 at 04:52:25PM +0100, Andreas Cadhalpun wrote: > It is used to store the difference between pointers, so ptrdiff_t is the > correct type. > > This prevents potential overflows. > > Signed-off-by: Andreas Cadhalpun > --- >

[FFmpeg-devel] [PATCH 3/3] ffmdec: change type of len to ptrdiff_t

2016-01-02 Thread Andreas Cadhalpun
It is used to store the difference between pointers, so ptrdiff_t is the correct type. This prevents potential overflows. Signed-off-by: Andreas Cadhalpun --- libavformat/ffmdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH 3/3] ffmdec: change type of len to ptrdiff_t

2016-01-02 Thread Nicolas George
Le tridi 13 nivôse, an CCXXIV, Andreas Cadhalpun a écrit : > It is used to store the difference between pointers, so ptrdiff_t is the > correct type. > > This prevents potential overflows. > > Signed-off-by: Andreas Cadhalpun > --- > libavformat/ffmdec.c | 5

Re: [FFmpeg-devel] [PATCH 3/3] ffmdec: change type of len to ptrdiff_t

2016-01-02 Thread Andreas Cadhalpun
On 02.01.2016 16:59, Nicolas George wrote: > Le tridi 13 nivôse, an CCXXIV, Andreas Cadhalpun a écrit : >> It is used to store the difference between pointers, so ptrdiff_t is the >> correct type. >> >> This prevents potential overflows. >> >> Signed-off-by: Andreas Cadhalpun