Re: [PATCH] setup: Fix windows path buffer over-stepping

2014-04-24 Thread Junio C Hamano
Martin Erik Werner writes: > Fix a buffer over-stepping issue triggered by providing an absolute path > that is similar to the work tree path. > > abspath_part_inside_repo() may currently increment the path pointer by > offset_1st_component() + wtlen, which is too much, since > offset_1st_compone

[PATCH] setup: Fix windows path buffer over-stepping

2014-04-24 Thread Martin Erik Werner
Fix a buffer over-stepping issue triggered by providing an absolute path that is similar to the work tree path. abspath_part_inside_repo() may currently increment the path pointer by offset_1st_component() + wtlen, which is too much, since offset_1st_component() is a subset of wtlen. For the *nix