* [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds]
@ 2016-09-10 0:30 bugzilla-daemon
2016-09-10 0:35 ` bugzilla-daemon
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2016-09-10 0:30 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1473 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=97759
Bug ID: 97759
Summary: compile error bandwidth_calcs.c : array subscript is
above array bounds [-Werror=array-bounds]
Product: DRI
Version: XOrg git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu-pro
Assignee: dri-devel@lists.freedesktop.org
Reporter: ken@kenjo.org
when trying to install amdgpu-pro_16.30.3-315407.tar.xz on ubuntu 16.10
(Yakkety Yak)
/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/make.log
CC [M]
/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../dal/dc/calcs/bandwidth_calcs.o
/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../dal/dc/calcs/bandwidth_calcs.c:
In function ‘calculate_bandwidth’:
/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../dal/dc/calcs/bandwidth_calcs.c:3162:7:
error: array subscript is above array bounds [-Werror=array-bounds]
bw_max2(
^~~~~~~~
results->blackout_recovery_time,
I looked at the code and gave up before even trying to understand it. the
function call or macro was covering 43 lines. That is it's not a function that
is implemented in 43 lines it's the actual call that is 43 lines of code.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2797 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] 2016-09-10 0:30 [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] bugzilla-daemon @ 2016-09-10 0:35 ` bugzilla-daemon 2016-09-10 0:37 ` bugzilla-daemon 2018-12-04 16:36 ` bugzilla-daemon 2 siblings, 0 replies; 4+ messages in thread From: bugzilla-daemon @ 2016-09-10 0:35 UTC (permalink / raw) To: dri-devel [-- Attachment #1.1: Type: text/plain, Size: 5581 bytes --] https://bugs.freedesktop.org/show_bug.cgi?id=97759 kenneth johansson <ken@kenjo.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 (AMD64) --- Comment #1 from kenneth johansson <ken@kenjo.org> --- results->blackout_recovery_time = bw_max2( results->blackout_recovery_time, bw_div( (bw_add( bw_mul( bw_div( bw_mul( results->display_bandwidth[k], results->useful_bytes_per_request[k]), results->bytes_per_request[k]), vbios->blackout_duration), bw_sub( bw_div( bw_mul( bw_mul( bw_mul( (bw_add( bw_add( bw_mul( bw_int_to_fixed( 2), vbios->mcifwrmc_urgent_latency), results->dmif_burst_time[i][j]), results->mcifwr_burst_time[results->y_clk_level][results->sclk_level])), results->dispclk), bw_int_to_fixed( results->bytes_per_pixel[k])), results->lines_interleaved_in_mem_access[k]), results->latency_hiding_lines[k]), results->adjusted_data_buffer_size[k]))), (bw_sub( bw_div( bw_mul( bw_mul( results->dispclk, bw_int_to_fixed( results->bytes_per_pixel[k])), results->lines_interleaved_in_mem_access[k]), results->latency_hiding_lines[k]), bw_div( bw_mul( results->display_bandwidth[k], results->useful_bytes_per_request[k]), results->bytes_per_request[k]))))); -- You are receiving this mail because: You are the assignee for the bug. [-- Attachment #1.2: Type: text/html, Size: 7092 bytes --] [-- Attachment #2: Type: text/plain, Size: 160 bytes --] _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] 2016-09-10 0:30 [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] bugzilla-daemon 2016-09-10 0:35 ` bugzilla-daemon @ 2016-09-10 0:37 ` bugzilla-daemon 2018-12-04 16:36 ` bugzilla-daemon 2 siblings, 0 replies; 4+ messages in thread From: bugzilla-daemon @ 2016-09-10 0:37 UTC (permalink / raw) To: dri-devel [-- Attachment #1.1: Type: text/plain, Size: 307 bytes --] https://bugs.freedesktop.org/show_bug.cgi?id=97759 --- Comment #2 from kenneth johansson <ken@kenjo.org> --- Created attachment 126449 --> https://bugs.freedesktop.org/attachment.cgi?id=126449&action=edit dkms build log -- You are receiving this mail because: You are the assignee for the bug. [-- Attachment #1.2: Type: text/html, Size: 1297 bytes --] [-- Attachment #2: Type: text/plain, Size: 160 bytes --] _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] 2016-09-10 0:30 [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] bugzilla-daemon 2016-09-10 0:35 ` bugzilla-daemon 2016-09-10 0:37 ` bugzilla-daemon @ 2018-12-04 16:36 ` bugzilla-daemon 2 siblings, 0 replies; 4+ messages in thread From: bugzilla-daemon @ 2018-12-04 16:36 UTC (permalink / raw) To: dri-devel [-- Attachment #1.1: Type: text/plain, Size: 582 bytes --] https://bugs.freedesktop.org/show_bug.cgi?id=97759 Jeremy Newton <alexjnewt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #3 from Jeremy Newton <alexjnewt@gmail.com> --- Closing, as this is pretty old, and only Ubuntu LTS is supported (e.g. 16.04, 18.04). -- You are receiving this mail because: You are the assignee for the bug. [-- Attachment #1.2: Type: text/html, Size: 2221 bytes --] [-- Attachment #2: Type: text/plain, Size: 160 bytes --] _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-12-04 16:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-09-10 0:30 [Bug 97759] compile error bandwidth_calcs.c : array subscript is above array bounds [-Werror=array-bounds] bugzilla-daemon 2016-09-10 0:35 ` bugzilla-daemon 2016-09-10 0:37 ` bugzilla-daemon 2018-12-04 16:36 ` bugzilla-daemon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox