summaryrefslogtreecommitdiff
path: root/test/stack_over_limit_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stack_over_limit_test.c')
-rw-r--r--test/stack_over_limit_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/stack_over_limit_test.c b/test/stack_over_limit_test.c
index 73b6bdc2567b..fef2c6dd018e 100644
--- a/test/stack_over_limit_test.c
+++ b/test/stack_over_limit_test.c
@@ -1,9 +1,9 @@
#include "assertions.h"
#include "cbor.h"
-static size_t generate_overflow_data(unsigned char **overflow_data) {
+static size_t generate_overflow_data(unsigned char** overflow_data) {
int i;
- *overflow_data = (unsigned char *)malloc(CBOR_MAX_STACK_SIZE + 3);
+ *overflow_data = (unsigned char*)malloc(CBOR_MAX_STACK_SIZE + 3);
for (i = 0; i < CBOR_MAX_STACK_SIZE + 1; i++) {
(*overflow_data)[i] = 0xC2; // tag of positive bignum
}
@@ -12,8 +12,8 @@ static size_t generate_overflow_data(unsigned char **overflow_data) {
return CBOR_MAX_STACK_SIZE + 3;
}
-static void test_stack_over_limit(void **_CBOR_UNUSED(_state)) {
- unsigned char *overflow_data;
+static void test_stack_over_limit(void** _state _CBOR_UNUSED) {
+ unsigned char* overflow_data;
size_t overflow_data_len;
struct cbor_load_result res;
overflow_data_len = generate_overflow_data(&overflow_data);