[Bug 80157] Buffer Overflow in xf86-video-intel

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 18 10:41:38 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=80157

--- Comment #7 from typingtothemaxbuyer at gmail.com ---
I haven't been able to reproduce the buffer overflow, but I did see the
following in the logs (compiled without valgrind or debug from git commit
83c0f03):

  X: sna_dri2.c:2142: chain_flip: Assertion `chain == dri2_chain(chain->draw)'
failed.


I'm getting the following build error when recompiling from head (83c0f03) with
full debug and valgrind.

  In file included from sna.h:111:0,
                   from sna_display.c:43:
  sna_display.c: In function 'sna_mode_redisplay':
  sna_display.c:6334:10: error: 'crtc_offset' undeclared (first use in this
function)
            crtc_offset, crtc->offset));
            ^
  fb/fb.h:43:21: note: in definition of macro 'DBG'
   #define DBG(x) LogF x
                       ^
  sna_display.c:6334:10: note: each undeclared identifier is reported only once
for each function it appears in
            crtc_offset, crtc->offset));
            ^
  fb/fb.h:43:21: note: in definition of macro 'DBG'
   #define DBG(x) LogF x
                       ^
  Makefile:635: recipe for target 'sna_display.lo' failed
  make[4]: *** [sna_display.lo] Error 1
  make[4]: Leaving directory
'/home/jack/code/pkgbuilds/xf86-video-intel-git/src/xf86-video-intel-git/src/sna'
  Makefile:654: recipe for target 'all-recursive' failed
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory
'/home/jack/code/pkgbuilds/xf86-video-intel-git/src/xf86-video-intel-git/src/sna'
  Makefile:602: recipe for target 'all-recursive' failed
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory
'/home/jack/code/pkgbuilds/xf86-video-intel-git/src/xf86-video-intel-git/src'
  Makefile:472: recipe for target 'all-recursive' failed
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory
'/home/jack/code/pkgbuilds/xf86-video-intel-git/src/xf86-video-intel-git'
  Makefile:403: recipe for target 'all' failed
  make: *** [all] Error 2


I'm using arch linux with the following compiler/linker flags:

  CPPFLAGS="-D_FORTIFY_SOURCE=2"
  CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4"
  CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4"
  LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
  DEBUG_CFLAGS="-g -fvar-tracking-assignments"
  DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

Thanks

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140618/08ec1dff/attachment.html>


More information about the intel-gfx-bugs mailing list