Files
xserver/os
Mikhail Dmitrichenko 252dda933a os: avoid closing null fd at Fopen
In `Fopen` function variable `iop` may store NULL as a result of `fopen`
call. In this case, if later privileges couldn't be restored (`seteuid`
call fails), further `fclose(iop)` call will cause runtime error.

This commit adds check `iop` for NULL before calling `fclose` to prevent
potential NULL pointer dereference.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2115>
2025-12-19 18:31:23 +01:00
..
2025-12-13 15:59:07 +01:00
2025-09-29 10:53:15 +02:00
2025-09-22 12:00:14 +02:00
2024-10-10 13:38:31 +00:00
2025-07-18 22:24:55 +02:00
2025-12-13 15:59:07 +01:00
2024-03-09 17:34:51 +00:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:49:45 +02:00
2025-12-13 15:59:07 +01:00
2025-12-19 18:31:23 +01:00
2025-12-13 15:59:07 +01:00
2024-03-03 23:11:05 +00:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00