forgotten initalization of a variable

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: forgotten initalization of a variable
Date: 2020-04-21 06:08:30
Message-ID: 20200421.150830.1410714948345179794.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

The commit a7e8ece41c adds a new member restoreCommand to
XLogPageReadPrivate. readOneRecord doesn't make use of it but forgets
to set NULL. That can lead to illegal pointer access.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
0001-Properly-initalize-a-variable.patch text/x-patch 959 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message 曾文旌 2020-04-21 06:19:24 Re: [Proposal] Global temporary tables
Previous Message Kyotaro Horiguchi 2020-04-21 06:08:17 Re: [BUG] non archived WAL removed during production crash recovery