mesa/src/intel/common
Michel Dänzer a74ffd6900 Pass the destination buffer size minus one to strncpy
Copying the last byte was pointless, since the next line overwrites it,
and resulted in a compiler warning:

../src/intel/common/intel_measure.c: In function 'intel_measure_init':
../src/intel/common/intel_measure.c:68:7: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation]
   68 |       strncpy(env_copy, env, 1024);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

This allows dropping -Wno-error=stringop-truncation from the
debian-x86_64-asan & debian-{arm64,x86_64}-ubsan CI jobs.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39429>
2026-01-22 15:44:09 +01:00
..
i915 intel: unify parameters for the exec ioctl retries 2025-10-07 19:48:36 +00:00
tests intel/common: fix mi_builder_test issue 2025-02-04 12:57:19 +00:00
xe intel: unify parameters for the exec ioctl retries 2025-10-07 19:48:36 +00:00
intel_aux_map.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_aux_map.h intel/isl: Add and use ISL_MAIN_TO_CCS_SIZE_RATIO_XE 2024-06-06 23:57:52 +00:00
intel_bind_timeline.c intel/common: Add functions to handle async vm bind 2024-02-09 20:24:48 +00:00
intel_bind_timeline.h intel/common: Add functions to handle async vm bind 2024-02-09 20:24:48 +00:00
intel_buffer_alloc.h
intel_common.c intel/common: Consider 0 threads while setting TG 2025-11-10 12:09:30 -08:00
intel_common.h intel/common: Add helper for compute thread group dispatch size 2025-07-10 22:08:36 +00:00
intel_compute_slm.c intel: Compute the optimal preferred SLM size per subslice 2024-05-30 16:46:16 +00:00
intel_compute_slm.h intel: Compute the optimal preferred SLM size per subslice 2024-05-30 16:46:16 +00:00
intel_debug_identifier.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_debug_identifier.h intel: move debug identifier out of libintel_dev 2024-05-11 01:52:01 +00:00
intel_engine.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_engine.h intel/common: Implement Xe KMD in mi_builder tests 2024-11-20 01:47:04 +00:00
intel_gem.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_gem.h intel: unify parameters for the exec ioctl retries 2025-10-07 19:48:36 +00:00
intel_genX_state_brw.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_genX_state_elk.h intel/elk: Remove multi-polygon support 2024-03-07 15:53:19 +00:00
intel_guardband.h
intel_hang_dump.h intel/tools: Handle new replay properties in the Xe KMD error dump file 2026-01-07 19:16:25 +00:00
intel_l3_config.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_l3_config.h all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08:00
intel_measure.c Pass the destination buffer size minus one to strncpy 2026-01-22 15:44:09 +01:00
intel_measure.h intel/measure: defer file open until first write 2024-11-04 20:25:14 +00:00
intel_pixel_hash.h
intel_sample_positions.c
intel_sample_positions.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
intel_tiled_render.h
intel_urb_config.c treewide: Replace calling to function ALIGN with align 2025-11-12 21:58:40 +00:00
intel_uuid.c ALL: use SHA1_DIGEST_LENGTH etc. instead of hardcoding the numbers 2026-01-07 08:32:33 +00:00
intel_uuid.h
meson.build intel: Drop intel_mem.c/h 2025-10-16 01:19:45 +00:00
mi_builder.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00