1. 28 Dec, 2015 2 commits
    • Mike Gabriel's avatar
      Clear header file namespace separation (<X11/...> vs. <nx-X11/...>). · 433d8186
      Mike Gabriel authored
       In the process of building nxagent against more and more system-wide installed
       X.org libraries, we come to the limit of including structs from this (bundled
       nx-X11) and that (system-wide X.Org) library.
      
       This commit introduces a clear namespace separation of headers provided by
       nx-X11 and headers provided by X.Org. This approach is only temporary as we
       want to drop all nx-X11 bundled libraries from nx-libs.
      
       However, for a while we need to make this separation clear and also ship
       some reduced fake X.Org headers that avoid pulling in libX* and libNX_X*
       symbols at the same time.
      
       This patch has been tested on Debian jessie and unstable and requires no
       overall testing on various distros and distro versions, as we finally will
       drop all libNX_X* libraries and build against X.org's client libs.
      
       For now, this hack eases our development / cleanup process.
      433d8186
    • Keith Packard's avatar
      Replace 'pointer' type with 'void *' · 68dd0b52
      Keith Packard authored
       This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer'
       is used throughout the X server for other things, and having duplicate
       names generates compiler warnings.
      Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: 's avatarEric Anholt <eric@anholt.net>
       Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
      68dd0b52
  2. 01 Jul, 2015 1 commit
  3. 14 Feb, 2015 1 commit
    • Alan Coopersmith's avatar
      Xi: unvalidated lengths in Xinput extension [CVE-2014-8095] · fde1375e
      Alan Coopersmith authored
      Multiple functions in the Xinput extension handling of requests from
      clients failed to check that the length of the request sent by the
      client was large enough to perform all the required operations and
      thus could read or write to memory outside the bounds of the request
      buffer.
      
      This commit includes the creation of a new REQUEST_AT_LEAST_EXTRA_SIZE
      macro in include/dix.h for the common case of needing to ensure a
      request is large enough to include both the request itself and a
      minimum amount of extra data following the request header.
      
      v2: backport to nx-libs 3.6.x (Mike DePaulo)
      Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      
      Conflicts:
      	Xi/chgdctl.c
      	Xi/chgfctl.c
      	Xi/xiallowev.c
      	Xi/xichangecursor.c
      	Xi/xichangehierarchy.c
      	Xi/xigetclientpointer.c
      	Xi/xigrabdev.c
      	Xi/xipassivegrab.c
      	Xi/xiproperty.c
      	Xi/xiquerydevice.c
      	Xi/xiquerypointer.c
      	Xi/xiselectev.c
      	Xi/xisetclientpointer.c
      	Xi/xisetdevfocus.c
      	Xi/xiwarppointer.c
      
      [RHEL5: Xi/xi* files are XI2 ]
      fde1375e
  4. 10 Oct, 2011 2 commits