OSDN Git Service

Merge branch 'jk/daemon-path-ok-check-truncation' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Nov 2016 21:27:55 +0000 (13:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Nov 2016 21:27:56 +0000 (13:27 -0800)
commitaa22ef8a80997771d8a1f3e329139637e1ee63ec
treee874912eeeb3cf2b0383edf489cfedfc5c49fbb7
parentf2ad912f996d2f21a8e6bccc10c2d3ef7acbf3ea
parent6bdb0083be3b42aab5dfa6bf18b447623704f7f5
Merge branch 'jk/daemon-path-ok-check-truncation' into maint

"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