[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130308.003640.281567688999238934.davem@davemloft.net>
Date:	Fri, 08 Mar 2013 00:36:40 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	gang.chen@...anux.com
Cc:	jslaby@...e.cz, jkosina@...e.cz, isdn@...ux-pingi.de,
	gregkh@...uxfoundation.org, alan@...ux.intel.com,
	netdev@...r.kernel.org
Subject: Re: [PATCH v2] drivers/isdn: checkng length to be sure not memory
 overflow
From: Chen Gang <gang.chen@...anux.com>
Date: Fri, 08 Mar 2013 12:25:41 +0800
> 
>   sizeof (cmd.parm.cmsg.para) is 50 (MAX_CAPI_PARA_LEN).
>   sizeof (cmd.parm) is 80+, but less than 100.
>   strlen(msg) may be more than 80+ (Modem-Commandbuffer, less than 255).
>     isdn_tty_send_msg is called by isdn_tty_parse_at
>     the relative parameter is m->mdmcmd (atemu *m)
>     the relative command may be "+M..."
> 
>   so need check the length to be sure not memory overflow.
>     cmd.parm is a union, and need keep original valid buffer length no touch
> 
> 
> Signed-off-by: Chen Gang <gang.chen@...anux.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists
 
