Alan Coopersmith
0616df4a76
panoramix: avoid null dereference in PanoramiXMaybeAddDepth()
Reported in https://gitlab.freedesktop.org/xorg/xserver/-/issues/1817:
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:748:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘PanoramiXDepths’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:802:1: enter_function: entry to ‘PanoramiXConsolidate’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:813:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:814:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:814:9: call_function: calling ‘PanoramiXMaybeAddDepth’ from ‘PanoramiXConsolidate’
746| PanoramiXDepths = reallocarray(PanoramiXDepths,
747| PanoramiXNumDepths, sizeof(DepthRec));
748|-> PanoramiXDepths[j].depth = pDepth->depth;
749| PanoramiXDepths[j].numVids = 0;
750| PanoramiXDepths[j].vids = NULL;
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2065>
2025-10-02 18:46:33 +02:00
..
2025-10-01 11:40:34 +02:00
2025-09-29 11:24:13 +02:00
2025-09-24 11:32:50 +02:00
2025-10-01 11:40:34 +02:00
2025-06-12 16:50:20 +02:00
2025-06-27 13:58:05 +02:00
2025-09-24 11:32:50 +02:00
2025-06-12 17:21:43 +02:00
2025-06-12 16:51:36 +02:00
2025-09-17 09:46:27 +02:00
2025-10-02 18:46:33 +02:00
2025-09-09 14:12:40 +02:00
2025-09-17 09:46:27 +02:00
2025-10-01 11:42:50 +02:00
2025-09-09 14:12:40 +02:00
2025-10-01 11:40:34 +02:00
2025-09-29 11:24:13 +02:00
2025-06-12 16:30:13 +02:00
2025-09-24 11:32:50 +02:00
2025-10-01 11:40:34 +02:00
2013-11-14 10:22:15 +09:00
2025-08-13 11:52:03 +02:00
2025-06-12 16:50:20 +02:00
2025-10-01 11:40:34 +02:00
2019-04-17 14:01:17 -07:00
2017-09-20 13:19:27 -04:00
2025-09-24 11:32:50 +02:00
2025-09-29 11:24:13 +02:00
2025-09-29 11:24:13 +02:00
2025-09-29 11:24:13 +02:00
2025-09-24 11:32:50 +02:00
2025-09-24 11:32:50 +02:00
2012-07-09 23:06:41 -07:00
2025-09-30 09:57:36 +02:00
2025-09-24 11:32:50 +02:00
2025-10-01 11:40:34 +02:00
2024-10-10 13:38:31 +00:00
2024-03-25 19:40:04 +00:00
2024-03-03 23:20:06 +00:00
2025-09-24 11:32:50 +02:00
2025-09-24 11:32:50 +02:00
2025-06-27 13:58:05 +02:00
2025-09-29 11:23:48 +02:00
2025-06-16 10:32:48 +02:00
2025-09-26 15:35:25 +02:00
2025-09-29 11:23:36 +02:00
2024-10-10 19:59:48 +00:00