]> git.sesse.net Git - ffmpeg/commit
ffmdec: change type of len to ptrdiff_t
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 2 Jan 2016 15:32:09 +0000 (16:32 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 11 Jan 2016 22:14:52 +0000 (23:14 +0100)
commitf6e1c96730ebbcebbd0341329d51d3d3a36b4fa1
treeb78172d8ed925738c07ba7819a55a1a2fc4d1d13
parent63c9b30f98ce7d160b3a6dec1b36dc05fbb71941
ffmdec: change type of len to ptrdiff_t

It is used to store the difference between pointers, so ptrdiff_t is the
correct type.

This prevents potential overflows.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/ffmdec.c