Checkout
stsp
committed
on 16 Nov 08
Parsing strings in C - Great Fun since 1972!

Fix a segfault reported by Jens Seidel in:

Date: Sun, 16 Nov 2008 17:53:20 +0100
From: Jens… Show more
Parsing strings in C - Great Fun since 1972!

Fix a segfault reported by Jens Seidel in:

Date: Sun, 16 Nov 2008 17:53:20 +0100

From: Jens Seidel <jensseidel@users.sf.net>

To: dev@subversion.tigris.org

Message-ID: <20081116165320.GA3562@merkur.sol.de>

Subject:  Re: Segfault during "svn info"

http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=145419

* subversion/libsvn_subr/dirent_uri.c

 (svn_uri_is_canonical): Do not blindly assume that supplied

  uri's hostname part contains a slash. We were running over

  the terminating null if it didn't.

  Also, put a block of windows-specific code which assumes

  that a character pointer points to a slash into an if

  statement which checks for this.

Show less