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

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


On Wed, Jun 27, 2018 at 03:08:00PM -0700, Justin Pettit wrote:
> 
> > On Jun 23, 2018, at 10:29 AM, 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://oss-fuzz.com/v2/testcase-detail/4730143510626304
> > Signed-off-by: Ben Pfaff <blp at ovn.org>
> 
> Acked-by: Justin Pettit <jpettit at ovn.org>

Thanks, applied to master and branch-2.9.


More information about the dev mailing list