Use GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE for allocating memory for base64 encoding

This commit is contained in:
bptato
2021-02-03 13:03:52 +01:00
parent 5cd5a1735a
commit 1a47d07d66

2
etc.c
View File

@@ -2024,7 +2024,7 @@ base64_encode(const unsigned char *src, size_t len)
if (k + 1 < len)
return NULL;
w = GC_MALLOC_ATOMIC(k + 1);
w = GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE(k + 1);
w[k] = 0;
at = w;