Re: [dpdk-dev] [PATCH] net/mlx5: fix unlimited scan in switch info detection

2020-07-22 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Michael Baum > Sent: Tuesday, July 21, 2020 3:03 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Slava Ovsiienko > ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix unlimited scan in switch inf

[dpdk-dev] [PATCH] net/mlx5: fix unlimited scan in switch info detection

2020-07-21 Thread Michael Baum
In mlx5_sysfs_switch_info function, the driver gets switch information associated with network interface. The driver writes the port name into buffer and translates it. However, when it writes the name, it does not limit writing to the buffer size. Limit writing to the size of the buffer. Fixes: