diff options
| author | Your Name <you@example.com> | 2026-05-15 23:05:46 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-15 23:05:46 +0530 |
| commit | aed51d824f598f7315282936037c4d5b6e7fb4b8 (patch) | |
| tree | 1ed148916cc0a90a991fb9d5e84a3197df8ae7ae /main/tollgate_api.c | |
| parent | 1263d86314fc0760d9be8eea415ccecbc047a5eb (diff) | |
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
Diffstat (limited to 'main/tollgate_api.c')
| -rw-r--r-- | main/tollgate_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
| 330 | config.server_port = 2121; | 330 | config.server_port = 2121; |
| 331 | config.ctrl_port = 32769; | 331 | config.ctrl_port = 32769; |
| 332 | config.max_uri_handlers = 10; | 332 | config.max_uri_handlers = 10; |
| 333 | config.stack_size = 16384; | ||
| 333 | 334 | ||
| 334 | esp_err_t ret = httpd_start(&s_api_server, &config); | 335 | esp_err_t ret = httpd_start(&s_api_server, &config); |
| 335 | if (ret != ESP_OK) { | 336 | if (ret != ESP_OK) { |