[ovs-git] Open vSwitch: sflow_agent: Use snprintf() in place of sprintf(). (branch-1.2)

dev at openvswitch.org dev at openvswitch.org
Tue Jan 31 21:08:48 UTC 2012

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, branch-1.2 has been updated
       via  833aa7f8a376b274a6e50bbf2323d6ae4a25914f (commit)
      from  45838d33779f8b590c6b1ab8a78d77998f82e24d (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 833aa7f8a376b274a6e50bbf2323d6ae4a25914f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=833aa7f8a376b274a6e50bbf2323d6ae4a25914f
Author: Ben Pfaff <blp at nicira.com>
sflow_agent: Use snprintf() in place of sprintf().
These functions use sprintf() into a 1000-byte buffer.  It appears to me
that the strings they format are either short, fixed-length strings or the
output of strerror(), neither of which should ordinarily overflow.
However, using snprintf() cannot hurt.

Launchpad bug #914160.
Reported-by: Matthias Klose <doko at ubuntu.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


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

Open vSwitch

More information about the git mailing list