xserver/glamor
Jonathan Gray 101791f80f glamor: fix free of uninitialised pointers
Attempting to run fvwm on a x61/965gm with xserver 1.21.1 with the
modesetting driver on OpenBSD/amd64 would cause the xserver to
reliably crash.

I tracked this down to the free() calls introduced in
2906ee5e4a
(d1ca47e124 in branch).

clang also warns about this:
glamor_program.c:296:13: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:290:9: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:288:9: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:277:13: warning: variable 'vs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:296:13: warning: variable 'fs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:290:9: warning: variable 'fs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:288:9: warning: variable 'fs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
glamor_program.c:277:13: warning: variable 'fs_prog_string' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
Fixes: 2906ee5e4 ("glamor: Fix leak in glamor_build_program()")
(cherry picked from commit 5ac6319776)
2021-12-04 18:05:29 +02:00
..
Makefile.am
glamor.c glamor: Fix handling of 1-bit pixmaps 2021-09-09 23:59:06 +00:00
glamor.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
glamor_addtraps.c
glamor_composite_glyphs.c glamor: add glamor_glsl_has_ints wrapper 2021-07-07 08:41:50 +10:00
glamor_compositerects.c
glamor_context.h
glamor_copy.c glamor: Propagate glamor_prepare_access failures in copy helpers 2019-03-08 14:29:40 +01:00
glamor_core.c
glamor_dash.c
glamor_debug.h
glamor_egl.c Revert "glamor: Enable modifier support for xfree86 too" 2021-09-01 18:51:02 +00:00
glamor_egl.h glamor/xwayland: Define EGL_NO_X11 2019-11-04 20:49:33 +01:00
glamor_egl_ext.h
glamor_egl_stubs.c glamor: Unbreak glamor_fd_from_pixmap() 2018-06-27 15:07:56 -04:00
glamor_eglmodule.c
glamor_fbo.c glamor: make sure the correct FBO is cleared 2019-11-22 17:12:03 +01:00
glamor_font.c glamor: add glamor_glsl_has_ints wrapper 2021-07-07 08:41:50 +10:00
glamor_font.h
glamor_glx.c
glamor_glyphblt.c
glamor_gradient.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
glamor_image.c
glamor_largepixmap.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
glamor_lines.c
glamor_picture.c glamor: Introduce a central place for our pixmap format/type handling. 2019-04-17 19:34:48 +00:00
glamor_pixmap.c glamor: Switch the gl_flavor to a boolean is_gles. 2019-04-17 19:34:48 +00:00
glamor_points.c
glamor_prepare.c glamor: Fix a compiler warning since the recent OOM fixes. 2019-03-28 13:55:22 -07:00
glamor_prepare.h
glamor_priv.h glamor: Fix handling of 1-bit pixmaps 2021-09-09 23:59:06 +00:00
glamor_program.c glamor: fix free of uninitialised pointers 2021-12-04 18:05:29 +02:00
glamor_program.h
glamor_rects.c glamor: add glamor_glsl_has_ints wrapper 2021-07-07 08:41:50 +10:00
glamor_render.c glamor: Fix handling of 1-bit pixmaps 2021-09-09 23:59:06 +00:00
glamor_segs.c
glamor_spans.c glamor: add glamor_glsl_has_ints wrapper 2021-07-07 08:41:50 +10:00
glamor_sync.c
glamor_text.c
glamor_transfer.c glamor: Introduce a central place for our pixmap format/type handling. 2019-04-17 19:34:48 +00:00
glamor_transfer.h glamor: Introduce a central place for our pixmap format/type handling. 2019-04-17 19:34:48 +00:00
glamor_transform.c glamor: Fix more fallback paths with non-GXcopy rop with GLES 2019-05-28 18:10:56 +00:00
glamor_transform.h
glamor_trapezoid.c
glamor_triangles.c
glamor_utils.c
glamor_utils.h glamor: add EXT_gpu_shader4 support 2021-07-07 08:42:09 +10:00
glamor_vbo.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
glamor_window.c
glamor_xv.c Consolidate fourcc.h 2020-09-15 11:43:16 +02:00
meson.build