1#!/bin/sh
23
test_description='Test the lazy init name hash with various folder structures'
45
. ./test-lib.sh
67
test_expect_success 'no buffer overflow in lazy_init_name_hash' '
8(
9test_seq 2000 | sed "s/^/a_/"
10echo b/b/b
11test_seq 2000 | sed "s/^/c_/"
12test_seq 50 | sed "s/^/d_/" | tr "\n" "/"; echo d
13) |
14sed -e "s/^/100644 $EMPTY_BLOB /" |
15git update-index --index-info &&
16test-lazy-init-name-hash -m
17'
1819
test_done