Files
xserver/Xext
Enrico Weigelt, metux IT consult bf5d98bfbd Xext: shape: fix warning on possible NULL dereference
Try not to rely on deep black magic of calloc(), instead skip the whole
part of nrects is zero.

| ../Xext/shape.c: In function ‘ProcShapeGetRectangles’:
| ../Xext/shape.c:995:24: warning: dereference of possibly-NULL ‘rects’ [CWE-690] [-Wanalyzer-possible-null-dereference]
|   995 |             rects[i].x = box->x1;
|       |             ~~~~~~~~~~~^~~~~~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-12 17:41:20 +02:00
..
2025-02-24 20:19:55 +00:00
2024-10-10 13:38:31 +00:00
2020-07-05 13:07:33 -07:00
2024-06-23 19:31:46 +00:00
2024-10-26 16:35:57 +00:00
2024-10-10 13:38:31 +00:00
2025-02-18 10:53:44 +00:00
2014-01-12 10:24:11 -08:00
2025-02-18 10:53:45 +00:00
2024-10-10 19:59:48 +00:00