x86/traps: replace ASSERT() checking array bounds
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Nov 2016 13:07:11 +0000 (14:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Nov 2016 13:07:11 +0000 (14:07 +0100)
commit4d86f9c099850d674dfb0f6877c76eb40eeaffc7
tree2388c2a608c0c1bc4e3dc6f334dd7ef7639aae6c
parent8ad651705cbd0ad192398c1513d12c02b3197fa1
x86/traps: replace ASSERT() checking array bounds

Avoid out of bounds accesses on non-debug builds.

Coverity ID: 1055744

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/traps.c