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

Re: CVS update: MODIFIED: mod_dav_svn ...

From: <kfogel_at_collab.net>
Date: 2001-08-14 18:32:06 CEST

gstein@tigris.org writes:
> + if (strncmp(name, "svn:", 4) == 0)
> + {
> + svn_stringbuf_set(db->work, "1:");
> + svn_stringbuf_appendcstr(db->work, (const char *)name + 4);

I wrote earlier:

> Greg, should we worry about the case where name < 4 bytes long? It
> seems to me the strncmp() might run off the end, then.

But now I think I understand: these strcmps() are all part of the
temporary "BIG HACK", for which we can assume that all property names
start with "svn:".

Does the hack case cover all the strncmp(blah,4) checks in the prop
code, or just the ones in this commit (which is the one whose log
message actually describes the big hack)?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:36 2006

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.