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

Re: [PATCH] fix for programmer error in path split text logic

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 06 Dec 2013 10:01:44 +0000

"Bert Huijben" <bert_at_qqmail.nl> writes:

>> -----Original Message-----
>> From: Eric Lubin [mailto:eric_at_lubin.us]
>> Sent: donderdag 5 december 2013 21:17
>> To: dev_at_subversion.apache.org
>> Subject: [PATCH] fix for programmer error in path split text logic
>> [[[
>> * subversion/libsvn_subr/path.c
>> (svn_path_splitext): Fixed ncorrect pointer comparison to NULL to check
>> for end of string, instead of checking if the character itself was NULL
>> ]]]
> With that code unchanged for years / many Subversion version, I'm not sure
> if we should really apply the behavior change now.
> Perhaps we should just remove the check for a final dot.

The only difference in the output is that for an input "a/b." the
path_ext return value changes from a pool allocated "" to a static "".
I've added a test case and committed the patch.

Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2013-12-06 11:02:26 CET

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