citus icon indicating copy to clipboard operation
citus copied to clipboard

Potential dereference of NULL ptr

Open ProjectMutilation opened this issue 1 year ago • 0 comments

src/backend/distributed/utils/background_jobs.c In the function static TaskExecutionStatus TaskConcurrentCancelCheck()

if (!task || task->status == BACKGROUND_TASK_STATUS_CANCELLING) \\ entering the condition if the task value is NULL
	{
...
		ereport(LOG, (errmsg(
						  "task jobid/taskid is cancelled: %ld/%ld",
						  task->jobid, task->taskid))); \\ NULL is dererenced

ProjectMutilation avatar Sep 30 '24 07:09 ProjectMutilation