[FFmpeg-devel] [PATCH] avutil/mem: remove av_realloc / av_malloc incompatibility warning

Nicolas George george at nsup.org
Tue Apr 21 15:43:59 CEST 2015


Le duodi 2 floréal, an CCXXIII, wm4 a écrit :
> Isn't the problem that realloc() doesn't keep the alignment?

No. That problem exists too, but is irrelevant for the current code base:
there has been one bug of that kind about three years ago, AFAIK that is
all.

The problem that was addressed here was that, officially according to POSIX,
using realloc() on a buffer returned by posix_memalign() is an undefined
behaviour. In practice, we had quite a few of these cases but that never
caused any problem.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150421/93b86a97/attachment.asc>


More information about the ffmpeg-devel mailing list