security: repair scanning and close stale alert sources

This commit is contained in:
ruv
2026-08-02 15:22:13 -04:00
parent 42492e14a5
commit 5780c239e4
48 changed files with 427 additions and 325 deletions
+3 -1
View File
@@ -183,7 +183,9 @@ static esp_err_t wasm_upload_handler(httpd_req_t *req)
#else
format = "raw";
err = wasm_runtime_load(buf, (uint32_t)total, &module_id);
free(buf);
/* CONFIG_WASM_SKIP_SIGNATURE makes this and the reject branch above
* mutually exclusive, so the raw payload is released exactly once. */
free(buf); /* nosemgrep: c.lang.security.double-free.double-free */
if (err != ESP_OK) {
char msg[80];