On Wed, Apr 25, 2018 at 08:44:19AM +0900, Junio C Hamano wrote:
> Martin Ågren writes:
>
> >> switch (data[i]) {
> >> case 'P':
> >> i++;
> >> - if (i + 52 <= buf.len &&
> >> + if (i + hexsz + 12 <
Martin Ågren writes:
>> switch (data[i]) {
>> case 'P':
>> i++;
>> - if (i + 52 <= buf.len &&
>> + if (i + hexsz + 12 <= buf.len &&
>> starts_with(data + i, " pack-") &&
On 24 April 2018 at 01:39, brian m. carlson
wrote:
> Use the_hash_algo to find the right size for parsing pack names.
>
> Signed-off-by: brian m. carlson
> ---
> http.c | 11 ++-
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/http.c b/http.c
> index 3034d10b68..ec7067
Use the_hash_algo to find the right size for parsing pack names.
Signed-off-by: brian m. carlson
---
http.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/http.c b/http.c
index 3034d10b68..ec70676748 100644
--- a/http.c
+++ b/http.c
@@ -2047,7 +2047,8 @@ int http
4 matches
Mail list logo