Bug 2047 - Ipv6EndPointDemux::Lookup may crash
Ipv6EndPointDemux::Lookup may crash
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: ipv6
ns-3-dev
All All
: P5 blocker
Assigned To: Tommaso Pecorella
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-27 15:43 UTC by Tommaso Pecorella
Modified: 2015-01-27 15:57 UTC (History)
1 user (show)

See Also:


Attachments
fix (1.07 KB, patch)
2015-01-27 15:46 UTC, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-01-27 15:43:05 UTC
The problem is in Ipv6EndPointDemux::Lookup.
When the Socket is bound to an interface and the lookup is on a IPv6 mapped IPv4 address... segmentation fault.

Kudos to Wendell Soares for finding it. The discussion is here:
https://groups.google.com/forum/#!topic/ns-3-users/LmWcM8majGU
Comment 1 Tommaso Pecorella 2015-01-27 15:46:41 UTC
Created attachment 1956 [details]
fix
Comment 2 Tommaso Pecorella 2015-01-27 15:57:29 UTC
changeset:   11165:d390d8eaafe2