From: Chen Gang Date: Thu, 7 Mar 2013 18:25:41 +0000 (+0000) Subject: drivers/isdn: checkng length to be sure not memory overflow X-Git-Tag: v3.9-rc3~36^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f39479363e0361c8bb4397481c01a7c3a1a3c8ac;p=pandora-kernel.git drivers/isdn: checkng length to be sure not memory overflow 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed