Skip to content

Commit 033f14b

Browse files
fix: increase heap memory to 2G and add memory cleanup to prevent segmentation fault
1 parent ac4e179 commit 033f14b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
/etc/resolv.conf
7070
binary-fs: true
7171
fs-dir: /app
72-
heap: 1G
72+
heap: 2G
7373
dlopen: 1
7474
mprotect: 1
7575
secrets:

.github/workflows/dapp-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
/etc/resolv.conf
5151
binary-fs: true
5252
fs-dir: /app
53-
heap: 1G
53+
heap: 2G
5454
dlopen: 1
5555
mprotect: 1
5656
secrets:

dapp/src/sendEmail.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ async function start() {
108108
requesterSecret.emailContentEncryptionKey
109109
);
110110

111+
// Clear large buffers from memory
112+
encryptedEmailContent.fill(0);
113+
111114
// Step 4: Send email
112115
const response = await sendEmail({
113116
email: protectedData.email,

0 commit comments

Comments
 (0)