|
From: | Derek Robert Price |
Subject: | Re: getline & getline_safe |
Date: | Thu, 24 Jul 2003 08:51:26 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
Paul Edwards wrote:
I think it is usual for a program to have processing restrictions, although I would have made it based on a CVS-controlled define, like CVS_STR_LIMIT, rather than PATH_MAX, which could potentially be 8, while userid may be 30.
I don't think you're going to find many PATH_MAX's under 256. I think UNIX and Windows both have PATH_MAXs of 4096? In any case, specifying the CVSROOT is part of the authentication phase and needs to be limited by PATH_MAX. Since that is the largest potential string passed during authentication, I think the use of PATH_MAX simply cascaded as sufficient. Derek -- *8^) Email: derek@ximbiot.com Get CVS support at <http://ximbiot.com>! -- A handy telephone tip: Keep a small chalkboard near the phone. That way, when a salesman calls, you can hold the receiver up to it and run your fingernails across it until he hangs up.
[Prev in Thread] | Current Thread | [Next in Thread] |