xserver/os
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alan Coopersmith 3eac9393d7 os: make FormatInt64() handle LONG_MIN correctly
When compiling with gcc 15.2.0 using -O3 -m64 on Solaris SPARC & x64,
we'd get a test failure of:

Assertion failed: strcmp(logmsg, expected) == 0,
 file ../test/signal-logging.c, line 339, function logging_format

because 'num *= 1' produced a value that was out of the range of the
int64_t it was being stored in.  (Compiling with -O2 worked fine with
the same compiler/configuration/platform though.)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2117>
(cherry picked from commit 7f68b58865)
2026-01-25 10:40:03 -08:00
..
.gitignore
access.c os: if getaddrinfo() is available, use it, even if IPv6 support is disabled 2026-01-25 10:39:58 -08:00
auth.c os: drop SUN-DES-1 authentication 2026-01-25 10:39:53 -08:00
backtrace.c os: backtrace: Fix -Wincompatible-pointer-types compiler error on 32-bit targets 2026-01-25 10:40:00 -08:00
busfault.c include: move busfault.h out of public include dir 2026-01-19 12:32:26 -08:00
busfault.h os: fix missing include of misc.h in busfault.h 2026-01-19 12:48:30 -08:00
client.c Return NULL in *cmdname if the client argv or argv[0] is NULL 2026-01-25 10:39:56 -08:00
connection.c os: use close-on-exec for X server socket to prevent fd leaks 2026-01-25 10:40:02 -08:00
inputthread.c
io.c os: Check for integer overflow on BigRequest length 2026-01-25 10:40:02 -08:00
log.c os: avoid potential out-of-bounds access at logVHdrMessageVerb 2026-01-25 10:40:02 -08:00
meson.build os: drop SUN-DES-1 authentication 2026-01-25 10:39:53 -08:00
mitauth.c
oscolor.c os: unexport OsLookupColor() 2026-01-19 12:47:57 -08:00
osdep.h Re-export Ones() 2026-01-25 10:40:02 -08:00
osinit.c os/osinit: fix build when execinfo.h is missing 2026-01-25 10:40:00 -08:00
ospoll.c os: move xserver_poll.h into os/ directory 2026-01-25 10:39:54 -08:00
ospoll.h
reallocarray.c
strcasecmp.c
strcasestr.c
strlcat.c
strlcpy.c
strndup.c
timingsafe_memcmp.c
utils.c os: make FormatInt64() handle LONG_MIN correctly 2026-01-25 10:40:03 -08:00
WaitFor.c os: NextDPMSTimeout: mark intentional fallthroughs in switch 2026-01-25 10:39:57 -08:00
xdmauth.c
xdmcp.c os: if getaddrinfo() is available, use it, even if IPv6 support is disabled 2026-01-25 10:39:58 -08:00
xprintf.c
xserver_poll.c os: move xserver_poll.h into os/ directory 2026-01-25 10:39:54 -08:00
xserver_poll.h os: move xserver_poll.h into os/ directory 2026-01-25 10:39:54 -08:00
xsha1.c os: Use EVP APIs when building with OpenSSL 3 2026-01-25 10:40:02 -08:00
xsha1.h
xstrans.c