Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] urlcheck bug ? [SOLVED]

2008-04-12 by Benoit Branciard

Benoit Branciard a \ufffdcrit :
> 
> Still investigating...
> 

... Found !

in curl_outlet(), if the output buffer length was null, two chars were 
pre-allocated for an trailing \r\0.

The problem was that on subsequent calls of this function, those chars 
were ignored in the buffer length calculation, so that data were written 
at the wrong offset, inserting two uninitialized chars in the middle of 
the buffer.

This happened more or less frequently depending on the number of calls 
to curl_outlet() libcurl did to fill the complete answer.

The attached patch contains a possible fix, as well as a a bit of code 
to handle \r\n responses, and a typo fix.


-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.