tags 699215 patch
thanks

I can confirm that applying the patch from upstream to the version of VLC in Debian Wheezy fixes the crash.

Patch from upstream attached.

Thanks for your time.

-David

On 01/29/2013 11:39 PM, Reinhard Tartler wrote:
Tags 699215 moreinfo
Severity 699215 minor
stop


On Tue, Jan 29, 2013 at 7:11 AM, David Smith<sidic...@gmail.com>  wrote:
notfound 699215 2.0.5-1
thanks


On 01/29/2013 01:50 PM, David M Smith wrote:
Package: vlc
Version: 2.0.3-4
Severity: important

vlc segfaults while opening some H.264 videos.

gdb output below.

This crash does not happen while using the version of VLC in Debian unstable
2.0.5-1. The video files open just fine.

See http://wiki.debian.org/HowToGetABacktrace for more information how
to get nicer backtraces.

I notice that you have configured VAAPI in the vlc preferences. Does
the problem still appear if you disable hardware acceleration via
VAAPI?

Can you reproduce the crashes with the avplay utility found in the
libav-tools package?



Description: Fix crash when opening some videos with vaapi enabled.
Origin: upstream, http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;a=commitdiff;h=39dc439cf5e3fe83b87078bcf93c13d07fd02dac;hp=44819779f94086ea1f21a9649af8d41754fa9ccf#patch1
Bug: https://trac.videolan.org/vlc/ticket/6333
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699215
Last-Update: 2012-01-30



--- a/modules/codec/avcodec/copy.c
+++ b/modules/codec/avcodec/copy.c
@@ -70,10 +70,10 @@
 
     ASM_SSE2(cpu, "mfence");
     for (unsigned y = 0; y < height; y++) {
-        const unsigned unaligned = (intptr_t)src & 0x0f;
-        unsigned x;
+        const unsigned unaligned = (-(uintptr_t)src) & 0x0f;
+        unsigned x = 0;
 
-        for (x = 0; x < unaligned; x++)
+        for (; x < unaligned; x++)
             dst[x] = src[x];
 
 #ifdef CAN_COMPILE_SSE4_1

Reply via email to