You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug where the mii_ethernet_rt_mac.xc can crash when handling the client get_packet() call on the line:
info.src_ifnum = buf->src_port;
The only case that it seems this would be possible is when there are both high and low priority clients of the MAC and the following occurs:
A packet is received for a low priority client and the client is notified.
Many more packets are received for the high priority client and the buffers start to fill.
The low priority packets are dropped to make room.
The client comes to collect the packet. The pointer is NULL at that point, but is not being checked.
It is an easy fix, to check for NULL before using buf, and to return desc.type = ETH_NO_DATA; in that case. However, it would be best to have a test case to demonstrate this issue before fixing it.
The text was updated successfully, but these errors were encountered:
There is a bug where the mii_ethernet_rt_mac.xc can crash when handling the client get_packet() call on the line:
The only case that it seems this would be possible is when there are both high and low priority clients of the MAC and the following occurs:
It is an easy fix, to check for NULL before using
buf
, and to returndesc.type = ETH_NO_DATA;
in that case. However, it would be best to have a test case to demonstrate this issue before fixing it.The text was updated successfully, but these errors were encountered: