Skip to content

off-by-one errors in git-daemon

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6t5570: use ls-remote instead of clone for interp testst/t5570-git-daemon.sh+3 -60 replies
2/6t/lib-git-daemon: record daemon logt/lib-git-daemon.sh+10 -22 replies
3/6daemon: fix off-by-one in logging extended attributesdaemon.c t/t5570-git-daemon.sh+13 -20 replies
4/6daemon: handle NULs in extended attribute stringdaemon.c t/t5570-git-daemon.sh+9 -80 replies
5/6t/lib-git-daemon: add network-protocol helperst/lib-git-daemon.sh t/test-lib-functions.sh+58 -10 replies
6/6daemon: fix length computation in newline strippingdaemon.c t/t5570-git-daemon.sh+17 -42 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchLucas Werkmeister
SeriesHelped-by
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] off-by-one errors in git-daemon

This series fixes two off-by-one errors in git-daemon noticed by Michael (who then nerd-sniped me into fixing them). It also improves git-daemon's verbose logging of extended attributes, and beefs up the tests a bit.

Before anyone gets excited, no, these aren't security-interesting errors. The only effect you could have is for git-daemon to reject your request as nonsense. ;)

[1/6]: t5570: use ls-remote instead of clone for interp tests [2/6]: t/lib-git-daemon: record daemon log
[3/6]: daemon: fix off-by-one in logging extended attributes [4/6]: daemon: handle NULs in extended attribute string [5/6]: t/lib-git-daemon: add network-protocol helpers [6/6]: daemon: fix length computation in newline stripping

 daemon.c                | 15 ++++++---------
 t/lib-git-daemon.sh     | 37 ++++++++++++++++++++++++++++++++++---
 t/t5570-git-daemon.sh   | 37 +++++++++++++++++++++++++++++++------
 t/test-lib-functions.sh | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 105 insertions(+), 18 deletions(-)

-Peff