author | Eric Wong <normalperson@yhbt.net> | |
Sat, 19 May 2007 09:58:37 +0000 (02:58 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 19 May 2007 19:26:36 +0000 (12:26 -0700) | ||
commit | 6442754d6cc0056cf5b69b43d218f8b6d317e7f5 | |
tree | 68558fb2cadec798a83ee90c35e33c3f7f254a0d | tree | snapshot |
parent | 97925fde00743e557fa5e792004483a27e31fbd8 | commit | diff |
git-svn: avoid crashing svnserve when creating new directories
When sorting directory names by depth (slash ("/") count) and
closing the deepest directories first (as the protocol
requires), we failed to put the root baton (with an empty string
as its key "") after top-level directories (which did not have
any slashes).
This resulted in svnserve being in a situation it couldn't
handle and caused a segmentation fault on the remote server.
This bug did not affect users of DAV and filesystem repositories.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Confirmed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When sorting directory names by depth (slash ("/") count) and
closing the deepest directories first (as the protocol
requires), we failed to put the root baton (with an empty string
as its key "") after top-level directories (which did not have
any slashes).
This resulted in svnserve being in a situation it couldn't
handle and caused a segmentation fault on the remote server.
This bug did not affect users of DAV and filesystem repositories.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Confirmed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl | diff | blob | history |