mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
(__tzfile_read): Take extra memory requested by caller into account when copying TZ string.
2007-10-16 Ulrich Drepper <drepper@redhat.com> * time/tzfile.c (__tzfile_read): Take extra memory requested by caller into account when copying TZ string.
This commit is contained in:
parent
e2cceb5a74
commit
69819d9223
@ -1,3 +1,8 @@
|
||||
2007-10-16 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* time/tzfile.c (__tzfile_read): Take extra memory requested by caller
|
||||
into account when copying TZ string.
|
||||
|
||||
2007-10-16 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
|
||||
|
82
nptl/sysdeps/pthread/configure
vendored
82
nptl/sysdeps/pthread/configure
vendored
@ -24,8 +24,8 @@ echo "$as_me: error: CFI directive support in assembler is required" >&2;}
|
||||
fi
|
||||
|
||||
|
||||
echo "$as_me:$LINENO: checking for forced unwind support" >&5
|
||||
echo $ECHO_N "checking for forced unwind support... $ECHO_C" >&6
|
||||
{ echo "$as_me:$LINENO: checking for forced unwind support" >&5
|
||||
echo $ECHO_N "checking for forced unwind support... $ECHO_C" >&6; }
|
||||
if test "${libc_cv_forced_unwind+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
@ -48,39 +48,36 @@ _Unwind_GetCFA (context)
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
(eval $ac_link) 2>conftest.er1
|
||||
if { (ac_try="$ac_link"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_link") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest$ac_exeext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
(exit $ac_status); } && {
|
||||
test -z "$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest$ac_exeext &&
|
||||
$as_test_x conftest$ac_exeext; then
|
||||
libc_cv_forced_unwind=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
libc_cv_forced_unwind=no
|
||||
libc_cv_forced_unwind=no
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext \
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
|
||||
echo "${ECHO_T}$libc_cv_forced_unwind" >&6
|
||||
{ echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
|
||||
echo "${ECHO_T}$libc_cv_forced_unwind" >&6; }
|
||||
if test $libc_cv_forced_unwind = yes; then
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_FORCED_UNWIND 1
|
||||
@ -88,8 +85,8 @@ _ACEOF
|
||||
|
||||
old_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Werror -fexceptions"
|
||||
echo "$as_me:$LINENO: checking for C cleanup handling" >&5
|
||||
echo $ECHO_N "checking for C cleanup handling... $ECHO_C" >&6
|
||||
{ echo "$as_me:$LINENO: checking for C cleanup handling" >&5
|
||||
echo $ECHO_N "checking for C cleanup handling... $ECHO_C" >&6; }
|
||||
if test "${libc_cv_c_cleanup+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
@ -113,39 +110,36 @@ main ()
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||
(eval $ac_link) 2>conftest.er1
|
||||
if { (ac_try="$ac_link"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_link") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest$ac_exeext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
(exit $ac_status); } && {
|
||||
test -z "$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest$ac_exeext &&
|
||||
$as_test_x conftest$ac_exeext; then
|
||||
libc_cv_c_cleanup=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
libc_cv_c_cleanup=no
|
||||
libc_cv_c_cleanup=no
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext \
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
|
||||
echo "${ECHO_T}$libc_cv_c_cleanup" >&6
|
||||
{ echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
|
||||
echo "${ECHO_T}$libc_cv_c_cleanup" >&6; }
|
||||
CFLAGS="$old_CFLAGS"
|
||||
if test $libc_cv_c_cleanup = no; then
|
||||
{ { echo "$as_me:$LINENO: error: the compiler must support C cleanup handling" >&5
|
||||
|
8
sysdeps/x86_64/elf/configure
vendored
8
sysdeps/x86_64/elf/configure
vendored
@ -3,8 +3,8 @@
|
||||
|
||||
if test "$usetls" != no; then
|
||||
# Check for support of thread-local storage handling in assembler and linker.
|
||||
echo "$as_me:$LINENO: checking for x86-64 TLS support" >&5
|
||||
echo $ECHO_N "checking for x86-64 TLS support... $ECHO_C" >&6
|
||||
{ echo "$as_me:$LINENO: checking for x86-64 TLS support" >&5
|
||||
echo $ECHO_N "checking for x86-64 TLS support... $ECHO_C" >&6; }
|
||||
if test "${libc_cv_x86_64_tls+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
@ -33,8 +33,8 @@ else
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $libc_cv_x86_64_tls" >&5
|
||||
echo "${ECHO_T}$libc_cv_x86_64_tls" >&6
|
||||
{ echo "$as_me:$LINENO: result: $libc_cv_x86_64_tls" >&5
|
||||
echo "${ECHO_T}$libc_cv_x86_64_tls" >&6; }
|
||||
if test $libc_cv_x86_64_tls = yes; then
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_TLS_SUPPORT 1
|
||||
|
@ -264,7 +264,7 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
|
||||
zone_names = (char *) types + num_types * sizeof (struct ttinfo);
|
||||
leaps = (struct leap *) ((char *) transitions + leaps_idx);
|
||||
if (trans_width == 8)
|
||||
tzspec = (char *) leaps + num_leaps * sizeof (struct leap);
|
||||
tzspec = (char *) leaps + num_leaps * sizeof (struct leap) + extra;
|
||||
else
|
||||
tzspec = NULL;
|
||||
if (extra > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user