glibc/sunrpc
Peng Haitao f6da27e536 bindresvport() uses two static variables port and startport which are not
protected. It is not safe when in multithread circumstance.

bindresvport() select a port number from the range 512 to 1023, when in
multithread circumstance, the port may be 1024. So the static variables will be
protected.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 02:05:12 -05:00
..
rpc Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
rpcsvc Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
auth_des.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
auth_none.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
auth_unix.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
authdes_prot.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
authuxprot.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
bindrsvprt.c bindresvport() uses two static variables port and startport which are not 2012-11-19 02:05:12 -05:00
clnt_gen.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
clnt_perr.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
clnt_raw.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
clnt_simp.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
clnt_tcp.c Fix sunrpc 64-bit (especially big-endian) issues (bug 14821). 2012-11-09 18:21:59 +00:00
clnt_udp.c Fix sunrpc 64-bit (especially big-endian) issues (bug 14821). 2012-11-09 18:21:59 +00:00
clnt_unix.c Fix sunrpc 64-bit (especially big-endian) issues (bug 14821). 2012-11-09 18:21:59 +00:00
create_xid.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
des_crypt.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
des_impl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
des_soft.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
etc.rpc
get_myaddr.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
getrpcport.c Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
key_call.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
key_prot.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
Makefile Fix dependency tracking on cross-rpcgen-objs 2012-05-16 14:09:23 +02:00
netname.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
openchild.c Remove use of INTDEF/INTUSE in libio 2012-05-24 23:06:20 +02:00
pm_getmaps.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
pm_getport.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
pmap_clnt.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
pmap_prot2.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
pmap_prot.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
pmap_rmt.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
proto.h Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
publickey.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
rpc_clntout.c sunrpc: fix rpc bootstrap builds 2012-07-06 00:37:42 -04:00
rpc_cmsg.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
rpc_common.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
rpc_cout.c Remove __GNU_LIBRARY__ conditionals from rpcgen. 2012-03-09 22:46:12 +00:00
rpc_dtable.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
rpc_hout.c Fix some -Wformat warnings in rpcgen. 2012-07-26 14:35:05 -07:00
rpc_main.c Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
rpc_parse.c Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_parse.h Avoid nested comment. 2010-08-24 11:56:51 -07:00
rpc_prot.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
rpc_sample.c Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_scan.c Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_scan.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_svcout.c Fix some -Wformat warnings in rpcgen. 2012-07-26 14:35:05 -07:00
rpc_tblout.c Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_thread.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
rpc_util.c Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_util.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpcgen.c Use standard build rule to build rpcgen. 2012-03-10 00:56:21 +00:00
rpcinfo.c Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
rtime.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc_auth.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc_authux.c Obsolete RPC implementation in libc. 2011-04-16 21:59:36 -04:00
svc_raw.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc_run.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc_simple.c Fix sunrpc static library 2012-05-21 21:34:54 +02:00
svc_tcp.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc_udp.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc_unix.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svc.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
svcauth_des.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
thrsvc.c
tst-getmyaddr.c
tst-xdrmem2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-xdrmem.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Versions Remove duplicate version of pmap_getport from NIS code. 2010-09-01 04:12:55 -07:00
xcrypt.c Fix sunrpc static library 2012-05-21 21:34:54 +02:00
xdr_array.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_float.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_intXX_t.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_mem.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_rec.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_ref.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_sizeof.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00
xdr_stdio.c Remove use of INTDEF/INTUSE in libio 2012-05-24 23:06:20 +02:00
xdr.c Make sunrpc code usable again 2012-05-10 20:19:53 +02:00