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

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