]> git.proxmox.com Git - mirror_ovs.git/commit
extract-ofp-errors: Fix undefined behavior shifting 'int' 16 places left.
authorBen Pfaff <blp@ovn.org>
Sat, 23 Jun 2018 17:29:27 +0000 (10:29 -0700)
committerBen Pfaff <blp@ovn.org>
Thu, 5 Jul 2018 22:08:20 +0000 (15:08 -0700)
commit1ab2425cbeaf755868603fa0db03632146725855
treee809467f32c4f029b6c2047606b2941f8f51f873
parentf1a57715f9893b9a64f71eb8dfb32bfe51625798
extract-ofp-errors: Fix undefined behavior shifting 'int' 16 places left.

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@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
build-aux/extract-ofp-errors