W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2006

Re: libwww contributions

From: Vic Bancroft <bancroft@america.net>
Date: Wed, 15 Mar 2006 07:14:59 -0500
Message-ID: <44180543.3080808@america.net>
To: Bobby Jack <bobbykjack@yahoo.co.uk>
CC: libwww w3c <www-lib@w3.org>

Bobby Jack wrote:

>Tried under Solaris SunOS 5.9. I get one error,
>relating to the previous discussion of security
>surrounding readdir_r:
>
>HTFile.c:702:2: #error "buffer size for readdir_r
>cannot be determined"
>  
>
Ouch, that is a little harsh.

>I don't actually see any references in the rest of the
>code to HTFile_dirent_buf_size() - is this function
>intended for future use by the library itself, or
>purely as part of the external interface? 
>
Correct, I wanted to get a happy version of this new function before we 
actually inject it into the call graph  . . .

>Everything builds fine if I comment out HTFile_dirent_buf_size.
>
>I wonder if HTFile_dirent_buf_size should just return
>-1 in this case, rather than raising the #error, at
>least until this function is in active use or can be
>repaired in some other way.
>  
>
Well actually, my preference would be to return some value large enough 
to be safe under any context.  Doing a review of some header file 
implementations, the POSIX crowd would be safe at 256, most linux folks 
would be safe at 1024 and the extreme would be to use a value equivalent 
to the maximum path length on some systems at 4096!

>Again, apologies for any 'beginner' questions raised
>here - I'm getting used to the code structure ...
>slowly :)
>  
>
No apologies required ! 

This code base is complex in some subtle ways and seemingly clumsy in 
several other ways.  After all, much of it is more than 10 years old . . .

more,
l8r,
v



>--- Vic Bancroft <bancroft@america.net> wrote:
>
>  
>
>>Bobby Jack wrote:
>>
>>    
>>
>>>I do currently have access to a Solaris box, should
>>>      
>>>
>>you require any testing /
>>    
>>
>>>confirmation of bugs.
>>> 
>>>
>>>      
>>>
>>In hopes that we are narrowing the gap on this
>>candidate, I moved our 
>>5.4.1 tag,
>>
>>    $ cvs tag -F candidate-5-4-1 2>&1 | grep "^T"
>>    T ChangeLog
>>    T configure.ac
>>    T Library/src/HTAABrow.html
>>    T Library/src/HTAAUtil.html
>>    T Library/src/HTANSI.html
>>    T Library/src/HTAccess.html
>>    T Library/src/HTAlert.html
>>    T Library/src/HTAncMan.html
>>    T Library/src/HTAnchor.html
>>    T Library/src/HTArray.html
>>    T Library/src/HTAssoc.html
>>    T Library/src/HTAtom.html
>>    T Library/src/HTBInit.html
>>    T Library/src/HTBTree.html
>>    T Library/src/HTBind.html
>>    T Library/src/HTBound.html
>>    T Library/src/HTBufWrt.html
>>    T Library/src/HTCache.html
>>    T Library/src/HTChannl.html
>>    T Library/src/HTChunk.html
>>    T Library/src/HTConLen.html
>>    T Library/src/HTCookie.html
>>    T Library/src/HTDAV.html
>>    T Library/src/HTDNS.html
>>    T Library/src/HTDemux.html
>>    T Library/src/HTDescpt.html
>>    T Library/src/HTDialog.html
>>    T Library/src/HTDigest.html
>>    T Library/src/HTDir.html
>>    T Library/src/HTEPtoCl.html
>>    T Library/src/HTError.html
>>    T Library/src/HTEscape.html
>>    T Library/src/HTEvent.html
>>    T Library/src/HTEvtLst.html
>>    T Library/src/HTFSave.html
>>    T Library/src/HTFTP.html
>>    T Library/src/HTFTPDir.html
>>    T Library/src/HTFWrite.html
>>    T Library/src/HTFile.c
>>    T Library/src/HTFile.html
>>    T Library/src/HTFilter.html
>>    T Library/src/HTFormat.html
>>    T Library/src/HTGopher.html
>>    T Library/src/HTGuess.html
>>    T Library/src/HTHInit.html
>>    T Library/src/HTHash.html
>>    T Library/src/HTHeader.html
>>    T Library/src/HTHist.html
>>    T Library/src/HTHome.html
>>    T Library/src/HTHost.html
>>    T Library/src/HTHstMan.html
>>    T Library/src/HTIOStream.html
>>    T Library/src/HTIcons.html
>>    T Library/src/HTInet.html
>>    T Library/src/HTInit.html
>>    T Library/src/HTLib.html
>>    T Library/src/HTLink.html
>>    T Library/src/HTList.html
>>    T Library/src/HTLocal.html
>>    T Library/src/HTLog.html
>>    T Library/src/HTMIME.html
>>    T Library/src/HTMIMERq.html
>>    T Library/src/HTMIMImp.html
>>    T Library/src/HTMIMPrs.html
>>    T Library/src/HTML.html
>>    T Library/src/HTMLGen.html
>>    T Library/src/HTMLPDTD.html
>>    T Library/src/HTMemLog.html
>>    T Library/src/HTMemory.html
>>    T Library/src/HTMerge.html
>>    T Library/src/HTMethod.html
>>    T Library/src/HTMulpar.html
>>    T Library/src/HTMulti.html
>>    T Library/src/HTMuxCh.html
>>    T Library/src/HTMuxHeader.html
>>    T Library/src/HTMuxTx.html
>>    T Library/src/HTNDir.html
>>    T Library/src/HTNet.html
>>    T Library/src/HTNetMan.html
>>    T Library/src/HTNetTxt.html
>>    T Library/src/HTNews.html
>>    T Library/src/HTNewsLs.html
>>    T Library/src/HTNewsRq.html
>>    T Library/src/HTNoFree.html
>>    T Library/src/HTPEP.html
>>    T Library/src/HTParse.html
>>    T Library/src/HTPlain.html
>>    T Library/src/HTProfil.html
>>    T Library/src/HTProt.html
>>    T Library/src/HTProxy.html
>>    T Library/src/HTRDF.c
>>    T Library/src/HTRDF.html
>>    T Library/src/HTReader.html
>>    T Library/src/HTReq.html
>>    T Library/src/HTReqMan.html
>>    T Library/src/HTResMan.html
>>    T Library/src/HTResponse.html
>>    T Library/src/HTRules.html
>>    T Library/src/HTSChunk.html
>>    T Library/src/HTSQL.html
>>    T Library/src/HTSQLLog.html
>>    T Library/src/HTSocket.html
>>    T Library/src/HTStream.html
>>    T Library/src/HTString.html
>>    T Library/src/HTStruct.html
>>    T Library/src/HTStyle.html
>>    T Library/src/HTTCP.html
>>    T Library/src/HTTChunk.html
>>    T Library/src/HTTP.html
>>    T Library/src/HTTPGen.html
>>    T Library/src/HTTPReq.html
>>    T Library/src/HTTPRes.html
>>    T Library/src/HTTPServ.html
>>    T Library/src/HTTPUtil.html
>>    T Library/src/HTTeXGen.html
>>    T Library/src/HTTee.html
>>    T Library/src/HTTelnet.html
>>    T Library/src/HTTimer.html
>>    T Library/src/HTTrans.html
>>    T Library/src/HTUTree.html
>>    T Library/src/HTUU.html
>>    T Library/src/HTUser.html
>>    T Library/src/HTUtils.html
>>    T Library/src/HTWAIS.html
>>    T Library/src/HTWSRC.html
>>    T Library/src/HTWWWStr.html
>>    T Library/src/HTWriter.html
>>    T Library/src/HTXML.html
>>    T Library/src/HTXParse.html
>>    T Library/src/HTZip.html
>>    T Library/src/HText.html
>>    T Library/src/HTextImp.html
>>    T Library/src/SGML.html
>>    T Library/src/wwwsys.html
>>
>>Does this compile and run appropriately on all the
>>platforms we know and 
>>love ?
>>
>>What is still missing ?
>>
>>more,
>>l8r,
>>v
>>
>>-- 
>>"The future is here. It's just not evenly
>>distributed yet."
>> -- William Gibson, quoted by Whitfield Diffie
>>
>>
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>
>
>  
>


-- 
"The future is here. It's just not evenly distributed yet."
 -- William Gibson, quoted by Whitfield Diffie
Received on Wednesday, 15 March 2006 12:15:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:45 GMT