[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] svndumpfilter's use of %n

From: D.J. Heap <djheap_at_gmail.com>
Date: 2007-02-24 17:22:59 CET

Are there any objections to changing svndumpfilter's use of sprintf
with %n over to apr_snprintf with %n?

In VS2005 Microsoft has deprecated the use of %n as 'inherently
insecure' and turning it back on requires a special function call. It
seemed simpler to just switch to apr_snprintf since it is only used in
svndumpfilter and only in a few places.

Log:

Change svndumpfilter's use of sprintf with %n to apr_snprintf for VS2005.

* subversion/svndumpfilter/main.c
  (write_prop_to_stringbuf, output_revision, output_node):
  Use apr_snprintf rather than sprintf.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Feb 24 17:23:16 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.