[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RBLs and TXT RRs



Hi!

On Thu, Nov 06, 2003 at 22:54 +0200, Andrey Blochintsev wrote:

> Oops...
> FUbBKy20024w    550 5.7.1 Hello [212.9.225.171], Policy analysis reported: this is message from rbl END- rcpt=<bag@i.kiev.ua>
> 
> while: 
> host -t txt 171.225.9.212.rbl.zn.iptelecom.net.ua.
> 171.225.9.212.rbl.zn.iptelecom.net.ua text "this is message from rbl END-2"
> 
> last character "2" is lost...
> bug in dnsmxlookup() T_TXT type processing?

looking mxlookup():

mxlookup(host, depth, mxmode, qtype)
 ...

	  if (type == T_TXT) {
	    int len = (*cp++) & 0xFF; /* 0..255 chars */

	    /* Mal-formed inputs are possible overflowing the buffer.. */
	    if (len > (eom - cp))
	      len = (eom - cp);
	    if (len > n - 2)
	      len = n - 2;
 ...

Why "if (len > n - 2)"


-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi