Emil Velikov a9bb32cfe1 xf86drm: cap number of reported devices by drmGetDevice(2)
Do as the documentation says - when devices non NULL, cap the reported
devices to max_devices. Otherwise we risk out-of-bound access
for users of the API.

v2:
 - Fix this w/o breaking the API

v3:
 - Drop local variables, flip inverted conditional (Simon)

Issue: https://gitlab.freedesktop.org/mesa/drm/-/issues/56
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
2021-02-26 13:03:06 +00:00
2021-01-11 13:40:39 -05:00
2021-02-15 10:07:15 -05:00
2020-12-10 10:17:19 +01:00
2019-11-11 22:57:14 +00:00
2019-11-11 22:57:14 +00:00
2018-01-12 09:40:48 -08:00
2019-12-17 22:37:39 +00:00
2015-12-18 17:43:40 +00:00
2021-02-26 12:56:46 +01:00
2016-11-05 10:16:46 -04:00
2018-01-12 09:40:48 -08:00
2021-01-21 11:27:30 +01:00
2018-09-05 13:09:29 +01:00
2021-02-26 12:56:46 +01:00
2021-02-26 12:56:46 +01:00
2018-09-19 22:46:45 -07:00

libdrm - userspace library for drm
----------------------------------

This is libdrm, a userspace library for accessing the DRM, direct rendering
manager, on Linux, BSD and other operating systems that support the ioctl
interface.
The library provides wrapper functions for the ioctls to avoid exposing the
kernel interface directly, and for chipsets with drm memory manager, support
for tracking relocations and buffers.
New functionality in the kernel DRM drivers typically requires a new libdrm,
but a new libdrm will always work with an older kernel.

libdrm is a low-level library, typically used by graphics drivers such as
the Mesa drivers, the X drivers, libva and similar projects.


Compiling
---------

To set up meson:

    meson builddir/

By default this will install into /usr/local, you can change your prefix
with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after 
the initial meson setup).

Then use ninja to build and install:

    ninja -C builddir/ install

If you are installing into a system location you will need to run install
separately, and as root.
S
Description
No description provided
Readme
11 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 97.5%
Meson 2.1%
Python 0.3%