mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 01:10:03 +01:00
Reported in #1817: xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: danger: out-of-bounds read from byte 16 till byte 19 but ‘fds’ ends at byte 16 141| int i; 142| for (i = 0; i < num_fds; i++) 143|-> close(fds[i]); 144| return -1; 145| } Only possible if fds_from_pixmap returns a value > 4, but the analyzer doesn't know the interface is defined not to do that. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2085> |
||
|---|---|---|
| .. | ||
| dri3.c | ||
| dri3.h | ||
| dri3_priv.h | ||
| dri3_request.c | ||
| dri3_screen.c | ||
| meson.build | ||