Skip to content

Commit

Permalink
Don't consider function for ASAN
Browse files Browse the repository at this point in the history
ge25519_scalarmult_base_choose_niels leads to errors (XRPLF#1668) when compiled with address sanitizer.
  • Loading branch information
MarkusTeufelberger authored Dec 10, 2016
1 parent 4d7b1a3 commit 7aefd61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ed25519-donna/ed25519-donna-64bit-x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

#define HAVE_GE25519_SCALARMULT_BASE_CHOOSE_NIELS

DONNA_NOINLINE static void
#if defined(__clang__) || defined (__GNUC__)
# define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
#else
# define ATTRIBUTE_NO_SANITIZE_ADDRESS
#endif

ATTRIBUTE_NO_SANITIZE_ADDRESS DONNA_NOINLINE static void
ge25519_scalarmult_base_choose_niels(ge25519_niels *t, const uint8_t table[256][96], uint32_t pos, signed char b) {
int64_t breg = (int64_t)b;
uint64_t sign = (uint64_t)breg >> 63;
Expand Down

0 comments on commit 7aefd61

Please sign in to comment.