Summary: | x11-apps/igt-gpu-tools-1.28 - ../.../amd_dp_dsc.c: error: array subscript 6 is above array bounds of igt_output_t [6] [-Werror=array-bounds=] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | CONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 914580 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt temp.tar.xz x11-apps:igt-gpu-tools-1.28:20240304-063436.log.xz |
Description
Toralf Förster
![]() Created attachment 886698 [details]
emerge-info.txt
Created attachment 886699 [details]
emerge-history.txt
Created attachment 886700 [details]
environment
Created attachment 886701 [details]
etc.clang.tar.xz
Created attachment 886702 [details]
etc.portage.tar.xz
Created attachment 886703 [details]
qlist-info.txt
Created attachment 886704 [details]
temp.tar.xz
Created attachment 886705 [details]
x11-apps:igt-gpu-tools-1.28:20240304-063436.log.xz
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/c0cc1de7b2f4041ca68960362aa55f881d416bac looks related but this patch is already in v1.28. With USE=tests VIDEO_CARDS=amdgpu I see it build amd_dp_dsc.c successfully with `-Werror=array-bounds` with gcc-13. [1221/1500] x86_64-pc-linux-gnu-gcc -Itests/amdgpu/amd_dp_dsc.p -Itests/amdgpu -I../igt-gpu-tools-1.28/tests/amdgpu -I../igt-gpu-tools-1.28/include -I../igt-gpu-tools-1.28/include/drm-uapi -I../igt-gpu-tools-1.28/include/linux-uapi -Ilib -I../igt-gpu-tools-1.28/lib -I../igt-gpu-tools-1.28/lib/stubs/syscalls -I. -I../igt-gpu-tools-1.28 -I../igt-gpu-tools-1.28/lib/stubs/libunwind -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libdrm -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -D_GNU_SOURCE -include config.h -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -O2 -march=tigerlake -mno-avx512f -fcf-protection=full -pipe -fno-omit-frame-pointer -Werror=implicit-function-declaration -Werror=implicit-int -pthread -MD -MQ tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o -MF tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o.d -o tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o -c ../igt-gpu-tools-1.28/tests/amdgpu/amd_dp_dsc.c |