Merge branch 'jk/daemon-path-ok-check-truncation'
commitee87d47b364cdaf78badefb3f7044b8074ed1550
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Oct 2016 21:58:50 +0000 (27 14:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Oct 2016 21:58:50 +0000 (27 14:58 -0700)
tree5f9e8e94577be4f7fa6ffd278d1c069b7f905aaf
parent00d7cc0c0b324b1b1c75b97d05423a2dc3af70cf
parent6bdb0083be3b42aab5dfa6bf18b447623704f7f5
Merge branch 'jk/daemon-path-ok-check-truncation'

"git daemon" used fixed-length buffers to turn URL to the
repository the client asked for into the server side directory
path, using snprintf() to avoid overflowing these buffers, but
allowed possibly truncated paths to the directory.  This has been
tightened to reject such a request that causes overlong path to be
required to serve.

* jk/daemon-path-ok-check-truncation:
  daemon: detect and reject too-long paths
daemon.c