Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / scripts / sai-power.service
Author[]Andy Green <andy@warmcat.com> 2026-07-01 06:11 UTC
Committer[]Andy Green <andy@warmcat.com> 2026-07-01 06:11 UTC
Tree2a0e8f84623f319a17b4035511f75888fc554eaa   Raw Patch
 
builder: fix uaf
builder: fix uaf
diff --git a/src/builder/b-task.c b/src/builder/b-task.c index 08f945a..0f20f67 100644 --- a/src/builder/b-task.c +++ b/src/builder/b-task.c @@ -447,8 +447,9 @@ saib_task_destroy(struct sai_nspawn *ns) } if (ns->task && ns->task->ac_task_container) { + struct lwsac *ac = ns->task->ac_task_container; /* contains the task object */ - lwsac_free(&ns->task->ac_task_container); + lwsac_free(&ac); ns->task = NULL; } @@ -955,8 +956,10 @@ saib_consider_allocating_task(struct sai_plat_server *spm, lws_struct_args_t *a, ns->hash = task->git_hash; ns->git_repo_url = task->git_repo_url; - if (ns->task && ns->task->ac_task_container) - lwsac_free(&ns->task->ac_task_container); + if (ns->task && ns->task->ac_task_container) { + struct lwsac *ac = ns->task->ac_task_container; + lwsac_free(&ac); + } ns->task = task; /* we are owning this nspawn for the duration */ ns->spm = spm; /* bind this task to the spm the req came in on */
Page fetched 0s ago, creation time: 2ms (vhost etag hits: 0%, cache hits: 0%)