[ovs-dev] [PATCH] test-cmap: Avoid shift by full width of type in find_batch().
Justin Pettit
jpettit at ovn.org
Fri Jun 2 00:05:14 UTC 2017
> On May 26, 2017, at 9:52 PM, Ben Pfaff <blp at ovn.org> wrote:
>
> In C, it is undefined to shift an N-bit value by N. This fixes the
> problem in find_batch() for the case where i == 0.
>
> Found by Coverity.
>
> Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14763098&defectInstanceId=4304031&mergedDefectId=68209
> Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>
--Justin
More information about the dev
mailing list