Stop out of bounds memory read#116
Stop out of bounds memory read#116milesbarr wants to merge 1 commit intofacebookarchive:masterfrom milesbarr:patch-1
Conversation
The code sometimes copies an IPv4 address with the size of an IPv6 address.
|
Hi, union// In6OrIn4 |
|
It is actually the |
|
In PrepareAddrInfoHints2(&hints) protocol settings is not defined, getaddrinfo send back all ipv4 and ipv6 address. Need checking assigned ipv6 and ipv4 addresses. Ipv4 address assigned to nic? |
|
@milesbarr , nice catch and thanks for the contribution. I just applied your changes to SLikeNet. It's available in the SVN and GitHub repositories (https://github.com/SLikeSoft/SLikeNet) and is expected to get shipped with SLikeNet 0.2.0 (internal case number: SLNET-202). |
|
Since we did an unplanned release of SLikeNet, we decided to incorporate this pull request (aka: case SLNET-202) in SLikeNet 0.1.2 already which is available now on https://www.slikenet.com/ and on the GitHub project page: https://github.com/SLikeSoft/SLikeNet/releases/tag/v.0.1.2 . |
The code sometimes copies an IPv4 address with the size of an IPv6 address.