[vlc-devel] Picture size differs from encoder init fmt

Francois Cartegnie fcvlcdev at free.fr
Wed Jan 15 03:21:02 CET 2014


I've found some heap overflow case with at least one encoder.
This is due to requested format different the resulting picture format
passed to encoder, and then overflows the allocated buffer when copying.

fmt_in is 640x336 which becomes 640x352 in pictures.

I'm unsure if there's a bug (I don't see any alignment) and how to
handle it (truncate pic or realloc).


More information about the vlc-devel mailing list