Hi,
This patch is a follow-up to r1428209. It adds the command table sentinel
for 'svnauthz' tool (tools/server-side/svnauthz.c).
The absense of this sentinel can result in undefined behavior (most likely
segfault), e.g., during a "svnauthz help" call — we're iterating over the
commands until we find NULL.
Thanks and regards,
Evgeny Kotkov
Add the command table sentinel for 'svnauthz'. Follow-up to r1428209.
* tools/server-side/svnauthz.c:
(cmd_table): Add the command table sentinel.
Patch by: Evgeny Kotkov <evgeny.kotkov{_AT_}visualsvn.com>
Index: tools/server-side/svnauthz.c
===================================================================
--- tools/server-side/svnauthz.c (revision 1435224)
+++ tools/server-side/svnauthz.c (working copy)
@@ -141,6 +141,7 @@ static const svn_opt_subcommand_desc2_t cmd_table[
" 3 when --is argument doesn't match\n"
),
{'t', svnauthz__username, svnauthz__path, svnauthz__repos, svnauthz__is} },
+ { NULL, NULL, {0}, NULL, {0} }
};
static svn_error_t *