diff options
| author | Kevin McKinney <[email protected]> | 2011-12-20 10:41:13 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-02-08 17:19:03 -0800 |
| commit | b71dbbcfaa2a2965e0797db7333396a71062a341 (patch) | |
| tree | 8e74932054e9f9f9ab87642def51deb45e2dab9a /tools/perf/scripts/python/netdev-times.py | |
| parent | 3c92e38dc4d803a7f90a08277a9d59f920963e0c (diff) | |
Staging: bcm: Fix an integer overflow in IOCTL_BCM_NVM_READ/WRITE
Variables stNVMReadWrite.uioffset and stNVMReadWrite.uiNumBytes
are chosen from userspace and can be very high. The sum of
these two digits would result in a small number. Therefore,
this patch verifies a negative number was not entered, and
reorganizes the equation to remove the integer overflow.
Signed-off-by: Kevin McKinney <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions