vibhorkum / pg_background

pg_background
GNU General Public License v3.0
136 stars 35 forks source link

Initialization of BackgroundWorker.bgw_type field #22

Closed svorcmar closed 4 years ago

svorcmar commented 4 years ago

Uninitialized field value might be used by the PG engine, which might lead to an undefined behavior (https://github.com/vibhorkum/pg_background/issues/19) or crash the whole process.

vibhorkum commented 4 years ago

Hi @svorcmar Change looks good to me. However, I haven't got a chance to test it due to travel. Can you please confirm if there is any other regression you have found?

svorcmar commented 4 years ago

Hello @vibhorkum, no, this is the only bug that we've encountered so far.

vibhorkum commented 4 years ago

Closing the PR