Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
bb8661e0
Commit
bb8661e0
authored
Mar 14, 2014
by
Manuel Pégourié-Gonnard
Browse files
Work around a compiler bug on OS X.
parent
e3b3d19e
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
bb8661e0
...
...
@@ -14,6 +14,8 @@ Changes
* entropy_add_source(), entropy_update_manual() and entropy_gather()
now thread-safe if POLARSSL_THREADING_C defined
* Improvements to the CMake build system, contributed by Julian Ospald.
* Work around a bug of the version of Clang shipped by Apple with Mavericks
that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
Security
* Forbid change of server certificate during renegotiation to prevent
...
...
library/bignum.c
View file @
bb8661e0
...
...
@@ -1232,7 +1232,14 @@ int mpi_div_mpi( mpi *Q, mpi *R, const mpi *A, const mpi *B )
Z
.
p
[
i
-
t
-
1
]
=
~
0
;
else
{
#if defined(POLARSSL_HAVE_UDBL)
/*
* The version of Clang shipped by Apple with Mavericks can't
* handle 128-bit division properly. Disable 128-bits division
* for Clang on Apple for now, while waiting for more input on the
* exact version(s) affected and their identification macros.
*/
#if defined(POLARSSL_HAVE_UDBL) && \
! ( defined(__x86_64__) && defined(__clang__) && defined(__APPLE__) )
t_udbl
r
;
r
=
(
t_udbl
)
X
.
p
[
i
]
<<
biL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment