BUG #16187: The usage of undefined value in parallel.c - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16187: The usage of undefined value in parallel.c
Date
Msg-id 16187-11eb1f173582b451@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16187
Logged by:          Jian Zhang
Email address:      starbugs@qq.com
PostgreSQL version: 12.1
Operating system:   Linux
Description:

We checked the code in file “parallel.c” and there is one error occurring in
line 1606. This error is caused by the usage of variable with undefined
value. The code in this line is “FD_SET(pstate->parallelSlot[i].pipeRead,
&workerset);”. The pointer “pstate” is an input parameter of function
“getMessageFromWorker” and has never changed before line 1606. The program
should check the effectiveness of input parameter “pstate” to avoid this
error.


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16186: The usage of undefined value in pgbench.c
Next
From: PG Bug reporting form
Date:
Subject: BUG #16188: The usage of NULL pointer in rege_dfa.c