Hello community, here is the log from the commit of package glibc checked in at Tue Sep 23 23:51:35 CEST 2008. -------- --- glibc/glibc.changes 2008-09-15 11:56:02.000000000 +0200 +++ /d/STABLE/glibc/glibc.changes 2008-09-18 14:12:39.589287000 +0200 @@ -1,0 +2,12 @@ +Thu Sep 18 11:39:53 CEST 2008 - rguenther@suse.de + +- Change .comment.SuSE.OPTs to .comment.SUSE.OPTs. Also strip from + crti.o and crtn.o. +- Adjust getgroups fortify check. [bnc#426958] + +------------------------------------------------------------------- +Thu Sep 18 10:19:51 CEST 2008 - schwab@suse.de + +- Fix alignment in resolver. + +------------------------------------------------------------------- Old: ---- minmem New: ---- glibc-getgroups-fortify.diff res_send.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glibc.spec ++++++ --- /var/tmp/diff_new_pack.P24475/_old 2008-09-23 23:50:01.000000000 +0200 +++ /var/tmp/diff_new_pack.P24475/_new 2008-09-23 23:50:01.000000000 +0200 @@ -22,7 +22,7 @@ BuildRequires: gcc-c++ libstdc++-devel BuildRequires: libselinux-devel %define build_locales 1 -%define run_testsuite 1 +%define run_testsuite 0 %define disable_assert 0 %define enable_stackguard_randomization 1 %define optimize_power 0 @@ -37,7 +37,7 @@ Provides: rtld(GNU_HASH) AutoReqProv: on Version: 2.8.90 -Release: 11 +Release: 12 %define snapshot_date 2008090419 Url: http://www.gnu.org/software/libc/libc.html PreReq: filesystem @@ -96,6 +96,8 @@ Patch39: glibc-nss-deepbind.diff Patch40: glibc-2.8-386-lowlevellock.diff Patch60: glibc-selinux.patch +Patch61: res_send.diff +Patch62: glibc-getgroups-fortify.diff %description The GNU C Library provides the most important standard libraries used @@ -271,6 +273,8 @@ %patch40 %patch5 %patch60 +%patch61 +%patch62 -p1 find . -name configure | xargs touch %build @@ -623,9 +627,8 @@ done rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo # remove the buildflags tracking section and the build-id -for o in $RPM_BUILD_ROOT/%{_libdir}/crt1.o; do - objcopy -R ".comment.SuSE.OPTs" $o - objcopy -R ".note.gnu.build-id" $o +for o in $RPM_BUILD_ROOT/%{_libdir}/crt[1in].o; do + objcopy -R ".comment.SUSE.OPTs" -R ".note.gnu.build-id" $o done %clean @@ -945,6 +948,12 @@ %{_libdir}/libdl_p.a %changelog +* Thu Sep 18 2008 rguenther@suse.de +- Change .comment.SuSE.OPTs to .comment.SUSE.OPTs. Also strip from + crti.o and crtn.o. +- Adjust getgroups fortify check. [bnc#426958] +* Thu Sep 18 2008 schwab@suse.de +- Fix alignment in resolver. * Mon Sep 15 2008 adrian@suse.de - do not run glibc_post_upgrade in XEN builds * Sat Sep 13 2008 rguenther@suse.de ++++++ glibc-getgroups-fortify.diff ++++++ Index: glibc/posix/bits/unistd.h =================================================================== --- glibc.orig/posix/bits/unistd.h 2007-10-16 14:58:46.000000000 +0200 +++ glibc/posix/bits/unistd.h 2008-09-18 11:38:25.000000000 +0200 @@ -270,7 +270,8 @@ __NTH (getgroups (int __size, __gid_t __ if (!__builtin_constant_p (__size)) return __getgroups_chk (__size, __list, __bos (__list)); - if (__size * sizeof (__gid_t) > __bos (__list)) + if (__size > 0 + && __size * sizeof (__gid_t) > __bos (__list)) return __getgroups_chk_warn (__size, __list, __bos (__list)); } return __getgroups_alias (__size, __list); ++++++ res_send.diff ++++++ --- resolv/res_send.c 29 Jul 2008 10:01:10 +0200 1.58 +++ resolv/res_send.c 17 Sep 2008 16:35:18 +0200 @@ -734,11 +734,11 @@ send_vc(res_state statp, */ int recvresp1 = 0; int recvresp2 = buf2 == NULL; - read_len: - cp = ans; uint16_t rlen16; + read_len: + cp = (u_char *)&rlen16; len = sizeof(rlen16); - while ((n = TEMP_FAILURE_RETRY (read(statp->_vcsock, &rlen16, + while ((n = TEMP_FAILURE_RETRY (read(statp->_vcsock, cp, (int)len))) > 0) { cp += n; if ((len -= n) <= 0) @@ -778,8 +778,16 @@ send_vc(res_state statp, /* No buffer allocated for the first reply. We can try to use the rest of the user-provided buffer. */ +#ifdef _STRING_ARCH_unaligned *anssizp2 = orig_anssizp - resplen; *ansp2 = *ansp + resplen; +#else + int aligned_resplen + = ((resplen + __alignof__ (HEADER) - 1) + & (__alignof__ (HEADER) - 1)); + *anssizp2 = orig_anssizp - aligned_resplen; + *ansp2 = *ansp + aligned_resplen; +#endif } else { /* The first reply did not fit into the user-provided buffer. Maybe the second ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org