aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-06 18:28:30 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-06 18:28:30 +0000
commit3feb8efa5d918fb774811b838ee8704f559d5ca6 (patch)
treef12d11f12dec535b338d94fb2d64de4f87da4a82
parentc56da3a39b4da2cd4226e3ad937d48cc4c988149 (diff)
downloadglibc-3feb8efa5d918fb774811b838ee8704f559d5ca6.zip
glibc-3feb8efa5d918fb774811b838ee8704f559d5ca6.tar.gz
glibc-3feb8efa5d918fb774811b838ee8704f559d5ca6.tar.bz2
Update.
2004-10-06 Ulrich Drepper <drepper@redhat.com> * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if low 16 bits are zero.
-rw-r--r--ChangeLog5
-rw-r--r--nptl/ChangeLog18
-rw-r--r--resolv/res_mkquery.c2
3 files changed, 24 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7969710..e0245eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-06 Ulrich Drepper <drepper@redhat.com>
+
+ * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
+ low 16 bits are zero.
+
2004-10-06 Jakub Jelinek <jakub@redhat.com>
* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 136cdfc..68e643f 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,21 @@
+2004-10-06 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
+ of pthread-functions.h and pthreaddef.h.
+ * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
+
+ * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
+ Change __data.__nwaiters from int to unsigned int.
+
+ * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
+ sysconf (_SC_THREAD_CPUTIME) returns negative value.
+
+ * allocatestack.c (__find_thread_by_id): Move attribute_hidden
+ before return type.
+
+ * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
+ (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
+
2004-10-06 Ulrich Drepper <drepper@redhat.com>
* tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c
index 5b705b0..9825ae0 100644
--- a/resolv/res_mkquery.c
+++ b/resolv/res_mkquery.c
@@ -141,7 +141,7 @@ res_nmkquery(res_state statp,
randombits = (tv.tv_sec << 8) ^ tv.tv_usec;
#endif
}
- while (randombits == 0);
+ while ((randombits & 0xffff) == 0);
statp->id = (statp->id + randombits) & 0xffff;
#endif
hp->opcode = op;