linux/drivers/isdn/capi
Tilman Schmidt 5362247a42 isdn/capi: prevent index overrun from command_2_index()
The result of the function command_2_index() is used to index two
arrays mnames[] and cpars[] with max. index 0x4e but in its current
form that function can produce results up to 3*(0x9+0x9)+0x7f =
0xb5.
Fix by clamping all result values potentially overrunning the arrays
to zero which is already handled as an invalid value.

Re-spotted with Coverity.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-14 15:05:34 -04:00
..
capi.c CAPI: use correct structure type name in sizeof 2014-07-30 19:13:40 -07:00
capidrv.c isdn/capi: Make verbose reporting depend on capidrv 2014-06-04 23:13:41 -07:00
capidrv.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
capilib.c isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
capiutil.c isdn/capi: prevent index overrun from command_2_index() 2014-10-14 15:05:34 -04:00
kcapi.c isdn/capi: correct capi20_manufacturer argument type mismatch 2014-10-14 15:05:34 -04:00
kcapi.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
kcapi_proc.c isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
Kconfig isdn/capi: fix (middleware) device nodes 2014-06-04 23:13:41 -07:00
Makefile capi: Perform scheduled capifs removal 2011-04-06 14:43:33 -07:00