pcnet32: Read buffer overflow
Subsystems (2)
PATCH 1/1 pcnet32: Read buffer overflow
An options[cards_found]' that equals sizeof(options_mapping)' is already beyond the array.
Signed-off-by Roel Kluin <[email protected]>
---
drivers/net/pcnet32.c +1 -1
@@ -1835,7 +1835,7 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev) lp->chip_version = chip_version; lp->msg_enable = pcnet32_debug;if ((cards_found >=MAX_UNITS ) - || (options[cards_found] >sizeof (options_mapping))) + || (options[cards_found] >=sizeof (options_mapping))) lp->options =PCNET32_PORT_ASEL ;else lp->options = options_mapping[options[cards_found]];
From: Roel Kluin <[email protected]>
Date: Fri, 07 Aug 2009 15:24:27 +0200
Quoted 4 lines
An
options[cards_found]' that equalssizeof(options_mapping)' is already beyond the array.Signed-off-by Roel Kluin <[email protected]>
Applied.