[EMAIL PROTECTED] wrote:
As the length of field ifr_name of struct ifreq is IFNAMSIZ(16) in header file /usr/include/net/if.h.
It will result in buffer overflow when devname is too long. Modified strcpy to strncpy for only
copying IFNAMSIZ bytes into struct ifreq. Also, by adding a section into parse_cmdline to detect
if the length of devname is invalid.
Signed-off-by: Zhao Yu Wang <[EMAIL PROTECTED]>
There's already a patch checked into ethtool.git for this...
Jeff
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html