linux/drivers/isdn
Chen Gang f39479363e 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 <gang.chen@asianux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-08 00:35:44 -05:00
..
act2000
capi
divert
gigaset
hardware Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-02-26 20:16:07 -08:00
hisax isdn: hisax: add missing usb_free_urb 2013-02-26 17:33:56 -05:00
hysdn
i4l drivers/isdn: checkng length to be sure not memory overflow 2013-03-08 00:35:44 -05:00
icn
isdnloop
mISDN hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
pcbit
sc
Kconfig
Makefile