On 23/01/13 11:32, Martin Storsjö wrote:
> From: Xi Wang <[email protected]>
> 
> The check `start + res < start' is broken since pointer overflow is
> undefined behavior in C.  Many compilers such as gcc/clang optimize
> away this check.
> 
> Use `res > end - start' instead.  Also change `res' to unsigned int
> to avoid signed left-shift overflow.
> 
> Signed-off-by: Xi Wang <[email protected]>
> ---
>  libavformat/rtpenc_h264.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

OK.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to