Lines Matching refs:ep
95 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep);
120 char *bp, **hap, *ep; in getanswer() local
154 ep = buf + buflen; in getanswer()
159 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
180 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
218 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
222 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
237 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
241 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
261 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
313 if (bp + n >= ep) { in getanswer()
340 if (n > ep - bp || n >= MAXHOSTNAMELEN) goto no_recovery; in getanswer()
341 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
345 if (hent->h_addrtype == AF_INET) pad_v4v6_hostent(hent, &bp, ep); in getanswer()
355 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
362 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
603 static void pad_v4v6_hostent(struct hostent* _Nonnull hp, char** _Nonnull bpp, char* _Nonnull ep) { in pad_v4v6_hostent() argument
608 if (ep - bp < NS_IN6ADDRSZ) { in pad_v4v6_hostent()
656 char qbuf[MAXDNAME + 1], *qp, *ep; in dns_gethtbyaddr() local
671 ep = qbuf + sizeof(qbuf) - 1; in dns_gethtbyaddr()
673 advance = snprintf(qp, (size_t)(ep - qp), "%x.%x.", uaddr[n] & 0xf, in dns_gethtbyaddr()
675 if (advance > 0 && qp + advance < ep) in dns_gethtbyaddr()