diff options
author | Peng Haitao <penght@cn.fujitsu.com> | 2012-11-19 01:53:07 -0500 |
---|---|---|
committer | Carlos O'Donell <carlos@systemhalted.org> | 2012-11-19 02:05:12 -0500 |
commit | f6da27e53695ad1cc0e2a9490358decbbfdff5e5 (patch) | |
tree | ee71c15d35def733fe7580fa7a5d3a2813ff1a2d /ChangeLog | |
parent | 1f51ee9246b048d8966c36ddd2c26d7e0f927d83 (diff) | |
download | glibc-f6da27e53695ad1cc0e2a9490358decbbfdff5e5.tar.gz glibc-f6da27e53695ad1cc0e2a9490358decbbfdff5e5.tar.xz glibc-f6da27e53695ad1cc0e2a9490358decbbfdff5e5.zip |
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>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 63e00edcb1..8f2f6d221c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-11-19 Peng Haitao <penght@cn.fujitsu.com> + + [BZ #13763] + * sunrpc/bindrsvprt.c: Add lock to protect static variable. + 2012-11-19 Steve McIntyre <steve.mcintyre@linaro.org> * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro. |