History log of /openbsd-src/lib/libc/yp/ypmatch_cache.c (Results 1 – 18 of 18)
Revision Date Author Comments
# 2d62dde8 02-Aug-2022 deraadt <deraadt@openbsd.org>

1) The yp_bind/yp_unbind and internal _yp_dobind/_yp_unbind sequences shared
dom_binding structs between threads, which is unsafe -- example, dom_vers
signalled retry events, and structs+socket would

1) The yp_bind/yp_unbind and internal _yp_dobind/_yp_unbind sequences shared
dom_binding structs between threads, which is unsafe -- example, dom_vers
signalled retry events, and structs+socket would get deallocated in _yp_unbind.
Change all yp_first (and similar) functions to understand that _yp_dobind now
provides a private dom_binding and socket, which must be released using
_yp_unbind. Use similar methods in the one-step yp_all function.
2) domainname caching in get* is not neccessary now that the domainname cannot
change relative to ypconnect(2)'s decisions.
Many fields in dom_binding struct become unused, so delete them.
ok jmatthew, also tested by miod

show more ...


# ba364bef 13-Sep-2015 guenther <guenther@openbsd.org>

Wrap <rpcsvc/ypclnt.h> so that calls go direct and the symbols are all weak


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

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


# 4e0c9721 01-Nov-2009 schwarze <schwarze@openbsd.org>

Two minor bug fixes rotting in my tree:
(1) When the second malloc in yp_next fails, do not leak the memory
allocated by the first one. Same fix as yp_first.c rev. 1.9.
(2) When compiled with YPMATC

Two minor bug fixes rotting in my tree:
(1) When the second malloc in yp_next fails, do not leak the memory
allocated by the first one. Same fix as yp_first.c rev. 1.9.
(2) When compiled with YPMATCHCACHE, do not fail the lookup when
reserving memory for the cache fails. Instead, just return the
correct result without caching it.
ok millert@

show more ...


# 740a91e6 06-Jun-2009 schwarze <schwarze@openbsd.org>

In case of memory exhaustion, ypmatch_add may both leak memory and leave
invalid data on the list, inviting later NULL pointer access.
noticed by deraadt@, algorithm proposed by millert, implemented

In case of memory exhaustion, ypmatch_add may both leak memory and leave
invalid data on the list, inviting later NULL pointer access.
noticed by deraadt@, algorithm proposed by millert, implemented by me;
feedback and ok millert@

show more ...


# 4e2fcec2 05-Jun-2009 schwarze <schwarze@openbsd.org>

malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR;
ok millert@


# 951548d6 05-Aug-2005 espie <espie@openbsd.org>

- remove rcsid
- put all the YPMATCHCACHE code into a #ifdef, proper
- remove all extra header files that are not needed

okay deraadt@


# 372ff852 25-Jun-2003 marc <marc@openbsd.org>

Move static funcion and variable declarations from header to the
.c file where they are used. Gets rid of YPMATCHCACHE define.
Sure deraadt@


# 00466ad4 02-Jun-2003 deraadt <deraadt@openbsd.org>

remove terms 3 & 4 on my own software


# 0ffb34fd 31-Jul-2002 deraadt <deraadt@openbsd.org>

if ypmatch_add sees short keys or values, abort early


# 11e5d692 20-Jul-2002 deraadt <deraadt@openbsd.org>

ansi


# 84c5bc33 20-Jan-1998 deraadt <deraadt@openbsd.org>

for yp_match() and yp_next(), do not permit keys longer than YPMAXRECORD


# 77124a50 03-Dec-1996 deraadt <deraadt@openbsd.org>

never bitch about first failure


# c8f91e0d 15-Sep-1996 tholo <tholo@openbsd.org>

Remove dead code
Remove unused variables
Silence some warnings
lint(1) is your friend


# e9b2b68c 19-Aug-1996 tholo <tholo@openbsd.org>

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


# 6f88c3e0 01-Jul-1996 deraadt <deraadt@openbsd.org>

update rcsid


# a69cfd83 22-May-1996 deraadt <deraadt@openbsd.org>

repair return values, more checking


# 18128546 24-Apr-1996 deraadt <deraadt@openbsd.org>

yp_prot.h lies -> use yp.h (from yp.x) instead, change lots of structure
accesses to match. change xdr_domainname() and some other functions to
take "char **" instead of "char *", as rpcgen intended

yp_prot.h lies -> use yp.h (from yp.x) instead, change lots of structure
accesses to match. change xdr_domainname() and some other functions to
take "char **" instead of "char *", as rpcgen intended -- helps programs
linking against rpcgen output of yp.x. yp_all() should not free it's
return value. split xdryp.c and yplib.c into ~20 files so binaries like
"csh" need not link in functions like yp_maplist(). NIS+'s YP emulation
code lacks YPPROC_ORDER... attempt to deal nicely.

show more ...