1. 31 Aug, 2015 1 commit
    • José Hiram Soltren's avatar
      Use secure_getenv(3) to improve security · d1f9c16b
      José Hiram Soltren authored
      
      
      This patch is in response to the following security vulnerabilities
      (CVEs) reported to NVIDIA against libvdpau:
      
      CVE-2015-5198
      CVE-2015-5199
      CVE-2015-5200
      
      To address these CVEs, this patch:
      
      - replaces all uses of getenv(3) with secure_getenv(3);
      - uses secure_getenv(3) when available, with a fallback option;
      - protects VDPAU_DRIVER against directory traversal by checking for '/'
      
      On platforms where secure_getenv(3) is not available, the C preprocessor
      will print a warning at compile time. Then, a preprocessor macro will
      replace secure_getenv(3) with our getenv_wrapper(), which utilizes the check:
      
        getuid() == geteuid() && getgid() == getegid()
      
      See getuid(2) and getgid(2) for further details.
      Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
      Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
      d1f9c16b
  2. 27 May, 2015 1 commit
  3. 09 Sep, 2014 1 commit
    • Robert Morell's avatar
      vdpau_trace: Fix GCC 4.8 build warnings · a2386ece
      Robert Morell authored
      
      
      vdpau_trace.cpp: In function 'void _vdp_cap_dump_video_mixer_attribute_value(VdpVideoMixerAttribute, const void*, bool)':
      vdpau_trace.cpp:539:48: error: cast from type 'const void*' to type 'const float (**)[3][4]' casts away qualifiers [-Werror=cast-qual]
                       ptr = *(VdpCSCMatrix const * *)value;
                                                      ^
      vdpau_trace.cpp: In function 'void _vdp_cap_dump_bitstream_buffer_list(uint32_t, const VdpBitstreamBuffer*)':
      vdpau_trace.cpp:1175:52: error: cast from type 'const void* const' to type 'uint8_t* {aka unsigned char*}' casts away qualifiers [-Werror=cast-qual]
                   uint8_t * ptr = (uint8_t * )buffers[0].bitstream;
                                                          ^
      Signed-off-by: default avatarRobert Morell <rmorell@nvidia.com>
      Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
      a2386ece
  4. 19 Jul, 2014 1 commit
  5. 28 Jan, 2014 1 commit
  6. 01 Aug, 2013 1 commit
  7. 02 Feb, 2013 1 commit
  8. 28 Jan, 2010 1 commit
  9. 17 Nov, 2009 1 commit
    • Aaron Plattner's avatar
      Move VDPAU drivers into their own module directory. · 0537b13e
      Aaron Plattner authored
      
      
      * Add a --with-module-dir configure parameter.
      
      * Pass the moduledir into the wrapper.  Use it to construct the path to search
        for drivers.  Require drivers to end in a ".1" version, in case we ever want
        to rev. the interface between the wrapper and the drivers.
      
      * If no driver is found in the new module dir, look for one in the default
        search paths.  This is intended to find libvdpau_nvidia.so for drivers that
        predate the change to move it, and can be removed in the future.
      
      * Stash the moduledir into vdpau.pc.  Drivers can find this with
        `pkg-config --variable=moduledir vdpau`.
      
      * Add a version to libvdpau_trace.so in case the interface between it and
        libvdpau.so ever changes.
      
      * Install libvdpau_trace.so.1 to moduledir instead of libdir.
      Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
      Acked-by: default avatarStephen Warren <swarren@nvidia.com>
      0537b13e
  10. 04 Sep, 2009 1 commit
  11. 02 Sep, 2009 1 commit
  12. 08 Jul, 2009 1 commit
  13. 15 Mar, 2009 2 commits
  14. 14 Jan, 2009 3 commits