Re: [Xen-devel] [PATCH v2 2/2] hvmloader: use bound checking in get_module_entry

2016-08-22 Thread Jan Beulich
>>> On 22.08.16 at 14:47, wrote: > Coverity complains: > > overflow_before_widen: Potentially overflowing expression > info->nr_modules * 32U with type unsigned int (32 bits, unsigned) is > evaluated using 32-bit arithmetic, and then used in a context that > expects an

[Xen-devel] [PATCH v2 2/2] hvmloader: use bound checking in get_module_entry

2016-08-22 Thread Wei Liu
Coverity complains: overflow_before_widen: Potentially overflowing expression info->nr_modules * 32U with type unsigned int (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type uint64_t (64 bits, unsigned). The overflow is