1) htnet/HtHTTP.cc
in HtHTTP::ReadChunkedBody()
there is no check for it being given a chunk
to read greater than the buffer size, I changed
this to
char buffer[20001];
while (chunk_size > 0)
{
if (chunk_size > 20000) {
cout << "New chunk_size=" << 20000 << "\n";
chunk_size = 20000;
}
though it does cause some confusion when the chunk
exceeds the value
2) htdig/Document.cc
Document::Retrieve()
redirect hadling doesn't work, I added a line
contents = response->GetContents();
contentType = response->GetContentType();
contentLength = response->GetContentLength();
ptrdatetime = response->GetModificationTime();
document_length = response->GetDocumentLength();
redirected_to = ((HtHTTP_Response *)response)->GetLocation();
I think the cast is safe
3) htlib/Dictionary.cc
DictionaryEntry::~DictionaryEntry()
htseach crashes in Dictionary::Remove because the distructor for
DictionaryEntry deletes the object the next entry points to but that
item
is still in the hash chain.
I just commented out that
DictionaryEntry::~DictionaryEntry()
{
free(key);
delete value;
// if (next)
// delete next;
however is there somewhere else in the code that relies on this
not to have a memory leak?
--
Toivo Pedaste Email: [EMAIL PROTECTED]
University Computing Services, Phone: +61 8 9 380 2605
University of Western Australia Fax: +61 8 9 380 1109
"The time has come", the Walrus said, "to talk of many things"...
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.