mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-05 04:18:16 +02:00
The generated util_format_description(), util_format_pack_description(), and util_format_unpack_description_generic() helpers assert format < PIPE_FORMAT_COUNT but not format >= 0. MSVC's prefast static analyzer reports C33010 (UNCHECKED_LOWER_BOUND_FOR_ENUMINDEX) on the subsequent array subscript, since it cannot prove the non-negative side of the bound. Extending the existing assert in the generator silences the warning across all three accessors. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41447> |
||
|---|---|---|
| .. | ||
| format_utils.h | ||
| meson.build | ||
| texcompress_bptc_tmp.h | ||
| texcompress_etc_tmp.h | ||
| texcompress_s3tc_tmp.h | ||
| u_format.c | ||
| u_format.h | ||
| u_format.yaml | ||
| u_format_bptc.c | ||
| u_format_bptc.h | ||
| u_format_etc.c | ||
| u_format_etc.h | ||
| u_format_fxt1.c | ||
| u_format_fxt1.h | ||
| u_format_latc.c | ||
| u_format_latc.h | ||
| u_format_other.c | ||
| u_format_other.h | ||
| u_format_pack.py | ||
| u_format_parse.py | ||
| u_format_rgtc.c | ||
| u_format_rgtc.h | ||
| u_format_s3tc.c | ||
| u_format_s3tc.h | ||
| u_format_table.py | ||
| u_format_tests.c | ||
| u_format_tests.h | ||
| u_format_unpack_neon.c | ||
| u_format_yuv.c | ||
| u_format_yuv.h | ||
| u_format_zs.c | ||
| u_format_zs.h | ||
| u_formats.h | ||