-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash due to assertion failure #533
Comments
Maybe we should fix this by adding more conditions. smoltcp/src/iface/interface.rs Lines 1235 to 1237 in dedfbe1
-> if !self.has_ip_addr(ipv4_repr.dst_addr)
&& !self.has_multicast_group(ipv4_repr.dst_addr)
&& !self.is_broadcast_v4(ipv4_repr.dst_addr)
&& ipv4_repr.dst_addr.is_unicast() |
Nice catch! The fix is adding the condition in the inner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My code crashed after inputting some packets.
Here is a part of the stack backtrace:
lookup
was called from here.smoltcp/src/iface/interface.rs
Lines 1235 to 1249 in dedfbe1
The assertion failed at the beginning of the
lookup
function and caused panic.smoltcp/src/iface/route.rs
Lines 129 to 133 in dedfbe1
The text was updated successfully, but these errors were encountered: