author | Jonathan Nieder <jrnieder@gmail.com> | |
Fri, 27 May 2011 10:44:27 +0000 (05:44 -0500) | ||
committer | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 15 Jun 2011 07:32:50 +0000 (02:32 -0500) | ||
commit | 3ac10b2e3fd6d858621f796160d251ad34affc20 | |
tree | a8a247ae4053480219c6c2dad47c9466a888c0f0 | tree | snapshot |
parent | abe27c0cbd97bf6a693004ddb411392ed596a853 | commit | diff |
vcs-svn: avoid hangs from corrupt deltas
A corrupt Subversion-format delta can request reads past the end of
the preimage. Set sliding_view::max_off so such corruption is caught
when it appears rather than blocking in an impossible-to-fulfill
read() when input is coming from a socket or pipe.
Inspired-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
A corrupt Subversion-format delta can request reads past the end of
the preimage. Set sliding_view::max_off so such corruption is caught
when it appears rather than blocking in an impossible-to-fulfill
read() when input is coming from a socket or pipe.
Inspired-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
t/t9010-svn-fe.sh | diff | blob | history | |
vcs-svn/fast_export.c | diff | blob | history |