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

Ben Pfaff blp at ovn.org
Thu Jul 5 22:10:25 UTC 2018


On Wed, Jun 27, 2018 at 03:06:56PM -0700, Justin Pettit wrote:
> 
> > 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>

Thanks, applied to master.


More information about the dev mailing list