diff options
| author | Dan Carpenter <[email protected]> | 2010-10-09 13:54:06 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2010-10-09 13:49:40 -0700 |
| commit | cbf6baac775f2e3fb61f88dcaa71e44fb34b6906 (patch) | |
| tree | 7566fba3d713c9525fb237b52fd7ea143ab440bf /tools/perf/scripts/python/bin | |
| parent | cf10700bf8047f0668dd874b607f89516612e6c7 (diff) | |
Staging: brcm80211: make interface name buffer smaller
In the original code the interface name was IFNAMSIZ + 1, but that
caused problems in dhd_ifname2idx() which does:
strncmp(dhd->iflist[i]->name, name, IFNAMSIZ)
The wl_event_msg_t struct can only store 16 character names as well.
And thirdly there is a potential buffer overflow in dhd_op_if() because
if->net->name is IFNAMSIZ and we do:
strcpy(ifp->net->name, ifp->name);
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions