=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== sane-airscan-0.99.20/.github/workflows/on-release-tag.yml-10- run: | sane-airscan-0.99.20/.github/workflows/on-release-tag.yml:11: if [[ `basename ${{ github.ref }}` == +([0-9]*.*.*) ]] sane-airscan-0.99.20/.github/workflows/on-release-tag.yml-12- then ############################################## sane-airscan-0.99.20/FUZZER.md-11- sane-airscan-0.99.20/FUZZER.md:12:where `$name` can be any of the files in the `fuzzer` directory. sane-airscan-0.99.20/FUZZER.md-13- sane-airscan-0.99.20/FUZZER.md:14:You can then run the fuzzer as `build/fuzzer-$name`. The basic mode will run sane-airscan-0.99.20/FUZZER.md-15-indefinitely until a problem is found. Pass `-help=1` to see additional fuzzer ############################################## sane-airscan-0.99.20/airscan-http.c-481-static void sane-airscan-0.99.20/airscan-http.c:482:http_uri_parse_addr (http_uri *uri) sane-airscan-0.99.20/airscan-http.c-483-{ ############################################## sane-airscan-0.99.20/airscan-http.c-597- /* Prepare addr, path, etc */ sane-airscan-0.99.20/airscan-http.c:598: http_uri_parse_addr(uri); sane-airscan-0.99.20/airscan-http.c-599- uri->path = http_uri_field_strdup(uri, UF_PATH); ############################################## sane-airscan-0.99.20/airscan-http.c-865-const struct sockaddr* sane-airscan-0.99.20/airscan-http.c:866:http_uri_addr (http_uri *uri) sane-airscan-0.99.20/airscan-http.c-867-{ ############################################## sane-airscan-0.99.20/airscan-http.c-2103- size_t len; sane-airscan-0.99.20/airscan-http.c:2104: const struct sockaddr *addr = http_uri_addr(q->uri); sane-airscan-0.99.20/airscan-http.c-2105- ############################################## sane-airscan-0.99.20/airscan-http.c-2657- sane-airscan-0.99.20/airscan-http.c:2658: q->straddr = ip_straddr_from_sockaddr(q->addr_next->ai_addr, true); sane-airscan-0.99.20/airscan-http.c-2659- log_debug(q->client->log, "HTTP trying %s", q->straddr.text); ############################################## sane-airscan-0.99.20/airscan-ip.c-32-ip_straddr sane-airscan-0.99.20/airscan-ip.c:33:ip_straddr_from_sockaddr (const struct sockaddr *addr, bool withzone) sane-airscan-0.99.20/airscan-ip.c-34-{ ############################################## sane-airscan-0.99.20/airscan-ip.c-141-ip_straddr sane-airscan-0.99.20/airscan-ip.c:142:ip_addr_to_straddr (ip_addr addr, bool withzone) sane-airscan-0.99.20/airscan-ip.c-143-{ ############################################## sane-airscan-0.99.20/airscan-ip.c-332- /* Otherwise, sort lexicographically */ sane-airscan-0.99.20/airscan-ip.c:333: s1 = ip_addr_to_straddr(*a1, true); sane-airscan-0.99.20/airscan-ip.c:334: s2 = ip_addr_to_straddr(*a2, true); sane-airscan-0.99.20/airscan-ip.c-335- ############################################## sane-airscan-0.99.20/airscan-ip.c-368- for (i = 0; i < len; i ++) { sane-airscan-0.99.20/airscan-ip.c:369: ip_straddr str = ip_addr_to_straddr(addrs[i], true); sane-airscan-0.99.20/airscan-ip.c-370- ############################################## sane-airscan-0.99.20/airscan-netif.c-103-bool sane-airscan-0.99.20/airscan-netif.c:104:netif_has_non_link_local_addr (int af, int ifindex) sane-airscan-0.99.20/airscan-netif.c-105-{ ############################################## sane-airscan-0.99.20/airscan-wsdd.c-361- sane-airscan-0.99.20/airscan-wsdd.c:362: if (netif_has_non_link_local_addr(AF_INET, wsdd->finding.ifindex) && sane-airscan-0.99.20/airscan-wsdd.c:363: !zeroconf_endpoint_list_has_non_link_local_addr(AF_INET, sane-airscan-0.99.20/airscan-wsdd.c-364- wsdd->finding.endpoints)) { ############################################## sane-airscan-0.99.20/airscan-wsdd.c-370- sane-airscan-0.99.20/airscan-wsdd.c:371: if (netif_has_non_link_local_addr(AF_INET6, wsdd->finding.ifindex) && sane-airscan-0.99.20/airscan-wsdd.c:372: !zeroconf_endpoint_list_has_non_link_local_addr(AF_INET6, sane-airscan-0.99.20/airscan-wsdd.c-373- wsdd->finding.endpoints)) { ############################################## sane-airscan-0.99.20/airscan-wsdd.c-431- xaddr = OUTER_STRUCT(node2, wsdd_xaddr, list_node); sane-airscan-0.99.20/airscan-wsdd.c:432: sockaddr = http_uri_addr(xaddr->uri); sane-airscan-0.99.20/airscan-wsdd.c-433- sane-airscan-0.99.20/airscan-wsdd.c-434- if (sockaddr != NULL) { sane-airscan-0.99.20/airscan-wsdd.c:435: ip_addr addr2 = ip_addr_from_sockaddr(sockaddr); sane-airscan-0.99.20/airscan-wsdd.c-436- if (ip_addr_equal(addr, addr2)) { ############################################## sane-airscan-0.99.20/airscan-wsdd.c-448-static bool sane-airscan-0.99.20/airscan-wsdd.c:449:wsdd_finding_has_xaddr (wsdd_finding *wsdd, const wsdd_xaddr *xaddr) sane-airscan-0.99.20/airscan-wsdd.c-450-{ ############################################## sane-airscan-0.99.20/airscan-wsdd.c-557- zeroconf_endpoint *ep = endpoints; sane-airscan-0.99.20/airscan-wsdd.c:558: const struct sockaddr *addr = http_uri_addr(ep->uri); sane-airscan-0.99.20/airscan-wsdd.c-559- sane-airscan-0.99.20/airscan-wsdd.c-560- if (addr != NULL) { sane-airscan-0.99.20/airscan-wsdd.c:561: ip_addrset_add(wsdd->finding.addrs, ip_addr_from_sockaddr(addr)); sane-airscan-0.99.20/airscan-wsdd.c-562- } ############################################## sane-airscan-0.99.20/airscan-wsdd.c-906- sane-airscan-0.99.20/airscan-wsdd.c:907: if (wsdd_finding_has_xaddr(wsdd, xaddr)) { sane-airscan-0.99.20/airscan-wsdd.c-908- wsdd_xaddr_free(xaddr); ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1011- sane-airscan-0.99.20/airscan-wsdd.c:1012: str_from = ip_straddr_from_sockaddr((struct sockaddr*) &from, true); sane-airscan-0.99.20/airscan-wsdd.c-1013- getsockname(fd, (struct sockaddr*) &to, &tolen); sane-airscan-0.99.20/airscan-wsdd.c:1014: str_to = ip_straddr_from_sockaddr((struct sockaddr*) &to, true); sane-airscan-0.99.20/airscan-wsdd.c-1015- ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1096- sane-airscan-0.99.20/airscan-wsdd.c:1097: straddr = ip_straddr_from_sockaddr(addr, true); sane-airscan-0.99.20/airscan-wsdd.c-1098- log_trace(wsdd_log, "probe sent: %s->%s", ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1188- port = a.sin6_port; sane-airscan-0.99.20/airscan-wsdd.c:1189: resolver->str_sockaddr = ip_straddr_from_sockaddr( sane-airscan-0.99.20/airscan-wsdd.c-1190- (struct sockaddr*) &a, true); ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1198- resolver->str_ifaddr = ip_straddr_from_ip(AF_INET, &addr->ip); sane-airscan-0.99.20/airscan-wsdd.c:1199: resolver->str_sockaddr = ip_straddr_from_sockaddr( sane-airscan-0.99.20/airscan-wsdd.c-1200- (struct sockaddr*) &a, true); ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1205- port = a.sin_port; sane-airscan-0.99.20/airscan-wsdd.c:1206: resolver->str_sockaddr = ip_straddr_from_sockaddr( sane-airscan-0.99.20/airscan-wsdd.c-1207- (struct sockaddr*) &a, true); ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1294- error err; sane-airscan-0.99.20/airscan-wsdd.c:1295: const struct sockaddr *sockaddr = http_uri_addr(http_query_uri(q)); sane-airscan-0.99.20/airscan-wsdd.c-1296- int ifindex; ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1304- if (sockaddr != NULL) { sane-airscan-0.99.20/airscan-wsdd.c:1305: ip_addrset_del(wsdd_addrs_probing, ip_addr_from_sockaddr(sockaddr)); sane-airscan-0.99.20/airscan-wsdd.c-1306- } ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1473- addr.sin6_port = wsdd_mcast_ipv6.sin6_port; sane-airscan-0.99.20/airscan-wsdd.c:1474: straddr = ip_straddr_from_sockaddr((struct sockaddr*) &addr, true); sane-airscan-0.99.20/airscan-wsdd.c-1475- rc = bind(fd, (struct sockaddr*) &addr, sizeof(addr)); ############################################## sane-airscan-0.99.20/airscan-wsdd.c-1480- addr.sin_port = wsdd_mcast_ipv4.sin_port; sane-airscan-0.99.20/airscan-wsdd.c:1481: straddr = ip_straddr_from_sockaddr((struct sockaddr*) &addr, true); sane-airscan-0.99.20/airscan-wsdd.c-1482- rc = bind(fd, (struct sockaddr*) &addr, sizeof(addr)); ############################################## sane-airscan-0.99.20/airscan-zeroconf.c-587-{ sane-airscan-0.99.20/airscan-zeroconf.c:588: const struct sockaddr *a1 = http_uri_addr(e1->uri); sane-airscan-0.99.20/airscan-zeroconf.c:589: const struct sockaddr *a2 = http_uri_addr(e2->uri); sane-airscan-0.99.20/airscan-zeroconf.c-590- ############################################## sane-airscan-0.99.20/airscan-zeroconf.c-716-bool sane-airscan-0.99.20/airscan-zeroconf.c:717:zeroconf_endpoint_list_has_non_link_local_addr (int af, sane-airscan-0.99.20/airscan-zeroconf.c-718- const zeroconf_endpoint *list) ############################################## sane-airscan-0.99.20/airscan-zeroconf.c-720- for (;list != NULL; list = list->next) { sane-airscan-0.99.20/airscan-zeroconf.c:721: const struct sockaddr *addr = http_uri_addr(list->uri); sane-airscan-0.99.20/airscan-zeroconf.c-722- if (addr != NULL && addr->sa_family == af) { ############################################## sane-airscan-0.99.20/airscan-zeroconf.c-803- for (i = 0; i < count; i ++) { sane-airscan-0.99.20/airscan-zeroconf.c:804: ip_straddr straddr = ip_addr_to_straddr(addrs[i], true); sane-airscan-0.99.20/airscan-zeroconf.c-805- log_debug(zeroconf_log, " %s", straddr.text); ############################################## sane-airscan-0.99.20/airscan.h-979-ip_straddr sane-airscan-0.99.20/airscan.h:980:ip_straddr_from_sockaddr(const struct sockaddr *addr, bool withzone); sane-airscan-0.99.20/airscan.h-981- ############################################## sane-airscan-0.99.20/airscan.h-1048-static inline ip_addr sane-airscan-0.99.20/airscan.h:1049:ip_addr_from_sockaddr (const struct sockaddr *sockaddr) sane-airscan-0.99.20/airscan.h-1050-{ ############################################## sane-airscan-0.99.20/airscan.h-1074-ip_straddr sane-airscan-0.99.20/airscan.h:1075:ip_addr_to_straddr (ip_addr addr, bool withzone); sane-airscan-0.99.20/airscan.h-1076- ############################################## sane-airscan-0.99.20/airscan.h-1201-bool sane-airscan-0.99.20/airscan.h:1202:netif_has_non_link_local_addr (int af, int ifindex); sane-airscan-0.99.20/airscan.h-1203- ############################################## sane-airscan-0.99.20/airscan.h-1537-const struct sockaddr* sane-airscan-0.99.20/airscan.h:1538:http_uri_addr (http_uri *uri); sane-airscan-0.99.20/airscan.h-1539- ############################################## sane-airscan-0.99.20/airscan.h-1545-{ sane-airscan-0.99.20/airscan.h:1546: const struct sockaddr *addr = http_uri_addr(uri); sane-airscan-0.99.20/airscan.h-1547- return addr ? addr->sa_family : AF_UNSPEC; ############################################## sane-airscan-0.99.20/airscan.h-2727-bool sane-airscan-0.99.20/airscan.h:2728:zeroconf_endpoint_list_has_non_link_local_addr (int af, sane-airscan-0.99.20/airscan.h-2729- const zeroconf_endpoint *list); ############################################## sane-airscan-0.99.20/test-uri.c-40-static void sane-airscan-0.99.20/test-uri.c:41:test_addr (const char *s, const char *expected) sane-airscan-0.99.20/test-uri.c-42-{ ############################################## sane-airscan-0.99.20/test-uri.c-50- sane-airscan-0.99.20/test-uri.c:51: sa = http_uri_addr(uri); sane-airscan-0.99.20/test-uri.c-52- if (sa == NULL) { ############################################## sane-airscan-0.99.20/test-uri.c-55- sane-airscan-0.99.20/test-uri.c:56: straddr = ip_straddr_from_sockaddr(sa, true); sane-airscan-0.99.20/test-uri.c-57- if (strcmp(straddr.text, expected)) { ############################################## sane-airscan-0.99.20/test-uri.c-174- sane-airscan-0.99.20/test-uri.c:175: test_addr("http://1.2.3.4/", "1.2.3.4:80"); sane-airscan-0.99.20/test-uri.c:176: test_addr("http://[::1]/", "[::1]:80"); sane-airscan-0.99.20/test-uri.c:177: test_addr("https://1.2.3.4/", "1.2.3.4:443"); sane-airscan-0.99.20/test-uri.c:178: test_addr("https://[::1]/", "[::1]:443"); sane-airscan-0.99.20/test-uri.c:179: test_addr("http://1.2.3.4:1234/", "1.2.3.4:1234"); sane-airscan-0.99.20/test-uri.c:180: test_addr("http://[::1]:1234/", "[::1]:1234"); sane-airscan-0.99.20/test-uri.c-181- ############################################## sane-airscan-0.99.20/test-zeroconf.c-448- endpoint = endpoint->next) { sane-airscan-0.99.20/test-zeroconf.c:449: const struct sockaddr *sockaddr = http_uri_addr(endpoint->uri); sane-airscan-0.99.20/test-zeroconf.c-450- if (sockaddr != NULL) { sane-airscan-0.99.20/test-zeroconf.c:451: ip_addrset_add(finding->addrs, ip_addr_from_sockaddr(sockaddr)); sane-airscan-0.99.20/test-zeroconf.c-452- }