From ca8bb9c2964e732440fb670d77464920d9e88d00 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 2 Jun 2022 19:13:02 -0400 Subject: [PATCH] fix: sandbox_alloc size --- runtime/src/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index c9028aa..3b7b7d5 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -181,7 +181,7 @@ sandbox_alloc(struct module *module, struct http_session *session, struct route uint64_t admissions_estimate) { size_t alignment = (size_t)PAGE_SIZE; - size_t size_to_alloc = (size_t)round_up_to_page(sizeof(struct module)); + size_t size_to_alloc = (size_t)round_up_to_page(sizeof(struct sandbox)); assert(size_to_alloc % alignment == 0);