History log of /openbsd-current/lib/libc/net/res_comp.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.23 15-Mar-2023 millert

Fix a number of out of bound reads in DNS response parsing.
Originally from djm@. OK deraadt@ florian@ bluhm@


# 1.22 27-Dec-2022 jmc

spelling fixes; from paul tagliamonte
any changes not taken noted on tech, but chiefly here i did not take the
cancelation - cancellation changes;


# 1.21 16-Nov-2022 florian

tolower(3) guarantees to return its argument unchanged if it's not
uppercase.
While here use the correct idiom of casting to unsigned char.

OK millert, farewell to ultrix deraadt


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.20 01-May-2016 millert

branches: 1.20.24; 1.20.26;
Remove old NeXT-specific cruft. From mmcc@


Revision tags: OPENBSD_5_9_BASE
# 1.19 14-Dec-2015 mmcc

s/begining/beginning/g


# 1.18 05-Oct-2015 guenther

Wrap <resolv.h> so that internal calls go direct

ok millert@


# 1.17 13-Sep-2015 guenther

Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the
symbols without underbar prefix are all weak


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 16-Jan-2015 millert

Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@


# 1.15 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.14 16-Apr-2008 deraadt

permit _ in the middle of a DNS name component


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.13 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.12 25-Mar-2005 otto

ansify. ok deraadt@ moritz@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.10 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.9 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 09-Jul-1997 millert

Clean up some -Wall flowers.


Revision tags: OPENBSD_2_1_BASE
# 1.7 30-Apr-1997 tholo

Remove unused variables


# 1.6 19-Apr-1997 deraadt

constrain to MAXHOSTNAMELEN-1 not MAXDNAME, duh


# 1.5 27-Mar-1997 deraadt

constrain hostnames to MAXHOSTNAMELEN (again), and fix a typo


# 1.4 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.3 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.22 27-Dec-2022 jmc

spelling fixes; from paul tagliamonte
any changes not taken noted on tech, but chiefly here i did not take the
cancelation - cancellation changes;


# 1.21 16-Nov-2022 florian

tolower(3) guarantees to return its argument unchanged if it's not
uppercase.
While here use the correct idiom of casting to unsigned char.

OK millert, farewell to ultrix deraadt


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.20 01-May-2016 millert

Remove old NeXT-specific cruft. From mmcc@


Revision tags: OPENBSD_5_9_BASE
# 1.19 14-Dec-2015 mmcc

s/begining/beginning/g


# 1.18 05-Oct-2015 guenther

Wrap <resolv.h> so that internal calls go direct

ok millert@


# 1.17 13-Sep-2015 guenther

Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the
symbols without underbar prefix are all weak


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 16-Jan-2015 millert

Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@


# 1.15 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.14 16-Apr-2008 deraadt

permit _ in the middle of a DNS name component


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.13 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.12 25-Mar-2005 otto

ansify. ok deraadt@ moritz@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.10 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.9 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 09-Jul-1997 millert

Clean up some -Wall flowers.


Revision tags: OPENBSD_2_1_BASE
# 1.7 30-Apr-1997 tholo

Remove unused variables


# 1.6 19-Apr-1997 deraadt

constrain to MAXHOSTNAMELEN-1 not MAXDNAME, duh


# 1.5 27-Mar-1997 deraadt

constrain hostnames to MAXHOSTNAMELEN (again), and fix a typo


# 1.4 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.3 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.21 16-Nov-2022 florian

tolower(3) guarantees to return its argument unchanged if it's not
uppercase.
While here use the correct idiom of casting to unsigned char.

OK millert, farewell to ultrix deraadt


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.20 01-May-2016 millert

Remove old NeXT-specific cruft. From mmcc@


Revision tags: OPENBSD_5_9_BASE
# 1.19 14-Dec-2015 mmcc

s/begining/beginning/g


# 1.18 05-Oct-2015 guenther

Wrap <resolv.h> so that internal calls go direct

ok millert@


# 1.17 13-Sep-2015 guenther

Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the
symbols without underbar prefix are all weak


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 16-Jan-2015 millert

Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@


# 1.15 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.14 16-Apr-2008 deraadt

permit _ in the middle of a DNS name component


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.13 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.12 25-Mar-2005 otto

ansify. ok deraadt@ moritz@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.10 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.9 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 09-Jul-1997 millert

Clean up some -Wall flowers.


Revision tags: OPENBSD_2_1_BASE
# 1.7 30-Apr-1997 tholo

Remove unused variables


# 1.6 19-Apr-1997 deraadt

constrain to MAXHOSTNAMELEN-1 not MAXDNAME, duh


# 1.5 27-Mar-1997 deraadt

constrain hostnames to MAXHOSTNAMELEN (again), and fix a typo


# 1.4 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.3 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.20 01-May-2016 millert

Remove old NeXT-specific cruft. From mmcc@


Revision tags: OPENBSD_5_9_BASE
# 1.19 14-Dec-2015 mmcc

s/begining/beginning/g


# 1.18 05-Oct-2015 guenther

Wrap <resolv.h> so that internal calls go direct

ok millert@


# 1.17 13-Sep-2015 guenther

Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the
symbols without underbar prefix are all weak


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 16-Jan-2015 millert

Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@


# 1.15 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.14 16-Apr-2008 deraadt

permit _ in the middle of a DNS name component


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.13 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.12 25-Mar-2005 otto

ansify. ok deraadt@ moritz@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.11 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.10 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.9 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.8 09-Jul-1997 millert

Clean up some -Wall flowers.


Revision tags: OPENBSD_2_1_BASE
# 1.7 30-Apr-1997 tholo

Remove unused variables


# 1.6 19-Apr-1997 deraadt

constrain to MAXHOSTNAMELEN-1 not MAXDNAME, duh


# 1.5 27-Mar-1997 deraadt

constrain hostnames to MAXHOSTNAMELEN (again), and fix a typo


# 1.4 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.3 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision