From b7e32da0aaf18af8c67db9f0322947d6c63c69f7 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 10 Oct 2026 13:21:42 -0500 Subject: [PATCH] Formatting. --- src/core/ffi.c | 10 +++++----- test/fuzzers/fuzz_fiber.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/ffi.c b/src/core/ffi.c index 444f7ede..b91e08a1 100644 --- a/src/core/ffi.c +++ b/src/core/ffi.c @@ -1231,16 +1231,16 @@ static Janet janet_ffi_sysv64(JanetFFISignature *signature, void *function_point ret_mem = alloca(type_size(signature->ret.type)); regs[0] = (uint64_t) ret_mem; } -/* GCC aligns alloca to the widest allowed vector type (32 bytes for AVX) which can pad - * between the stack pointer and this block, but stack args start at the stack pointer, - * so we must ask for the calling convention's 16 byte alignment */ -/* Both GCC and CLANG define GNUC. */ + /* GCC aligns alloca to the widest allowed vector type (32 bytes for AVX) which can pad + * between the stack pointer and this block, but stack args start at the stack pointer, + * so we must ask for the calling convention's 16 byte alignment */ + /* Both GCC and CLANG define GNUC. */ #if defined(__GNUC__) uint64_t *stack = __builtin_alloca_with_align(sizeof(uint64_t) * signature->stack_count, 128); #else uint64_t *stack = alloca(sizeof(uint64_t) * signature->stack_count); #endif -/* x32 pointers fill only the low half of a slot and must be zero-extended */ + /* x32 pointers fill only the low half of a slot and must be zero-extended */ #ifdef __ILP32__ memset(stack, 0, sizeof(uint64_t) * signature->stack_count); #endif diff --git a/test/fuzzers/fuzz_fiber.c b/test/fuzzers/fuzz_fiber.c index adfdd863..4484a449 100644 --- a/test/fuzzers/fuzz_fiber.c +++ b/test/fuzzers/fuzz_fiber.c @@ -22,7 +22,7 @@ static Janet cfun_fuzz_fiber(int32_t argc, Janet *argv) { if (definition->bytecode_length <= 0) breakpoint_count = 0; for (int32_t index = 0; index < breakpoint_count; index++) { int32_t offset = ((breakpoint_control >> 4) + - index * (breakpoint_control >> 8)) % definition->bytecode_length; + index * (breakpoint_control >> 8)) % definition->bytecode_length; if (index == 0 && (breakpoint_control & 4)) offset = 0; breakpoints[index] = offset; janet_debug_break(definition, offset); @@ -49,7 +49,7 @@ static Janet cfun_fuzz_fiber(int32_t argc, Janet *argv) { status == JANET_STATUS_ERROR || status == JANET_STATUS_ALIVE || (status != JANET_STATUS_PENDING && - status != JANET_STATUS_DEBUG)) { + status != JANET_STATUS_DEBUG)) { break; } @@ -100,7 +100,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { int32_t step_budget = 8 + ((data[0] >> 2) & 31); int32_t control = ((data[0] >> 7) & 1) | - (((data[0] >> 4) & 3) << 1); + (((data[0] >> 4) & 3) << 1); int32_t breakpoint_control = data[1] | ((int32_t)data[size - 1] << 8); written = snprintf(source + source_length, sizeof(source) - source_length,