Merge branch 'jc/unused-symbols' into next
[git] / t / t3008-ls-files-lazy-init-name-hash.sh
1 #!/bin/sh
2
3 test_description='Test the lazy init name hash with various folder structures'
4
5 . ./test-lib.sh
6
7 test_expect_success 'no buffer overflow in lazy_init_name_hash' '
8         (
9             test_seq 2000 | sed "s/^/a_/"
10             echo b/b/b
11             test_seq 2000 | sed "s/^/c_/"
12             test_seq 50 | sed "s/^/d_/" | tr "\n" "/"; echo d
13         ) |
14         sed -e "s/^/100644 $EMPTY_BLOB  /" |
15         git update-index --index-info &&
16         test-lazy-init-name-hash -m
17 '
18
19 test_done