[ovs-git] [openvswitch/ovs] f17a75: json: Avoid signed integer overflow in parsing exp...

GitHub noreply at github.com
Thu Jul 5 22:10:49 UTC 2018


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: f17a752b4e8f7fbab53dca01e2bf820be3227ae8
      https://github.com/openvswitch/ovs/commit/f17a752b4e8f7fbab53dca01e2bf820be3227ae8
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-07-05 (Thu, 05 Jul 2018)

  Changed paths:
    M lib/json.c
    M tests/json.at

  Log Message:
  -----------
  json: Avoid signed integer overflow in parsing exponents.

This can't cause a crash and doesn't seem relevant to normal operation.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9044
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


  Commit: 103fb7dace89dd7f9a00945a43fdb67cb831daa9
      https://github.com/openvswitch/ovs/commit/103fb7dace89dd7f9a00945a43fdb67cb831daa9
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-07-05 (Thu, 05 Jul 2018)

  Changed paths:
    M build-aux/extract-ofp-errors

  Log Message:
  -----------
  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 at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


  Commit: 0ed5bf7577bec8ddbe551648f038ea1dec1ced96
      https://github.com/openvswitch/ovs/commit/0ed5bf7577bec8ddbe551648f038ea1dec1ced96
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-07-05 (Thu, 05 Jul 2018)

  Changed paths:
    M lib/ofp-actions.c

  Log Message:
  -----------
  ofp-actions: 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://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>


Compare: https://github.com/openvswitch/ovs/compare/98963669365f...0ed5bf7577be
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list