We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7e6a78 commit b4ff08dCopy full SHA for b4ff08d
main.c
@@ -142,7 +142,7 @@ STATIC supervisor_allocation *allocate_pystack(safe_mode_t safe_mode) {
142
(void)common_hal_os_getenv_int("CIRCUITPY_PYSTACK_SIZE", &pystack_size);
143
// Check if value is valid
144
pystack_size = pystack_size - pystack_size % sizeof(size_t); // Round down to multiple of 4.
145
- if (pystack_size < 384) {
+ if ((pystack_size < 384) || (pystack_size > 900000)) {
146
serial_write_compressed(translate("\nInvalid CIRCUITPY_PYSTACK_SIZE\n\n\r"));
147
pystack_size = CIRCUITPY_PYSTACK_SIZE; // Reset
148
}
0 commit comments