aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-02-03 12:03:52 +0000
committerbptato <nincsnevem662@gmail.com>2021-02-03 12:03:52 +0000
commit1a47d07d665dff4f24005c1f03e97610ecfa2713 (patch)
tree8c49b4c12e539fea251decdb1cad7d5812873bf2 /etc.c
parentbase64_encode: fix input and output length types (diff)
downloadw3m-1a47d07d665dff4f24005c1f03e97610ecfa2713.tar.gz
w3m-1a47d07d665dff4f24005c1f03e97610ecfa2713.zip
Use GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE for allocating memory for base64 encoding
Diffstat (limited to 'etc.c')
-rw-r--r--etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc.c b/etc.c
index 0c3a004..4e662e4 100644
--- a/etc.c
+++ b/etc.c
@@ -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;