971975bff4f8fb7cd3eeb3f50e212855c68b4f1a
   1#!/bin/sh
   2
   3test_description='Test the lazy init name hash with various folder structures'
   4
   5. ./test-lib.sh
   6
   7test_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
  19test_done