From e1e649dc8daa80b83d168a16b7872db96ac8cdfd Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 29 Jun 2018 15:16:33 +0200 Subject: [PATCH] avoid a deadlock in the saxparser --- cmdline/stress.c | 11 +++++++++++ src/dc_saxparser.c | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cmdline/stress.c b/cmdline/stress.c index 9bf400d4..cf73299b 100644 --- a/cmdline/stress.c +++ b/cmdline/stress.c @@ -36,6 +36,7 @@ $ valgrind --leak-check=full --tool=memcheck ./deltachat-core #include "../src/dc_apeerstate.h" #include "../src/dc_aheader.h" #include "../src/dc_keyring.h" +#include "../src/dc_saxparser.h" /* some data used for testing @@ -174,6 +175,16 @@ static const char* s_em_setupfile = void stress_functions(dc_context_t* context) { + /* test dc_saxparser_t + **************************************************************************/ + + { + dc_saxparser_t saxparser; + dc_saxparser_init(&saxparser, NULL); + dc_saxparser_parse(&saxparser, "