[ovs-dev] [PATCH] ofp-actions: Fix undefined behavior shifting 'int' 16 places left.

Justin Pettit jpettit at ovn.org
Wed Jun 27 22:06:56 UTC 2018


> On Jun 25, 2018, at 12:45 PM, Ben Pfaff <blp at ovn.org> wrote:
> 
> Shifting a 16-bit signed int 16 bits is technically undefined behavior.
> This fixes the problem.  (In practice this should be harmless in this
> case.)
> 
> Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9049
> 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