BUG #16187: The usage of undefined value in parallel.c
BUG #16187: The usage of undefined value in parallel.c
От:
PG Bug reporting form <noreply@postgresql.org>
Дата:
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.