On Thu, Nov 01, 2018 at 11:51:21AM -0700, Yifeng Sun wrote:
> Left shift int (1 here) can result in a negative value. This is an undefined
> behavior according to ISO C99 (6.5.7). 
> 
> The error message reported by oss-fuzz is:
> runtime error: left shift of 1 by 31 places cannot be represented in type 
> 'int'
> 
> This patch fixes it by changing signed int to unsigned int.
> 
> Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11166
> Signed-off-by: Yifeng Sun <[email protected]>

Thanks, applied to master.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to