buffer overflow in ip_ct_{ftp,tftp,irc}

Yasuyuki KOZAKAI yasuyuki.kozakai at toshiba.co.jp
Tue Sep 20 09:11:57 CEST 2005


From: Patrick McHardy <kaber at trash.net>
Date: Sat, 10 Sep 2005 00:59:49 +0200

> > -static int ports[MAX_PORTS];
> > +static short ports[MAX_PORTS];
> > static int ports_c;
> > -module_param_array(ports,int, &ports_c, 0400);
> > +module_param_array(ports, short, &ports_c, 0400);
> 
> I agree, I've applied this patch instead. Thanks.

Why don't you use u_int16_t and ushort instead of short ?

-----------------------------------------------------------------
Yasuyuki Kozakai @ USAGI Project <yasuyuki.kozakai at toshiba.co.jp>




More information about the netfilter-devel mailing list