=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== rbldnsd-0.999~20180516/contrib/debian/changelog-389- rbldnsd-0.999~20180516/contrib/debian/changelog:390: * another parsing error in ip4parse.c (ip4addr() and rbldnsd-0.999~20180516/contrib/debian/changelog-391- ip4prefix(), unlike claimed, was able to return 0) ############################################## rbldnsd-0.999~20180516/contrib/debian/changelog-583- * use memmove() instead of memcpy() for overlapping regions, rbldnsd-0.999~20180516/contrib/debian/changelog:584: even if dstaddr is less than srcaddr (current memcpy() can rbldnsd-0.999~20180516/contrib/debian/changelog-585- deal with that, but this is out of spec and future versions ############################################## rbldnsd-0.999~20180516/contrib/debian/changelog-705- dslog() &Co from rbldnsd_zones.c to rbldnsd_utils.c rbldnsd-0.999~20180516/contrib/debian/changelog:706: dntoip4addr() from rbldnsd_utils.c to rbldnsd_packet.c rbldnsd-0.999~20180516/contrib/debian/changelog-707- ds_loading from rbldnsd_zones.c to rbldnsd.c ############################################## rbldnsd-0.999~20180516/contrib/debian/rbldnsd.init-48- if [ -n "$p" -a -f /proc/$p/cmdline ]; then rbldnsd-0.999~20180516/contrib/debian/rbldnsd.init:49: case "`cat /proc/$p/cmdline 2>/dev/null`" in rbldnsd-0.999~20180516/contrib/debian/rbldnsd.init-50- *$NAME*) pid=$p;; ############################################## rbldnsd-0.999~20180516/ip4addr.h-23- * return #bits in _prefix_ (32,24,16 or 8) or <0 on error */ rbldnsd-0.999~20180516/ip4addr.h:24:int ip4addr(const char *s, ip4addr_t *ap, char **np); rbldnsd-0.999~20180516/ip4addr.h-25- ############################################## rbldnsd-0.999~20180516/ip4parse.c-128- */ rbldnsd-0.999~20180516/ip4parse.c:129:int ip4addr(const char *s, ip4addr_t *ap, char **np) { rbldnsd-0.999~20180516/ip4parse.c-130- int bits = ip4prefix(s, ap, np); ############################################## rbldnsd-0.999~20180516/ip4parse.c-174- rbldnsd-0.999~20180516/ip4parse.c:175: bits = ip4addr(s, &a, NULL); rbldnsd-0.999~20180516/ip4parse.c-176- if (bits < 0) printf(" addr : err\n"); rbldnsd-0.999~20180516/ip4parse.c-177- else printf(" addr : bits=%d " IPFMT "\n", bits, octets(a)); rbldnsd-0.999~20180516/ip4parse.c:178: bits = ip4addr(s, &a, &np); rbldnsd-0.999~20180516/ip4parse.c-179- if (bits < 0) printf(" addr : err tail=`%s'\n", np); ############################################## rbldnsd-0.999~20180516/ip6addr.h-24- rbldnsd-0.999~20180516/ip6addr.h:25:#define ip6addr(s,ap,np) ip6prefix((s),(ap),(np)) rbldnsd-0.999~20180516/ip6addr.h-26- ############################################## rbldnsd-0.999~20180516/rbldnsd_generic.c-97- dtyp = NSQUERY_A; rbldnsd-0.999~20180516/rbldnsd_generic.c:98: if (ip4addr(s, &a, &s) <= 0) return -1; rbldnsd-0.999~20180516/rbldnsd_generic.c-99- PACK32(dp, a); ############################################## rbldnsd-0.999~20180516/rbldnsd_packet.c-163- rbldnsd-0.999~20180516/rbldnsd_packet.c:164:static int dntoip4addr(const unsigned char *q, ip4addr_t *ap) { rbldnsd-0.999~20180516/rbldnsd_packet.c-165- unsigned o, a = 0; ############################################## rbldnsd-0.999~20180516/rbldnsd_packet.c-194- rbldnsd-0.999~20180516/rbldnsd_packet.c:195:static int dntoip6addr(const unsigned char *q, ip6oct_t ap[IP6ADDR_FULL]) { rbldnsd-0.999~20180516/rbldnsd_packet.c-196- unsigned o1, o2, c; ############################################## rbldnsd-0.999~20180516/rbldnsd_packet.c-224- rbldnsd-0.999~20180516/rbldnsd_packet.c:225: qi->qi_ip4valid = qlab == 4 && dntoip4addr(q, &qi->qi_ip4); rbldnsd-0.999~20180516/rbldnsd_packet.c-226- if (qi->qi_ip4valid) ############################################## rbldnsd-0.999~20180516/rbldnsd_packet.c-229- qi->qi_ip6valid = rbldnsd-0.999~20180516/rbldnsd_packet.c:230: qlab == 32 && qi->qi_dnlen0 == 64 && dntoip6addr(q, qi->qi_ip6); rbldnsd-0.999~20180516/rbldnsd_packet.c-231- if (qi->qi_ip6valid && (flags & DSTF_IP4REV)) { ############################################## rbldnsd-0.999~20180516/rbldnsd_util.c-167- ip4addr_t a; rbldnsd-0.999~20180516/rbldnsd_util.c:168: int bits = ip4addr(str + 1, &a, &str); rbldnsd-0.999~20180516/rbldnsd_util.c-169- if (!a || bits <= 0) { ############################################## rbldnsd-0.999~20180516/debian/changelog-416- rbldnsd-0.999~20180516/debian/changelog:417: * another parsing error in ip4parse.c (ip4addr() and rbldnsd-0.999~20180516/debian/changelog-418- ip4prefix(), unlike claimed, was able to return 0) ############################################## rbldnsd-0.999~20180516/debian/changelog-610- * use memmove() instead of memcpy() for overlapping regions, rbldnsd-0.999~20180516/debian/changelog:611: even if dstaddr is less than srcaddr (current memcpy() can rbldnsd-0.999~20180516/debian/changelog-612- deal with that, but this is out of spec and future versions ############################################## rbldnsd-0.999~20180516/debian/changelog-732- dslog() &Co from rbldnsd_zones.c to rbldnsd_utils.c rbldnsd-0.999~20180516/debian/changelog:733: dntoip4addr() from rbldnsd_utils.c to rbldnsd_packet.c rbldnsd-0.999~20180516/debian/changelog-734- ds_loading from rbldnsd_zones.c to rbldnsd.c ############################################## rbldnsd-0.999~20180516/debian/patches/systemd-48- enable() { rbldnsd-0.999~20180516/debian/patches/systemd:49: opt=`echo "$1" | sed 's/^--[^-]*-//'` rbldnsd-0.999~20180516/debian/patches/systemd-50- case "$opt" in ############################################## rbldnsd-0.999~20180516/debian/rbldnsd.init-44- if [ -n "$p" -a -f /proc/$p/cmdline ]; then rbldnsd-0.999~20180516/debian/rbldnsd.init:45: case "`cat /proc/$p/cmdline 2>/dev/null`" in rbldnsd-0.999~20180516/debian/rbldnsd.init-46- *$NAME*) pid=$p;; ############################################## rbldnsd-0.999~20180516/.pc/systemd/configure-25-enable() { rbldnsd-0.999~20180516/.pc/systemd/configure:26: opt=`echo "$1" | sed 's/^--[^-]*-//'` rbldnsd-0.999~20180516/.pc/systemd/configure-27- case "$opt" in ############################################## rbldnsd-0.999~20180516/.pc/systemd/rbldnsd.c-373- rbldnsd-0.999~20180516/.pc/systemd/rbldnsd.c:374: if (ip4addr(host, &sinaddr, NULL) > 0) { rbldnsd-0.999~20180516/.pc/systemd/rbldnsd.c-375- sin.sin_addr.s_addr = htonl(sinaddr); ############################################## rbldnsd-0.999~20180516/configure-25-enable() { rbldnsd-0.999~20180516/configure:26: opt=`echo "$1" | sed 's/^--[^-]*-//'` rbldnsd-0.999~20180516/configure-27- case "$opt" in ############################################## rbldnsd-0.999~20180516/rbldnsd.c-387- rbldnsd-0.999~20180516/rbldnsd.c:388: if (ip4addr(host, &sinaddr, NULL) > 0) { rbldnsd-0.999~20180516/rbldnsd.c-389- sin.sin_addr.s_addr = htonl(sinaddr);