]> OCCT Git - occt-copy.git/commit
0031925: Foundation Classes, OSD_Host::InternetAddress() - possible NULL dereference...
authorkgv <kgv@opencascade.com>
Fri, 13 Nov 2020 16:59:24 +0000 (19:59 +0300)
committerkgv <kgv@opencascade.com>
Fri, 13 Nov 2020 16:59:24 +0000 (19:59 +0300)
commitde0c75694ad9c9523bbe0d6920935d11627bc7d9
tree2cd4f49c6cfffaa47538b67489512d48122eb3a4
parent628c0211d53c7fe1036a85e7a7b2b067c9c50f7a
0031925: Foundation Classes, OSD_Host::InternetAddress() - possible NULL dereference on copying gethostbyname() result

Changes on non-Windows platforms:
- Deprecated gethostbyname() has been replaced by getifaddrs()+inet_ntop() handling IPv4+IPv6 addresses;
- External IPs are now preferred comparing to dummy localhost 127.0.0.1.
src/OSD/OSD_Host.cxx
src/STEPConstruct/STEPConstruct_AP203Context.cxx