[ovs-git] Open vSwitch: odp-util: Fix parsing of Ethertypes 0x8000 and above. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Aug 18 18:38:36 UTC 2011

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  fac2e5163cb349ec33d8d2bdda2e73f35e50d4d5 (commit)
      from  338fb44ad67e59f09664f502f2c4325cff1e5080 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fac2e5163cb349ec33d8d2bdda2e73f35e50d4d5
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=fac2e5163cb349ec33d8d2bdda2e73f35e50d4d5
Author: Ben Pfaff <blp at nicira.com>
odp-util: Fix parsing of Ethertypes 0x8000 and above.
An existing comment in the function being updated explains the problem:

    * Many of the sscanf calls in this function use oversized destination
    * fields because some sscanf() implementations truncate the range of %i
    * directives, so that e.g. "%"SCNi16 interprets input of "0xfedc" as a
    * value of 0x7fff.  The other alternatives are to allow only a single
    * radix (e.g. decimal or hexadecimal) or to write more sophisticated
    * parsers.


Summary of changes:
 lib/odp-util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Open vSwitch

More information about the git mailing list