Files
xserver/os
Enrico Weigelt, metux IT consult f5062223ec os: xtrans: fix calloc overflow warning
The size of `int` is machine specific and may be 64 bits wide, which could
overflow the calloc'able size. Practically cannot happen here, since the
ListenTransCount can't go above MAX_CONNECTIONS, but compiler can't know
that and so spitting out a warning.

Using uint32_t really is sufficient here.

> ../os/connection.c: In function ‘CreateWellKnownSockets’:
> ../os/connection.c:274:22: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
>   274 |     ListenTransFds = calloc(ListenTransCount, sizeof(int));
>       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-18 22:29:38 +02:00
..
2025-06-12 16:49:45 +02:00
2024-04-15 19:54:34 +00:00
2024-10-10 13:38:31 +00:00
2025-07-18 22:24:55 +02:00
2024-05-08 09:37:35 +02:00
2024-03-09 17:34:51 +00:00
2025-06-12 17:21:44 +02:00
2025-06-12 17:21:46 +02:00
2025-06-12 17:21:48 +02:00
2016-07-21 15:04:47 -04: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-02-23 17:46:13 +00:00
2025-06-12 16:54:27 +02:00
2025-06-12 17:21:46 +02:00
2025-06-12 16:49:45 +02:00
2024-03-03 23:11:05 +00:00