freebsd-dev/lib/libc/nls
Xin LI 4188ba1a3b Fix race condition in catopen(3).
The current code uses a rwlock to protect the cached list, which
in turn holds a list of catentry objects, and increments reference
count while holding only read lock.

Fix this by converting the reference counter to use atomic operations.

While I'm there, also perform some clean ups around memory operations.

PR:		202636
Reported by:	Henry Hu <henry.hu.sh@gmail.com>
Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24095
2020-03-19 06:33:06 +00:00
..
be_BY.UTF-8.msg
C.msg Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
ca_ES.ISO8859-1.msg
catclose.3
catgets.3
catopen.3
de_DE.ISO8859-1.msg
el_GR.ISO8859-7.msg
es_ES.ISO8859-1.msg
fi_FI.ISO8859-1.msg
fr_FR.ISO8859-1.msg
gl_ES.ISO8859-1.msg
hu_HU.ISO8859-2.msg
it_IT.ISO8859-15.msg
ja_JP.eucJP.msg
ja_JP.UTF-8.msg
ko_KR.eucKR.msg
ko_KR.UTF-8.msg
Makefile.inc
mn_MN.UTF-8.msg
msgcat.c Fix race condition in catopen(3). 2020-03-19 06:33:06 +00:00
nl_NL.ISO8859-1.msg
no_NO.ISO8859-1.msg
pl_PL.ISO8859-2.msg
pt_BR.ISO8859-1.msg
ru_RU.KOI8-R.msg
sk_SK.ISO8859-2.msg
sv_SE.ISO8859-1.msg
Symbol.map
uk_UA.UTF-8.msg
zh_CN.GB2312.msg
zh_CN.GB18030.msg
zh_CN.UTF-8.msg