[vlc-devel] [vlc-commits] codec: avcodec: assert provides no safety
remi at remlab.net
Sat May 16 18:40:25 CEST 2015
Le samedi 16 mai 2015, 16:38:46 Francois Cartegnie a écrit :
> Handling that bogus consumed bytes
I thought this was obvious by now: By definition, undefined behaviour cannot be
handled. That is not up for discussion - unless you propose changing both the
programming language and the compiler.
> you have to blacklist faulty avcodec version prior decoding,
Again, I thought it was obvious: If VLC contribs ships a buggy version of a
library, then fix *contribs* not VLC. Otherwise it is not our problem.
> or allow p_block->i_buffer to overflow in
> releases and its consequences.
Allowing undefined behaviour is intrinsically impossible.
More information about the vlc-devel