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

Justin Pettit jpettit at ovn.org
Wed Jun 27 22:08:00 UTC 2018


> 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>

--Justin




More information about the dev mailing list