OSDN Git Service

intel/decoder: Fix is_header_field starting condition.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Apr 2017 16:53:44 +0000 (09:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 17 Apr 2017 05:58:23 +0000 (22:58 -0700)
commit9b71709cb8532cda4bfbbcbf4d0d86d53c0dffb9
treece9f73d1b72786605717491f810bbb1c8bfe110d
parent6142c3e2983d8723c31d04f6a9762f0ec916e48b
intel/decoder: Fix is_header_field starting condition.

Starting positions >= 32 are not part of the header, rather than >.

Caught by Coverity, which found that "bits <<= field->start" may shift
by 32, which has undefined behavior.

CID: 1404968

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c