[x264-devel] Buffer overflow in x264_plane_copy_interleave_neon

Henrik Gramner henrik at gramner.com
Thu Aug 25 15:53:56 CEST 2016


On Thu, Aug 25, 2016 at 2:49 PM, Kirill Batuzov <batuzovk at ispras.ru> wrote:
> Hi,
>
> I think I've encountered a buffer overflow error in function
> x264_plane_copy_interleave_neon. It causes latest x264 to segfault
> under QEMU user emulation or Valgrind.

Hi,

Yes, you're right. As you've noticed, the x86 code ensures that we
don't overread the input since we cannot safely read past the end due
to libx264 not having any control of the size or alignment of the
input buffer.

The ARM code should be fixed to do the same.


More information about the x264-devel mailing list