BUG #16187: The usage of undefined value in parallel.c

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: starbugs(at)qq(dot)com
Subject: BUG #16187: The usage of undefined value in parallel.c
Date: 2020-01-06 03:02:20
Message-ID: 16187-11eb1f173582b451@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16187
Logged by: Jian Zhang
Email address: starbugs(at)qq(dot)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.

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2020-01-06 03:20:01 BUG #16188: The usage of NULL pointer in rege_dfa.c
Previous Message PG Bug reporting form 2020-01-06 02:52:51 BUG #16186: The usage of undefined value in pgbench.c