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

dev at openvswitch.org dev at openvswitch.org
Tue Jan 31 21:08:39 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.3 has been updated
       via  6d84ff1021c019e49db0525224f0f9f9983473d2 (commit)
      from  dc645be138e74873f310e3d2eaf8fd1ae9a4e2bd (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 6d84ff1021c019e49db0525224f0f9f9983473d2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6d84ff1021c019e49db0525224f0f9f9983473d2
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(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list