diff options
author | sijanec <anton@sijanec.eu> | 2021-03-17 23:21:37 +0100 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2021-03-17 23:21:37 +0100 |
commit | 2a5e31c42603f38e9933e0f0cc1857da618f98c5 (patch) | |
tree | d27a1278eb8a5fa9255ea33c16b7427779f3bf1d /misc | |
parent | končal api, "končal" main, začel ui (diff) | |
download | discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.tar discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.tar.gz discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.tar.bz2 discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.tar.lz discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.tar.xz discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.tar.zst discord.c-2a5e31c42603f38e9933e0f0cc1857da618f98c5.zip |
Diffstat (limited to 'misc')
-rw-r--r-- | misc/openssl.supp | 17 | ||||
-rw-r--r-- | misc/valgrind-supp-extractor.c | 16 |
2 files changed, 33 insertions, 0 deletions
diff --git a/misc/openssl.supp b/misc/openssl.supp new file mode 100644 index 0000000..21d47cd --- /dev/null +++ b/misc/openssl.supp @@ -0,0 +1,17 @@ +{ + Ignore OpenSSL malloc + Memcheck:Leak + fun:malloc + fun:CRYPTO_malloc + ... + obj:*libcrypto* +} + +{ + Ignore OpenSSL realloc + Memcheck:Leak + fun:realloc + fun:CRYPTO_realloc + ... + obj:*libcrypto* +} diff --git a/misc/valgrind-supp-extractor.c b/misc/valgrind-supp-extractor.c new file mode 100644 index 0000000..0b56a91 --- /dev/null +++ b/misc/valgrind-supp-extractor.c @@ -0,0 +1,16 @@ +#include <stdio.h> +int main (int argc, char ** argv) { + char c = fgetc(stdin); + int s = 0; /* 0: not in supp, 1: in supp */ + while (!feof(stdin)) { + if (c == '}') + s = 0; + if (s) + fputc(c, stdout); + if (c == '{') + s = 1; + c = fgetc(stdin); + } + fflush(stdout); + return 0; +} |