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

Re: svn-0.30.0-setup.exe trashing the Environment $path as per 0.14.

From: Jostein Chr. Andersen <jostein_at_josander.net>
Date: 2003-10-02 21:02:55 CEST

On Thursday 02 October 2003 19.45, kfogel@collab.net wrote:
> Until you dynamically allocate, you should at least prevent writes
> that run off the end. Maybe you can check the length of the input?
>
> [...]
>
> char buf[1024];
>
> if (len(input) > sizeof(buf))
> {
> abort();
> }
>
> [...]

The current buffer size are 4000, wich is the maximum length in the NT
variations (as far as I know). One user that have this problem had a
path on one machine with a lenght of 160 characters...

I will look at this and do as you sugest within tomorrow (GMT+1).

-- 
Jostein Chr. Andersen <jostein_at_josander.net> http://www.josander.net/
Public PGP Key:
Key: http://www.josander.net/pub_keys/jostein_josander.net.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 2 21:03:30 2003

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.