Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Commit 7393a80

Browse files
committed
Fixed stack-overflow in oversized allocation test
Large allocation had to be passed through stack due to how context is passed to events. A decrease in the main stack size caused this regression.
1 parent 1845529 commit 7393a80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/events/queue/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ void call_every_test() {
102102
queue.dispatch(N*100);
103103
}
104104

105-
struct big { char data[4096]; } big;
105+
struct big { char data[1024]; } big;
106106

107107
void allocate_failure_test1() {
108-
EventQueue queue;
108+
EventQueue queue(32);
109109
int id = queue.call((void (*)(struct big))0, big);
110110
TEST_ASSERT(!id);
111111
}

0 commit comments

Comments
 (0)