控制外部指针在future中的传递层数。
修复future-promise 回调函数中的use after free,包括web cache pend, web cache write和key keeper。 修复decrypt mirror中的写越界。
This commit is contained in:
@@ -354,17 +354,15 @@ static void certstore_rpc_on_succ(void* result, void* user)
|
||||
{
|
||||
key_keeper_free_keyring((struct keyring*)kyr);
|
||||
}
|
||||
}
|
||||
}
|
||||
ctx->ref_keeper->stat.new_issue++;
|
||||
promise_success(p, (void*)kyr);
|
||||
key_keeper_free_keyring((struct keyring*)kyr);
|
||||
ctx->ref_keeper->stat.new_issue++;
|
||||
}
|
||||
else
|
||||
{
|
||||
promise_failed(p, FUTURE_ERROR_EXCEPTION, status_msg);
|
||||
}
|
||||
//promise_dettach_ctx(p);
|
||||
//ctx_destroy_cb((void*)ctx);
|
||||
}
|
||||
|
||||
static void certstore_rpc_on_fail(enum e_future_error err, const char * what, void * user)
|
||||
|
||||
Reference in New Issue
Block a user