diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-01-06 11:46:23 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-01-06 11:46:23 +0100 |
commit | b95cd8968d765bf71fffb13e3cdc8d13e24949d1 (patch) | |
tree | cfcd46a3395dd091b8aa48ec665e0df57ccf8b62 /libtokencap/libtokencap.so.c | |
parent | 67cbeeb395c7e0aa8820e79c92f5e8e1322f8be0 (diff) | |
parent | e7fc1ef49e8c9d8fa563f321f5e5906ce8fad69d (diff) | |
download | afl++-b95cd8968d765bf71fffb13e3cdc8d13e24949d1.tar.gz |
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r-- | libtokencap/libtokencap.so.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c index d67e4e16..e4f531c8 100644 --- a/libtokencap/libtokencap.so.c +++ b/libtokencap/libtokencap.so.c @@ -142,6 +142,9 @@ static void __tokencap_load_mappings(void) { } + base += size; + size = 0; + } } @@ -687,6 +690,20 @@ bool strcsequal(const void* s1, const void* s2) { } +/* bcmp/memcmp BSD flavors, similar to CRYPTO_memcmp */ + +int timingsafe_bcmp(const void* mem1, const void* mem2, size_t len) { + + return bcmp(mem1, mem2, len); + +} + +int timingsafe_memcmp(const void* mem1, const void* mem2, size_t len) { + + return memcmp(mem1, mem2, len); + +} + /* Init code to open the output file (or default to stderr). */ __attribute__((constructor)) void __tokencap_init(void) { |