Merge pull request #348 from gwsystems/347-fix-sandbox-alloc

fix: sandbox_alloc size
master
Sean McBride 3 years ago committed by GitHub
commit f2517654e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -181,7 +181,7 @@ sandbox_alloc(struct module *module, struct http_session *session, struct route
uint64_t admissions_estimate) uint64_t admissions_estimate)
{ {
size_t alignment = (size_t)PAGE_SIZE; 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); assert(size_to_alloc % alignment == 0);

Loading…
Cancel
Save