[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

pre-commit hangs

From: Gisbert Amm <gia_at_webde.de>
Date: 2006-05-19 15:52:43 CEST

I have a pre-commit hook that checks for tabs in Python files and
rejects the commit if it finds any, writing a line to stderr for every
file so that the user knows what to fix. It worked so far but the
process always hung when the amount of error messages the script
returned was bigger than a certain size.

After some searching I found out that the process hangs because there's
too much data on stderr, more than the stderr buffer size, which is the
system's default page size (4096 Byte on my system). It is similar to
this Apache vulnerability: http://www.securityfocus.com/bid/5787/info.
I've tried out this exploit; it does no longer work with Apache 2.0.52.
Therefore I consider Subversion the culprit.

As a workaround, I do check how much data the hook script wants to write
to stderr and cut it, if it's too long. However, I'd rather see this
fixed cleanly.

Has anyone else experienced the same and is it probably already reported
as an issue? Otherwise I'd file a bug report.

Gisbert Amm

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 19 15:54:08 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.