diff options
author | John Keeping <john@keeping.me.uk> | 2017-02-19 12:17:05 +0000 |
---|---|---|
committer | Lukas Fleischer <lfleischer@lfos.de> | 2017-08-10 15:15:57 +0200 |
commit | c0d2423f07099366815856500faec3a69db1701a (patch) | |
tree | 6b63a3b2f28a1d3f7a7039c47bed246c24a87362 /ui-repolist.c | |
parent | fdcd7dc8186e8d928876ae858b7d2d3a87d29453 (diff) | |
download | cgit-c0d2423f07099366815856500faec3a69db1701a.tar.gz cgit-c0d2423f07099366815856500faec3a69db1701a.tar.bz2 cgit-c0d2423f07099366815856500faec3a69db1701a.zip |
parsing: clear query path before starting
By specifying the "url" query parameter multiple times it is possible to
end up with ctx.qry.vpath set while ctx.repo is null, which triggers an
invalid code path from cgit_print_pageheader() while printing path
crumbs, resulting in a null dereference.
The previous patch fixed this segfault, but it makes no sense for us to
clear ctx.repo while leaving ctx.qry.path set to the previous value, so
let's just clear it here so that the last "url" parameter given takes
full effect rather than partially overriding the effect of the previous
value.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-repolist.c')
0 files changed, 0 insertions, 0 deletions