summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2022-05-27 16:12:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2022-05-27 16:12:59 (GMT)
commitd23c70ce953d27a5c2cbe0ec1516d8749d0d2616 (patch)
treeb74312bf522ed20c50c825420858a0239de659e2 /plugins
parent2512f75cec41ca4e6f8b95808530dbf1578ba412 (diff)
Do not block when ABI flags are empty.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/pychrysalide/core.c b/plugins/pychrysalide/core.c
index 98f94b6..401aa33 100644
--- a/plugins/pychrysalide/core.c
+++ b/plugins/pychrysalide/core.c
@@ -24,6 +24,7 @@
#include "core.h"
+
#include <assert.h>
#include <errno.h>
#include <malloc.h>
@@ -249,7 +250,8 @@ static bool is_current_abi_suitable(void)
#define GRAB_ABI_FLAGS_IN_PYTHON \
"import sys" "\n" \
"import os" "\n" \
- "os.write(%d, bytes(sys.abiflags, 'UTF-8'))" "\n"
+ "data = bytes(sys.abiflags, 'UTF-8') + b'\\0'" "\n" \
+ "os.write(%d, data)" "\n"
result = false;