-
-
Notifications
You must be signed in to change notification settings - Fork 22
Address concerns from Guido Vranken fuzzers #141
Conversation
Enforce prefix boundaries on initialization.
@guidovranken good to merge? |
NSLog(@"Can't partition single IPv6"); | ||
return @[self, self]; | ||
} | ||
|
||
struct in6_addr saddr1, saddr2; | ||
char addr[INET6_ADDRSTRLEN]; | ||
NSData *addressData = RoutingTableEntryAddress6(self.network); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NULL check of addressData?
if ( addressData == NULL ) return NULL;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also NULL checks after calls to RoutingTableEntryAddress6
in matchesDestination
. At least in my fuzzers I observe crashes if those checks are not there.
RoutingTableEntryAddress4
calls might need similar checks.
After addressing my remarks about RoutingTableEntry.m, yes. |
Those |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gg
No description provided.