1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Missing memory barrier in DES initialization.

This commit is contained in:
Ulrich Drepper
2010-04-03 13:45:02 -07:00
parent 90a3055e8b
commit 647450cfb0
2 changed files with 46 additions and 41 deletions

View File

@ -1,5 +1,9 @@
2010-04-03 Ulrich Drepper <drepper@redhat.com> 2010-04-03 Ulrich Drepper <drepper@redhat.com>
[BZ #11449]
* crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
small_tables_initialized.
* malloc/malloc.c (_int_free): Add one more sanity check for fastbins. * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
* malloc/malloc.c (set_max_fast): Fix computation of the value. * malloc/malloc.c (set_max_fast): Fix computation of the value.

View File

@ -1,7 +1,7 @@
/* /*
* UFC-crypt: ultra fast crypt(3) implementation * UFC-crypt: ultra fast crypt(3) implementation
* *
* Copyright (C) 1991, 92, 93, 96, 97, 98, 2000 Free Software Foundation, Inc. * Copyright (C) 1991-1993,1996-1998,2000,2010 Free Software Foundation, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -468,6 +468,7 @@ __init_des_r(__data)
efp[comes_from_word][word_value][o_long] |= mask2; efp[comes_from_word][word_value][o_long] |= mask2;
} }
} }
atomic_write_barrier ();
small_tables_initialized = 1; small_tables_initialized = 1;
#ifdef __GNU_LIBRARY__ #ifdef __GNU_LIBRARY__
small_tables_done: small_tables_done: