From aed51d824f598f7315282936037c4d5b6e7fb4b8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 15 May 2026 23:05:46 +0530 Subject: Fix stack overflow and heap-allocate large buffers in Cashu/payment path - tollgate_api.c: increase httpd stack_size to 16384 (was default 4096) - cashu.c: heap-allocate b64, json_buf, post_body, resp_buf instead of stack - cashu.c: proper free() on all error paths - Makefile: replace Go-based tokens target with nutshell wallet targets - Makefile: add wallet-setup, wallet-info, wallet-balance, mint-token, send-token --- main/tollgate_api.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main/tollgate_api.c') diff --git a/main/tollgate_api.c b/main/tollgate_api.c index 5ada3c7..b2ad647 100644 --- a/main/tollgate_api.c +++ b/main/tollgate_api.c @@ -330,6 +330,7 @@ esp_err_t tollgate_api_start(void) config.server_port = 2121; config.ctrl_port = 32769; config.max_uri_handlers = 10; + config.stack_size = 16384; esp_err_t ret = httpd_start(&s_api_server, &config); if (ret != ESP_OK) { -- cgit v1.2.3