DescriptionFix array out of bounds access in loop iteration in gpu ipc log
gpu::ValueState is defined as a union of an array of int_value or float_value.
sizeof(ValueState.{int_value|float_value}) will return the size as
atleast 16, since both the arrays are defined to be of size 4.
Using the sizeof() value, the ::Log() tries to iterate from 0 to 15, through
the array bounds are from 0 to 3.
BUG=None
TEST=None
Committed: https://crrev.com/070f79ff630ffc5d84c3218d274dc5bf8b023d67
Cr-Commit-Position: refs/heads/master@{#353242}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Reworked as per comments! #Messages
Total messages: 10 (3 generated)
|