Hello, the example code for getifaddrs() contains a possible NULL pointer access. Attached is a patch against man-pages 3.22 from Fedora 12. Best regards, Thomas Jarosch
diff -u -r -p man-pages-3.22/man3/getifaddrs.3 man-pages.prevent_NULL/man3/getifaddrs.3 --- man-pages-3.22/man3/getifaddrs.3 2009-07-25 08:53:32.000000000 +0200 +++ man-pages.prevent_NULL/man3/getifaddrs.3 2010-10-05 14:13:25.536917362 +0200 @@ -245,6 +245,9 @@ main(int argc, char *argv[]) can free list later */ for (ifa = ifaddr; ifa != NULL; ifa = ifa\->ifa_next) { + if (ifa\->ifa_addr == NULL) + continue; + family = ifa\->ifa_addr\->sa_family; /* Display interface name and family (including symbolic